Trident is the python API scripting for Aquarium.
Installation - how to install pydent
Examples - example usages
Contributing - contributing and developer notes
API Notes - notes on pydent/Aquarium models
Tests - testing notes
Note: the initial version is tagged as v0.0.1-initial, but is no longer being developed.
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)
Metadata
Release files for pydent 0.0.27
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pydent-0.0.27.tar.gz | 34.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydent-0.0.27-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.3 kB
Release files / pydent-0.0.27.tar.gz
| Download URL | pydent-0.0.27.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64e43c62b85b886c906acf5a3328987bc87c93730ab12bd5687af4105e053a50
|
|
BLAKE2b-256 checksum How to use checksums |
80bf0e807c8c1f6ec6b1ca90c91f127dfc8dd43893a005c78b78aad7e6637318
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pydent-0.0.27-py3-none-any.whl
| Download URL | pydent-0.0.27-py3-none-any.whl |
|---|---|
| Size | 39.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d39e3709ba0f0ec3213ec2db9c0031531ee42e3f2c626e8dbf424baab33fcac
|
|
BLAKE2b-256 checksum How to use checksums |
4e854f57418169ca13ac8e0c3b7670cf9288aeb55aa83a7d9d5d9d618e5fe37e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |