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

Beagle client library that can be imported from other Python programs #19

Open
stevekm opened this issue Sep 17, 2020 · 0 comments
Open

Comments

@stevekm
Copy link
Member

stevekm commented Sep 17, 2020

Methods and attributes for communicating with Beagle can be moved out of the main beaglecli file into a separate client module, so that they could be imported from other Python programs and services in order to communicate with Beagle. This would be really useful for things like the Config for handling the auth tokens, the API endpoint addresses, and the functions that run the basic Get, Create, Update, Delete methods for different endpoints. Also consider some Django-inspired wrappers such as get_or_create and update_or_create to make it easier to use, along with things like validation of the existence of Files, etc., in Beagle before trying to run operations on them.

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

1 participant