An unofficial python wrapper for the Benchling API
Project description
BenchlingAPI
The (unofficial) python API wrapper for Benchling.
Installation
pip install benchlingapi -U
Getting Started
api = Session("your_secret_benchling_api_key")
api.DNASequence()
api.AASequence()
api.CustomEntity()
api.Oligo()
api.Registry.one()
api.DNASequence.one()
api.DNASequence.last(50)
api.Folder.find_by_name("MyFolderName")
dna.set_schema("My DNA Schema")
dna.register()
Testing
Testing is done using pytest
. Tests will create live requests to a Benchling account.
Since testing is done live, a Benchling account will need to be setup along with testing
data.
To run tests, you must have a Benchling Account with an API key. Tests require a file in 'tests/secrets/config.json' with the following format:
{
"credentials": {
"api_key": "asdahhjwrthsdfgadfadfgadadsfa"
},
"sharelinks": [
"https://benchling.com/s/seq-asdfadsfaee"
],
"project": {
"name": "API"
},
"trash_folder": {
"name": "API_Trash"
},
"inventory_folder": {
"name": "API_Inventory"
}
}
On the Benchling side of things, in the account liked to the credentials["api_key"]
, you must
have a project corresponding to the project["name"]
value above. Within this project, you should
have two folder corresponding to the trash_folder
and inventory_folder
values above. Additionally,
you should have at least one example of an AminoAcid, DNASequence, CustomEntity, and Oligo stored within
your inventory_folder
. Tests will copy the examples from the inventory_folder
for downstream tests.
After the tests, conclude, inventory in the trash_folder
will get archived.
Happy Cloning!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for benchlingapi-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdebcc4b3bf98c9c17135b0ab19dd2d80dfaa4f5178529e0f6ed8c0dc475d9a3 |
|
MD5 | 02031ae57965855f93961163b19b9220 |
|
BLAKE2b-256 | d8298771517d31170c6764043ea754376a512dcf111f703ade64f02e19417922 |