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 http://aquariumbio.github.io/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)

making a release

poetry build
poetry publish

To use a pypi token, the user name should be __token__ and the password should be the token including the pypi- prefix.

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-1.0.4a0.tar.gz (108.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-1.0.4a0-py3-none-any.whl (127.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydent-1.0.4a0.tar.gz
  • Upload date:
  • Size: 108.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.6 Linux/5.4.0-48-generic

File hashes

Hashes for pydent-1.0.4a0.tar.gz
Algorithm Hash digest
SHA256 cb466141d41f26e82276c109b5eed9055c730434a81e7c8e6e0615766bca14a6
MD5 ac7b92dcca1d11ec744410df4adb9ad2
BLAKE2b-256 f950bcb0874506567acc0b43573467371464952602997c88b0a93d199884c534

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydent-1.0.4a0-py3-none-any.whl
  • Upload date:
  • Size: 127.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.6 Linux/5.4.0-48-generic

File hashes

Hashes for pydent-1.0.4a0-py3-none-any.whl
Algorithm Hash digest
SHA256 32413e41631b71bd804575501bbe3645b1b63cf434be0562f57fb4cdd51c5d85
MD5 9966978b291317b31f95149b102d516d
BLAKE2b-256 5b54a8010bd9c5b4b50506e5611ffff5b5defff25a00c70c42ffb02a97de82d2

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