Aquarium scripting
Project description
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)
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
File details
Details for the file pydent-0.0.27.tar.gz
.
File metadata
- Download URL: pydent-0.0.27.tar.gz
- Upload date:
- Size: 34.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
64e43c62b85b886c906acf5a3328987bc87c93730ab12bd5687af4105e053a50
|
|
MD5 |
36fc860913c26924aa2fe20ef7956d22
|
|
BLAKE2b-256 |
80bf0e807c8c1f6ec6b1ca90c91f127dfc8dd43893a005c78b78aad7e6637318
|
File details
Details for the file pydent-0.0.27-py3-none-any.whl
.
File metadata
- Download URL: pydent-0.0.27-py3-none-any.whl
- Upload date:
- Size: 39.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4d39e3709ba0f0ec3213ec2db9c0031531ee42e3f2c626e8dbf424baab33fcac
|
|
MD5 |
83f82306a06de479ba6c9b947c9bc947
|
|
BLAKE2b-256 |
4e854f57418169ca13ac8e0c3b7670cf9288aeb55aa83a7d9d5d9d618e5fe37e
|