Skip to content

Commit 0d38a61

Browse files
Update README and CHANGELOG
1 parent c65281d commit 0d38a61

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Changelog
22
## v1.6.0 11/20/24
3+
- Added patron_data_helper functions
34
- Use executemany instead of execute when appropriate in PostgreSQLClient
45
- Add capability to retry connecting to a database to the MySQL, PostgreSQL, and Redshift clients
56
- Automatically close database connection upon error in the MySQL, PostgreSQL, and Redshift clients

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ This package contains common Python utility classes and functions.
2020
* Creating a logger in the appropriate format
2121
* Obfuscating a value using bcrypt
2222
* Parsing/building Research Catalog identifiers
23+
* Mapping between barcodes and Sierra patron ids plus getting patron data from Sierra and Redshift using those ids
2324

2425
## Usage
2526
```python
@@ -37,7 +38,7 @@ kinesis_client = KinesisClient(...)
3738
# Do not use any version below 1.0.0
3839
# All available optional dependencies can be found in pyproject.toml.
3940
# See the "Managing dependencies" section below for more details.
40-
nypl-py-utils[kinesis-client,config-helper]==1.5.0
41+
nypl-py-utils[kinesis-client,config-helper]==1.6.0
4142
```
4243

4344
## Developing locally
@@ -63,7 +64,7 @@ The optional dependency sets also give the developer the option to manually list
6364
### Using PostgreSQLClient in an AWS Lambda
6465
Because `psycopg` requires a statically linked version of the `libpq` library, the `PostgreSQLClient` cannot be installed as-is in an AWS Lambda function. Instead, it must be packaged as follows:
6566
```bash
66-
pip install --target ./package nypl-py-utils[postgresql-client]==1.5.0
67+
pip install --target ./package nypl-py-utils[postgresql-client]==x.y.z
6768

6869
pip install \
6970
--platform manylinux2014_x86_64 \

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "nypl_py_utils"
7-
version = "1.5.0"
7+
version = "1.6.0"
88
authors = [
99
{ name="Aaron Friedman", email="aaronfriedman@nypl.org" },
1010
]
@@ -71,7 +71,7 @@ obfuscation-helper = [
7171
"bcrypt>=4.0.1"
7272
]
7373
patron-data-helper = [
74-
"nypl_py_utils[postgresql-client,redshift-client]>=1.5.0",
74+
"nypl_py_utils[postgresql-client,redshift-client]>=1.6.0",
7575
"pandas>=2.2.2"
7676
]
7777
research-catalog-identifier-helper = [

0 commit comments

Comments
 (0)