-
Notifications
You must be signed in to change notification settings - Fork 33
Add API V2 support #97
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
cbdcba5
add api v2
stuartdietrich 328d4e6
update ci
stuartdietrich 547f58e
update lint ignore
stuartdietrich 79074a9
update doc
stuartdietrich 95b3711
update version
stuartdietrich d5aaa56
increase version
stuartdietrich d651b29
change twine version
stuartdietrich e8d1f2f
update readme
stuartdietrich 8ca577e
fix to_json
stuartdietrich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
scaleapi/__init__.py | ||
scaleapi/api_client/v2/models/annotation.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
scaleapi/api_client/__init__.py | ||
scaleapi/api_client/v2/__init__.py | ||
scaleapi/api_client/v2/api/__init__.py | ||
scaleapi/api_client/v2/api/v2_api.py | ||
scaleapi/api_client/v2/api_client.py | ||
scaleapi/api_client/v2/api_response.py | ||
scaleapi/api_client/v2/configuration.py | ||
scaleapi/api_client/v2/exceptions.py | ||
scaleapi/api_client/v2/models/__init__.py | ||
scaleapi/api_client/v2/models/annotation_category.py | ||
scaleapi/api_client/v2/models/annotation_category_multiple.py | ||
scaleapi/api_client/v2/models/annotation_category_multiple_properties.py | ||
scaleapi/api_client/v2/models/annotation_category_properties.py | ||
scaleapi/api_client/v2/models/annotation_integer.py | ||
scaleapi/api_client/v2/models/annotation_integer_properties.py | ||
scaleapi/api_client/v2/models/annotation_metadata.py | ||
scaleapi/api_client/v2/models/annotation_text.py | ||
scaleapi/api_client/v2/models/annotation_text_properties.py | ||
scaleapi/api_client/v2/models/annotation_type.py | ||
scaleapi/api_client/v2/models/audio_file.py | ||
scaleapi/api_client/v2/models/base_annotation.py | ||
scaleapi/api_client/v2/models/batch.py | ||
scaleapi/api_client/v2/models/delivery.py | ||
scaleapi/api_client/v2/models/detailed_file.py | ||
scaleapi/api_client/v2/models/error_detail.py | ||
scaleapi/api_client/v2/models/error_type.py | ||
scaleapi/api_client/v2/models/expandable.py | ||
scaleapi/api_client/v2/models/expandable_annotation.py | ||
scaleapi/api_client/v2/models/expandable_batch.py | ||
scaleapi/api_client/v2/models/expandable_delivery.py | ||
scaleapi/api_client/v2/models/expandable_enum_deliveries.py | ||
scaleapi/api_client/v2/models/expandable_enum_delivery.py | ||
scaleapi/api_client/v2/models/expandable_enum_task.py | ||
scaleapi/api_client/v2/models/expandable_project.py | ||
scaleapi/api_client/v2/models/file.py | ||
scaleapi/api_client/v2/models/get_delivered_tasks_response.py | ||
scaleapi/api_client/v2/models/get_deliveries_response.py | ||
scaleapi/api_client/v2/models/get_task500_response.py | ||
scaleapi/api_client/v2/models/get_tasks_response.py | ||
scaleapi/api_client/v2/models/image_file.py | ||
scaleapi/api_client/v2/models/message.py | ||
scaleapi/api_client/v2/models/message_content.py | ||
scaleapi/api_client/v2/models/message_role.py | ||
scaleapi/api_client/v2/models/model_parameters.py | ||
scaleapi/api_client/v2/models/option.py | ||
scaleapi/api_client/v2/models/project.py | ||
scaleapi/api_client/v2/models/reference_text.py | ||
scaleapi/api_client/v2/models/submission.py | ||
scaleapi/api_client/v2/models/task.py | ||
scaleapi/api_client/v2/models/task_status.py | ||
scaleapi/api_client/v2/models/thread.py | ||
scaleapi/api_client/v2/models/turn.py | ||
scaleapi/api_client/v2/models/v1_task_task_id_get200_response.py | ||
scaleapi/api_client/v2/models/v1_task_task_id_get200_response_response.py | ||
scaleapi/api_client/v2/rest.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.11.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,48 @@ | ||
default_language_version: | ||
python: python3.6 | ||
python: python3.8 | ||
default_stages: [commit] | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- id: check-yaml | ||
- id: check-case-conflict | ||
- repo: https://github.com/pycqa/isort | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- id: check-yaml | ||
- id: check-case-conflict | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.8.0 | ||
hooks: | ||
- id: isort | ||
- id: isort | ||
name: isort | ||
args: ["--profile", "black"] | ||
- repo: https://github.com/psf/black | ||
exclude: ^scaleapi/api_client/ | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
- id: black | ||
exclude: ^scaleapi/api_client/ | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.8.4 | ||
hooks: | ||
- id: flake8 | ||
- repo: local | ||
- id: flake8 | ||
exclude: ^scaleapi/api_client/ | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
language: python | ||
types: [python] | ||
files: scaleapi/ | ||
exclude: ^scaleapi/api_client/ | ||
additional_dependencies: | ||
- 'pylint>=2.7.4' | ||
- 'requests>=2.25.0' | ||
- 'urllib3>=1.26.0' | ||
- 'pytest>=6.2.2' | ||
language_version: python3.6 | ||
- "pylint>=2.7.4" | ||
- "requests>=2.25.0" | ||
- "urllib3>=1.26.0" | ||
- "pytest>=6.2.2" | ||
- "python_dateutil>=2.8.2" | ||
- "pydantic>=2" | ||
- "typing-extensions>=4.7.1" | ||
language_version: python3.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
[MASTER] | ||
ignore-paths= | ||
^scaleapi/api_client/* | ||
disable= | ||
missing-module-docstring, | ||
too-few-public-methods, | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", | ||
"spaces": 2, | ||
"generator-cli": { | ||
"version": "7.11.0" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
is there a way to run it through black after we generate. We run the typescript one through
prettier
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.
not a big deal if it's not easy
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.
yeah there's also some others in the precommit, can try to do something similar next time