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

DSpace client CLI interface #2

Open
tomdesair opened this issue Feb 17, 2022 · 1 comment
Open

DSpace client CLI interface #2

tomdesair opened this issue Feb 17, 2022 · 1 comment

Comments

@tomdesair
Copy link

We can add some CLI commands to the DSpace Python client that make it easier to explore and manipulate a DSpace repository via CLI or bash scripts. The initial idea here is to offer similar functionality like the kubectl command to explore a Kubernetes cluster. Some examples of how it could look like:

  • dspace-client login https://api7.dspace.org
    • Login to the specified DSpace instance
  • dspace-client get communities
    • List all communities
  • dspace-client get collections
    • List all collections
  • dspace-client metadata 12345/123
    • Display metadata by handle or uuid
  • dspace-client view item <uuid>
    • Display item related data by uuid
  • dspace-client download bitstream <uuid> -p <path>
    • Download bitstream to the specified path
  • dspace-client community <uuid>
    • Set current active community
  • dspace-client collection <uuid>
    • Set current active collection
  • dspace-client add item -f <path-to-json-file>
    • Add item to current active collection based file path or piping data
  • ...

Of course any of the underlying command implementation can be imported into other Python scripts as well.

I just wrote down things that popped up in my mind. Feel free to add or enhance commands.

@kshepherd
Copy link
Collaborator

great idea - the origin of the library was for a single batch operation but we can definitely allow one off CLI commands, even an interactive console perhaps?

jsicot added a commit to jsicot/dspace-rest-python that referenced this issue Jul 2, 2024
Update get_item function to return a DSO object
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

No branches or pull requests

2 participants