Simple script to create projects in Label Studio. More precisely, it:
- creates a project in Label Studio
- creates buckets in S3 compatible storage (currently it is Yandex Cloud object storage)
- configures bucket's CORS policy
- binds bucket to the project in Label Studio
Edit config.yaml
file to set the desired state of the project.
Then, set credentials to credentials.json
file in the root directory
- Set Label Studio token. It can be found in user's setting(
/user/account
) in the Label Studio. - Set Yandex Cloud's static access key. You can create it after creating of a service account in the Yandex Cloud console. See details here
- Set Yandex Cloud's storage OAuth token. It can be created here
- Install dependencies:
pip install -r requirements.txt
- Call the script:
python main.py