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

Add baton JSON serialization/deserialization for Python applications #223

Merged
merged 6 commits into from
Oct 18, 2024

Conversation

kjsanger
Copy link
Member

Add to_json/from_json methods to Collectiona and DataObject and allow those to exist disconnected from iRODS to enable baton JSON to be written/read by Python applications.

Expose to_dict method for RodsItems.

Update some type hints to use new built-ins.
By guarding some methods with a connected check, we can allow JSON
serialization/deserialization to include metadata and ACLs without
requiring iRODS be present.
@kjsanger kjsanger added the enhancement New feature or request label Oct 16, 2024
src/partisan/irods.py Outdated Show resolved Hide resolved
src/partisan/irods.py Outdated Show resolved Hide resolved
tests/test_irods.py Outdated Show resolved Hide resolved
tests/test_irods.py Outdated Show resolved Hide resolved
kjsanger and others added 4 commits October 18, 2024 09:25
Co-authored-by: mksanger <73285932+mksanger@users.noreply.github.com>
Co-authored-by: mksanger <73285932+mksanger@users.noreply.github.com>
Co-authored-by: mksanger <73285932+mksanger@users.noreply.github.com>
@kjsanger kjsanger merged commit fe2f16a into wtsi-npg:devel Oct 18, 2024
6 checks passed
@kjsanger kjsanger deleted the feature/json-io branch October 18, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants