pysynthbio
pysynthbio is an Python package that provides a convenient interface to the Synthesize Bio API, allowing users to generate realistic gene expression data based on specified biological conditions. This package enables researchers to easily access AI-generated transcriptomic data for various modalities including bulk RNA-seq and single-cell RNA-seq.
If you'd prefer 1-click dataset generation and analysis, try our web platform.
Prerequisites
Create a Synthesize Bio account and generate an API Key.
Installation
pip install pysynthbio
Quickstart
import pysynthbio
# Set your API token (or use environment variable SYNTHESIZE_API_KEY)
pysynthbio.set_synthesize_token(use_keyring=True)
# Get an example query for the bulk RNA-seq baseline model
query = pysynthbio.get_example_query(model_id="gem-1-bulk")["example_query"]
# Generate synthetic expression data
result = pysynthbio.predict_query(query, model_id="gem-1-bulk")
# Access the results
metadata = result["metadata"]
expression = result["expression"]
Documentation
The canonical pysynthbio docs live at docs.synthesize.bio/pysynthbio.
The legacy GitHub Pages site at synthesizebio.github.io/pysynthbio redirects to the new URLs and is no longer updated. The MDX source for the customer-facing docs lives in docs-external/ and is aggregated into docs-external by the Mintlify multirepo workflow.
Questions? Suggestions? Support?
Email us at support@synthesize.bio. We'd love to hear from you!
Metadata
Release files for pysynthbio 4.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysynthbio-4.2.3.tar.gz | 25.4 kB | With provenance | Details for pysynthbio-4.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysynthbio-4.2.3-py3-none-any.whl | Python 3 | none | any | Details for pysynthbio-4.2.3-py3-none-any.whl |
Total release size: 43.6 kB
Release files / pysynthbio-4.2.3.tar.gz
| Download URL | pysynthbio-4.2.3.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf65572c99cf96c631623ddcfcc548f21e9f43338affca8c96e10690a36f7b6e
|
|
BLAKE2b-256 checksum How to use checksums |
83ae9273284ade8f86b69c207801177abd93f9bd36929924c6b3bd20395fda37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / pysynthbio-4.2.3-py3-none-any.whl
| Download URL | pysynthbio-4.2.3-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6744a6c344b73278536a6c708ca36c1bc24d034f3aa5eb65c072b71cefd6491c
|
|
BLAKE2b-256 checksum How to use checksums |
deb693653d5a45e0176f1bec1eb0574ad4da30f80d1a9333759dd182422da6f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logSecurity for pysynthbio 4.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pysynthbio-4.2.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.