You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Support write queries to PostgreSQL and MySQL databases
5
+
- Support different return formats when querying PostgreSQL, MySQL, and Redshift databases
6
+
7
+
## v0.0.4 - 2/13/23
4
8
- In PostgreSQLClient, allow reconnecting after `close_connection` has been called
5
9
- Updated README with deployment information
6
10
7
-
## v0.0.3 - 2/10
11
+
## v0.0.3 - 2/10/23
8
12
9
13
- Added GitHub Actions workflow for deploying to production
10
14
- Switched PostgreSQLClient to use connection pooling
11
15
12
-
## v0.0.2 - 2/6
16
+
## v0.0.2 - 2/6/23
13
17
14
18
- Added CODEOWNERS
15
19
- Added GitHub Actions workflows for running tests and deploying to QA
16
20
- Added tests for helper functions
17
21
- Updated Avro encoder to avoid dependency on pandas
18
22
19
-
## v0.0.1 - 1/26
23
+
## v0.0.1 - 1/26/23
20
24
21
25
Initial version. Includes the `avro_encoder`, `kinesis_client`, `mysql_client`, `postgresql_client`, `redshift_client`, and `s3_client` classes as well as the `config_helper`, `kms_helper`, `log_helper`, and `obfuscation_helper` functions.
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This package contains common Python utility classes and functions.
19
19
## Developing locally
20
20
In order to use the local version of the package instead of the global version, use a virtual environment. To set up a virtual environment and install all the necessary dependencies, run:
Add any new dependencies required by code in the `nypl_py_utils` directory to the `dependencies` section of `pyproject.toml`. Add dependencies only required by code in the `tests` directory to the `[project.optional-dependencies]` section.
32
32
33
+
### Troubleshooting
34
+
If running `main.py` in this virtual environment produces the following error:
35
+
```
36
+
ImportError: no pq wrapper available.
37
+
Attempts made:
38
+
- couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
39
+
- couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
40
+
- couldn't import psycopg 'python' implementation: dlsym(0x7f8620446f40, PQsslInUse): symbol not found
41
+
```
42
+
43
+
then try running:
44
+
```
45
+
pip uninstall psycopg
46
+
pip install "psycopg[c]"
47
+
```
48
+
33
49
## Git workflow
34
50
This repo uses the [Main-QA-Production](https://github.com/NYPL/engineering-general/blob/main/standards/git-workflow.md#main-qa-production) git workflow.
0 commit comments