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

[FEATURE] Add ArchivesSpace Class and record_error function to utilities.py #20

Closed
crugas opened this issue Dec 26, 2024 · 0 comments · Fixed by #21
Closed

[FEATURE] Add ArchivesSpace Class and record_error function to utilities.py #20

crugas opened this issue Dec 26, 2024 · 0 comments · Fixed by #21
Assignees
Labels
enhancement New feature or request

Comments

@crugas
Copy link
Collaborator

crugas commented Dec 26, 2024

Is your feature request related to a problem? Please describe.
I'd like to add an ArchivesSpace class, which I wrote as part of delete_dometadata.py. The class includes a client login as part of the class instance and the following methods:

  • get_repo_info - Gets all the repository information for an ArchivesSpace instance in a list and assigns it to self.repo_info
  • get_objects - Intakes a repository URI and returns all the digital object IDs as a list for that repository
  • get_object - Get and return a digital object JSON metadata from its URI
  • update_object - Posts the updated JSON metadata for the given object_uri to ArchivesSpace

I'd also like to add the record_error function, which prints and logs an error message and the code/parameters causing the error using the loguru package.

Describe the solution you'd like
I'll add the above to the utilities.py, working with the CAAS team to integrate the client_login() function that already exists with the new ArchivesSpace class.

Describe alternatives you've considered
N/A

Additional context
Adding more capabilities with the ArchivesSpace class so we don't have to keep copy/pasting the same functions when updating metadata.

@crugas crugas added the enhancement New feature or request label Dec 26, 2024
@crugas crugas self-assigned this Dec 26, 2024
@crugas crugas linked a pull request Jan 3, 2025 that will close this issue
6 tasks
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
1 participant