Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DE-175: Create general cloudLibrary client #38

Merged
merged 11 commits into from
Nov 20, 2024

Conversation

fatimarahman
Copy link
Contributor

Since this client is used within eReading and PJR, thought it would be useful to add here!

This cloudLibrary client is relatively straightforward -- the only weird thing is the request function, which is necessary for formatting headers and authorization for each API call. This request function is modeled after a similar one used in eReading. Wasn't entirely sure whether it's worth testing since all it's doing is an API call, but lmk your thoughts!

Copy link
Contributor

@aaronfriedman6 aaronfriedman6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good code-wise! I haven't reviewed the tests yet but before I do I just want to confirm that the ereading team is going to use this. I thought they were using a different API version or something like that? Otherwise it seems like this code can live somewhere else and be simplified a bit

src/nypl_py_utils/classes/cloudlibrary_client.py Outdated Show resolved Hide resolved
src/nypl_py_utils/classes/cloudlibrary_client.py Outdated Show resolved Hide resolved
src/nypl_py_utils/classes/cloudlibrary_client.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
tests/test_cloudlibrary_client.py Outdated Show resolved Hide resolved
tests/test_cloudlibrary_client.py Outdated Show resolved Hide resolved
tests/test_cloudlibrary_client.py Show resolved Hide resolved
aaronfriedman6
aaronfriedman6 previously approved these changes Nov 19, 2024
tests/test_cloudlibrary_client.py Show resolved Hide resolved
@fatimarahman fatimarahman merged commit 30b18f4 into main Nov 20, 2024
2 checks passed
@fatimarahman fatimarahman deleted the de-175/cloudlibrary-client branch November 20, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants