Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

Project description

Pydent: Aquarium API Scripting

CircleCI PyPI version

Pydent is the python API for Aquarium.


API documentation can be found here at


  • 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



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]

Listing Available nested relationships

primer_type = mysession.SampleType.find(1)

making a release

Update dependencies

poetry update
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.

Update documents with make docs

Project details

Download files

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

Files for pydent, version 1.0.8
Filename, size File type Python version Upload date Hashes
Filename, size pydent-1.0.8-py3-none-any.whl (125.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pydent-1.0.8.tar.gz (107.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page