-
Notifications
You must be signed in to change notification settings - Fork 79
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 command line tools for roboflow-python #196
Conversation
I am excited to review this, @tonylampada! Is this going to replace our JavaScript-based CLI? |
@capjamesg exactly! The idea is to expose as much functionality from the python package to the command line and eventually surpass and obsolete the current node cli! |
@tonylampada How do I install this? |
@capjamesg |
I get the following error with the
|
Sorry, lemme fix that |
@capjamesg in the mean time you can probably do something like
|
It would be nice to be able to pull from URLs, too. You can use an algorithm like:
|
It's fixed, that command is going to work now :-) |
It works! Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One quick comment, then this looks good to go!
roboflow/roboflowpy.py
Outdated
|
||
|
||
def _argparser(): | ||
parser = argparse.ArgumentParser(description="main description") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you set a full description for the package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops, sorry about that. It's there now!
Description
The main change introduce in this PR is the new
roboflowpy
command line tool to start making the api methods available from the command line.This PR also refactors some of the internal code moving towards a cleaner separation of concerns, moving the actual http calls to the
rfapi.py
adapter.Type of change
How has this change been tested, please provide a testcase or example of how you tested the change?
Tested on staging and production
Docs