Spaces:
Sleeping
Sleeping
Codabench Competition Bundle Upload Script
This script uploads a Codabench competition bundle ZIP file through the Codabench REST API.
It performs the following steps automatically:
- Authenticate with Codabench
- Create a competition bundle dataset
- Upload the ZIP file
- Finalize the upload
- Wait for the competition to be created
Requirements
Install dependencies:
pip install python-dotenv
Create a .env
CODABENCH_BASE_URL=https://www.codabench.org
CODABENCH_TOKEN=your_token_here # optional is you want to use your username and password to get token
Usage
Using an API token from .env:
python codabench/upload_bundle.py competition_bundle.zip
Using username and password:
python codabench/upload_bundle.py \
--username USERNAME \
--password PASSWORD \
competition_bundle.zip
Using a custom Codabench instance:
python codabench/upload_bundle.py \
--base-url https://your-codabench-instance.org \
competition_bundle.zip