Example code for uploading blobs to Benchling, part of the Uploading Instrument Results guide available on Benchling Developer Platform Documentation Page.
- First, ask Benchling support to enable API access on your account, and create API credentials. Instructions: https://help.benchling.com/articles/2353570-access-the-benchling-api-enterprise
- Install Python 3 and Pipenv
- Install dependencies using
pipenv install - Run
pipenv shellto work in a virtualenv that includes the dependencies. - Run the script. For example:
python blob_upload.py \
--domain example.benchling.com \
--api-key $YOUR_API_KEY \
--filepath path/to/chromatogram_file