Skip to main content

Aquarium's Python API for planning, executing, and analyzing scientific experiments.

Project description

Trident: Aquarium API Scripting

CircleCI PyPI version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydent-0.1.3a0.tar.gz (77.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydent-0.1.3a0-py3-none-any.whl (91.2 kB view details)

Uploaded Python 3

File details

Details for the file pydent-0.1.3a0.tar.gz.

File metadata

  • Download URL: pydent-0.1.3a0.tar.gz
  • Upload date:
  • Size: 77.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.16 CPython/3.7.2 Darwin/16.7.0

File hashes

Hashes for pydent-0.1.3a0.tar.gz
Algorithm Hash digest
SHA256 eac7849ab4b8a7bc80b566115da7122cfc8f0d287b2cf42f94abee106d12e6b9
MD5 3244a1f76b7d51d8b8ac6ad0925cea28
BLAKE2b-256 1124af92bc3bb88bb2200a5b70a3b5bfe5c0ad8a032ca11f34d164642059d031

See more details on using hashes here.

File details

Details for the file pydent-0.1.3a0-py3-none-any.whl.

File metadata

  • Download URL: pydent-0.1.3a0-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.2 Darwin/16.7.0

File hashes

Hashes for pydent-0.1.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 26ebe6637051a8797f7ef1d6ed9f47662f337b764a0fe7f8519e435125029cb5
MD5 5a7d43ff56bb8a8af35c61d41db2f3e4
BLAKE2b-256 2e2157e76d34e783ba93d5d4229a100e507d0a6ed5435b5a1e03f7e20643ec52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page