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)

Contributors:

via git fame -wMC --excl '.(png|gif|enc)$'

Total commits: 965 Total ctimes: 1348 Total files: 477 Total loc: 100924

Author loc coms fils distribution
Justin Vrana 88573 295 275 87.8/30.6/57.7
jvrana 12187 499 163 12.1/51.7/34.2
Ben Keller 141 118 34 0.1/12.2/ 7.1
Eric Klavins 20 47 3 0.0/ 4.9/ 0.6
Ubuntu 2 3 1 0.0/ 0.3/ 0.2
gasnew 1 1 1 0.0/ 0.1/ 0.2
Devin Strickland 0 2 0 0.0/ 0.2/ 0.0

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.5a7.tar.gz (84.8 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.5a7-py3-none-any.whl (97.6 kB view details)

Uploaded Python 3

File details

Details for the file pydent-0.1.5a7.tar.gz.

File metadata

  • Download URL: pydent-0.1.5a7.tar.gz
  • Upload date:
  • Size: 84.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.4 Darwin/18.6.0

File hashes

Hashes for pydent-0.1.5a7.tar.gz
Algorithm Hash digest
SHA256 9bc5486e3e1e367d4482df04ee25d9296b960b4a698b058e42ef29f807ac3d25
MD5 ee5608866b00baff216b88b6ec8b3562
BLAKE2b-256 b393310ffa384cc12529af786f93e748e8b896bcf5b8c8cbb7676f4f635eec95

See more details on using hashes here.

File details

Details for the file pydent-0.1.5a7-py3-none-any.whl.

File metadata

  • Download URL: pydent-0.1.5a7-py3-none-any.whl
  • Upload date:
  • Size: 97.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.4 Darwin/18.6.0

File hashes

Hashes for pydent-0.1.5a7-py3-none-any.whl
Algorithm Hash digest
SHA256 69c1801ad6a5897ba40229455e58d16f5451989912ca32ddd744c70f2231a683
MD5 1679e017c805fb896216b7e487840338
BLAKE2b-256 8f1fb4caf53bb1ba3b95133e2201703ea6240fb3fb62f98588ce6d2cd7e14fc2

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