AIcrowd API
Python client for server side API of the aicrowd.com webapp.
- Free software: GNU General Public License v3
- Documentation: https://aicrowd-api.readthedocs.io.
Installation
Deployment
pip install git+https://github.com/AIcrowd/aicrowd_api.git
Development
git clone https://github.com/AIcrowd/aicrowd_api
cd aicrowd_api
pip install -r requirements_dev.txt
pip install -e .
Usage
Instantiate API object
from aicrowd_api import API as AICROWD_API
auth_token="<YOUR AICROWD AUTH TOKEN>"
api = AICROWD_API(auth_token)
Authenticate participant
- with
API_KEY
api.authenticate_participant(EXAMPLE_API_KEY)
- with
username
api_key = api.authenticate_participant_with_username("spMohanty")
Get all Submissions
challenge_id = "test_challenge"
submissions = api.get_all_submissions(challenge_id)
print(submissions)
Create Submission
challenge_id = "test_challenge"
submission = api.create_submission(challenge_id)
print(submission)
# Output
# ========================================
# AIcrowdSubmission : 5261
# challenge_id : test_challenge
# round_id : False
# score : False
# score_secondary : False
# grading_status : submitted
# message :
# ========================================
Get submission
challenge_id = "test_challenge"
submission_id = 5262
submission = api.get_submission(challenge_id, submission_id)
Update submission
Assuming you have a submission object by using api.create_submission or api.get_submission.
You can update the submission by :
# Update params
submission.grading_status = "graded"
submission.score = 0.98
submission.score_secondary = 0.98
submission.update()
print(submission)
# Output#
# ========================================
# AIcrowdSubmission : 5262
# challenge_id : test_challenge
# round_id : False
# score : 0.98
# score_secondary : 0.98
# grading_status : graded
# message :
# ========================================
Tests
# Setup the environment varriables
cp environ.sh.example environ.sh
# Then modify the respective environment variables
source environ.sh
pytests tests/
Author
S.P.Mohanty mohanty@aicrowd.com Arjun Nemani nemani@aicrowd.com
Metadata
Release files for aicrowd-api 0.1.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aicrowd_api-0.1.25.tar.gz | 11.3 kB | Without provenance | Details for aicrowd_api-0.1.25.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aicrowd_api-0.1.25-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for aicrowd_api-0.1.25-py2.py3-none-any.whl |
Total release size: 21.4 kB
Release files / aicrowd_api-0.1.25.tar.gz
| Download URL | aicrowd_api-0.1.25.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c57c6785ccacce335b627e9534a6c8d0bc19a475032dbfeed4516598797aa94
|
|
BLAKE2b-256 checksum How to use checksums |
bd02893a50e8888a305eacb96636512936153415d4b0bc24b32a684d37bde95a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / aicrowd_api-0.1.25-py2.py3-none-any.whl
| Download URL | aicrowd_api-0.1.25-py2.py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ff9057e57e1ffc6bc65b8ab8ba37b12e5dba3b7e0fe9c7265fc5f90376949fe6
|
|
BLAKE2b-256 checksum How to use checksums |
2a09b66f1caaddae133e9dc09240c1208a93d1380f29e526280dfb2d9d2de33d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for aicrowd-api 0.1.25
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.