Skip to main content

Python bindings for Primer3

Project description

Primer3-py is a Python-abstracted API for the popular Primer3 library. The intention is to provide a simple and reliable interface for automated oligo analysis and design.

Routine oligo analysis is simple:

>>> import primer3
>>> primer3.calcTm('GTAAAACGACGGCCAGT')
>>> primer3.calcHairpin('CCCCCATCCGATCAGGGGG')
ThermoResult(structure_found=True, tm=34.15, dg=337.09, dh=-36300.00,
             ds=-118.13, msg=)

… and fast (~1000X faster than traditional subprocess wrappers):

In [1]: import primer3

In [2]: %timeit primer3.calcTm('GTAAAACGACGGCCAGT')
100000 loops, best of 3: 4.74 us per loop

In [3]: %timeit primer3.wrappers.calcTm('GTAAAACGACGGCCAGT')
100000 loops, best of 3: 5.78 ms per loop

Primer3-py also includes bindings for the Primer3 primer design engine if you’d prefer to use an established pipeline. The IO parameters mirror those of the original Primer3.

Please note that while we provide bindings, we do not provide support for the Primer3 design engine. Please contact the Primer3 dev team with your questions:

A copy of the Primer3 2.3.7 design parameters manual can be found at:

For documentation of the bindings, see

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

primer3-py-0.6.1.tar.gz (397.4 kB view hashes)

Uploaded source

Built Distributions

primer3_py-0.6.1-cp311-cp311-win_amd64.whl (834.3 kB view hashes)

Uploaded cp311

primer3_py-0.6.1-cp310-cp310-win_amd64.whl (835.2 kB view hashes)

Uploaded cp310

primer3_py-0.6.1-cp39-cp39-win_amd64.whl (837.6 kB view hashes)

Uploaded cp39

primer3_py-0.6.1-cp38-cp38-win_amd64.whl (1.2 MB view hashes)

Uploaded cp38

primer3_py-0.6.1-cp37-cp37m-win_amd64.whl (1.2 MB view hashes)

Uploaded cp37

primer3_py-0.6.1-cp36-cp36m-win_amd64.whl (1.2 MB view hashes)

Uploaded cp36

primer3_py-0.6.1-cp35-cp35m-win_amd64.whl (1.2 MB view hashes)

Uploaded cp35

primer3_py-0.6.1-cp27-cp27m-win_amd64.whl (1.3 MB view hashes)

Uploaded cp27

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page