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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysynthbio-4.2.2.tar.gz | 24.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysynthbio-4.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.9 kB
Release files / pysynthbio-4.2.2.tar.gz
| Download URL | pysynthbio-4.2.2.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f69b66a4258b96ee0d1596625f021400ef44186399a5cbb4e74db9f527d2e906
|
|
BLAKE2b-256 checksum How to use checksums |
473d4aa4bfcd157e3b40a1bf98d459711e1d85211b142b19c682f40ef8fb5dc0
|
| 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 Jun 10, 2026.
Transparency logRelease files / pysynthbio-4.2.2-py3-none-any.whl
| Download URL | pysynthbio-4.2.2-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb1eaa9ac1379397d281295a67bedb2a12b4e030e0b86cee8d47b7e0eedc8ac2
|
|
BLAKE2b-256 checksum How to use checksums |
fdae377c1f4c0c137561e179420992ac857269e6f322e7f68a297c2de4bbe492
|
| 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 Jun 10, 2026.
Transparency log