Aquarium's Python API for planning, executing, and analyzing scientific experiments.
Project description
Trident: Aquarium API Scripting
Trident is the python API scripting for Aquarium.
Documentation
API documentation can be found here at klavinslab.org/trident
Requirements
- Python > 3.4
- An Aquarium login
Quick installation
Pydent can be installed using pip3.
pip3 install pydent
or upgraded using
pip3 install pydent --upgrade
Basic Usage
Logging in
from pydent import AqSession
# open a session
mysession = AqSession("username", "password", "www.aquarium_nursery.url")
# find a user
u = mysession.User.find(1)
# print the user data
print(u)
Models
print(mysession.models)
Finding models
-
By name:
nursery.SampleType.find_by_name("Primer") -
By ID:
nursery.SampleType.find(1) -
By property:
nursery.SampleType.where({'name': 'Primer'}) -
All models:
nursery.SampleType.all()
Getting nested data
# samples are linked to sample_type
primer_type = mysession.SampleType.find_by_name("Primer")
primers = primer_type.samples
# and sample type is linked to sample
p = primers[0]
print(p.sample_type)
Available nested relationships
primer_type = mysession.SampleType.find(1)
print(primer_type.relationships)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydent-0.1.4a0.tar.gz.
File metadata
- Download URL: pydent-0.1.4a0.tar.gz
- Upload date:
- Size: 77.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.16 CPython/3.7.3 Darwin/18.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
673bfe909bef67157d5c36631ce8095b2a148f69b41232772546471426e9fc27
|
|
| MD5 |
b444cea1276b2591b9d2d775faf44adb
|
|
| BLAKE2b-256 |
ec3506b7c68d61365c3859ed557b30d6e1b67292681092569c85b3b01f978848
|
File details
Details for the file pydent-0.1.4a0-py3-none-any.whl.
File metadata
- Download URL: pydent-0.1.4a0-py3-none-any.whl
- Upload date:
- Size: 91.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.16 CPython/3.7.3 Darwin/18.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c7b072127a4e44bdc67e0398226acff10ba24c4ef332c65318d1ff177be7a9e
|
|
| MD5 |
f5ad3a88048b421fd6b235e2c185b86e
|
|
| BLAKE2b-256 |
edb415761835abf3a1e5ad5650590443c9e1540469509c360830fb23588dc100
|