Skip to main content

Python SDK for the Biotailor bioinformatics pipeline platform

Project description

biotailor

Python SDK for the Biotailor bioinformatics pipeline platform.

Installation

pip install biotailor

Quickstart

from biotailor import BiotailorClient, Pipeline

# 1. Create a client (get your API key from the Biotailor website)
client = BiotailorClient(api_key="btk_xxx.sk_yyy")

# 2. Discover available tools
client.list_tools()

# 3. Build a pipeline
tool = client.get_tool("fastp-single")

pipeline = (
    Pipeline(name="QC my reads", tool=tool)
    .set_input("input", "reads.fastq")
    .set_param("qualified_quality_phred", 20)
)

# 4. Run and wait
job = client.run_and_wait(pipeline, output_dir="./results")
print(f"Job {job.jobid} finished with status: {job.job_status.value}")

Development

# Install in dev mode
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Lint
ruff check src/ tests/

Publishing to PyPI

# 1. Install build tools
pip install build twine

# 2. Clean old builds and build the package
rm -rf dist/
python -m build

# 3. (Optional) Test on TestPyPI first
twine upload --repository testpypi dist/*

# 4. Upload to PyPI
twine upload dist/*

Note: Bump version in pyproject.toml before each release — PyPI rejects duplicate versions. Use a PyPI API token for authentication (username: __token__).

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

biotailor-0.1.7.tar.gz (10.8 MB view details)

Uploaded Source

Built Distribution

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

biotailor-0.1.7-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file biotailor-0.1.7.tar.gz.

File metadata

  • Download URL: biotailor-0.1.7.tar.gz
  • Upload date:
  • Size: 10.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for biotailor-0.1.7.tar.gz
Algorithm Hash digest
SHA256 5f722270045a5bd2a52fc162ce3c72a7733b6641698ed8467d79c3c599de3b06
MD5 6ec768d3c4985bdd41e565a16bce2d40
BLAKE2b-256 ae28bad03693594ca46c58da654afe7e127f64e16b575f262297911b81f5086c

See more details on using hashes here.

File details

Details for the file biotailor-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: biotailor-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for biotailor-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 82381de7d8747cfc3e1718d16fc03bcbc5a8382c8f5e8e25fe99c481937f4162
MD5 d225c2f22b8bf3a9ef486cf8a4a7f03f
BLAKE2b-256 816d0b7f7ceb9da298579a4ca638330f0d4438d2aa037b53857c911306393d57

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