Skip to main content

biocentral_api - Python Client

Python API package for biocentral.

Installation

pip install biocentral-api

Basic Usage

Embedding protein sequences:

from biocentral_api import BiocentralAPI, CommonEmbedder

biocentral_api = BiocentralAPI()

# ProtT5
embedder_name = CommonEmbedder.ProtT5
reduce = True
sequence_data = {"Seq1": "MMALSLALM"}
result = biocentral_api.embed(embedder_name=embedder_name, reduce=reduce, sequence_data=sequence_data,
                              use_half_precision=False).run()
print(result)

For more examples, please refer to the examples folder.

Service Limitations

The following limitations are currently in place:

  • Sequence Limit: The embed() API has a limit of 1,000 sequences per request. See the amylase example for how to deal with datasets that exceed this limit.
  • Rate Limiting: Most endpoints have a quite strict rate limiting to distribute the available resources as fair as possible. All affected endpoints have a built-in retry mechanism to handle the rate limiting.
  • 431 Forbidden: Sometimes, the DDoS Protection of the API will send a mistaken 431 forbidden response. If you encounter this, please just try to re-run your script.

Citation

Please cite our paper if you are using the biocentral API in your work:

@Article{Franz2026,
  author    = {Franz, Sebastian and Olenyi, Tobias and Schloetermann, Paula and Smaoui, Amine and Jimenez-Soto, Luisa F. and Rost, Burkhard},
  journal   = {Journal of Molecular Biology},
  title     = {biocentral: embedding-based protein predictions},
  year      = {2026},
  issn      = {0022-2836},
  month     = jan,
  pages     = {169673},
  doi       = {10.1016/j.jmb.2026.169673},
  groups    = {[JMB] biocentral: embedding-based protein predictions, swc_bo_engineering},
  publisher = {Elsevier BV},
}

Metadata

Release files for biocentral-api 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for biocentral-api 2.0.0
File Size Uploaded
biocentral_api-2.0.0.tar.gz 75.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for biocentral-api 2.0.0
File Interpreter ABI Platform
biocentral_api-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 260.2 kB

Release files / biocentral_api-2.0.0.tar.gz

Download URL biocentral_api-2.0.0.tar.gz
Size 75.7 kB
Tags Source
SHA-256 checksum
How to use checksums
67374e9521691a081d7c6ef628076dcc7a4a1f6adf599c11e3304ff71a9f8e50
BLAKE2b-256 checksum
How to use checksums
ab050abeeee666c20ce18c881f0f52bdabf1672322273765743a12d8f68890e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / biocentral_api-2.0.0-py3-none-any.whl

Download URL biocentral_api-2.0.0-py3-none-any.whl
Size 184.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73c84eaad93d6d9530f1a40bfe068710d2410e7f777cd19965f197693d3b3b7d
BLAKE2b-256 checksum
How to use checksums
8b5f87e7f65c07ae7e53a588c1bda2fa3a54c1f5383e99b7e0c5766a5d7b34e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page