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
tools = client.list_tools()
for t in tools:
    print(f"{t.toolid}: {t.display_name}")

# 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.6.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.6-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biotailor-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 94475caf1e0f326626b93ffb53df09759d9ad3759e9569321344f5da00a3feb5
MD5 7b236c1314ff6bb153a3831e74be7d95
BLAKE2b-256 33cd9a718013a37d5620e101f13fc968e2420bb9b2ae37cdfa601cd64a2ace13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biotailor-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 18.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b3eead2a763c2659353619f3b1a4bfcd63d74a7165aedd653a56c8ecbf26d5c0
MD5 0b06e9ddca34942cd6e275b01c0abfb7
BLAKE2b-256 3c5cb45e079e41d2706611936b81005029fa5e82460ba00b4f3c19240212e3dc

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