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.5a3.tar.gz (77.5 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.5a3-py3-none-any.whl (90.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pydent-0.1.5a3.tar.gz
Algorithm Hash digest
SHA256 951efdcd0590b544b81dbdd637bbf38ce0c7b85efa194ac60a8c9dc4b5abec17
MD5 455bf1f7687dcffed6b9166e8abf6af7
BLAKE2b-256 1ccba92d75b93b5ae6530e183388d335402a1e495d4e3fa29c159b28b8077bd9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pydent-0.1.5a3-py3-none-any.whl
Algorithm Hash digest
SHA256 dbe2008b9af71e59b381612370a511b964acfc68a8f24f550de95ba6f95c73f6
MD5 eecffe4319bf174a3115708a17fcef40
BLAKE2b-256 8c44d9ba9d1366a448a7e46319e6a4247afeca98a2e7c0fda7bd781e04e25b38

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