Skip to main content

DuraPy - An Open-Source Python Toolbox for STEM Workflows | By Draconis

License: GNUv3 PRs Welcome

DuraPy is a growing toolbox for science, engineering, and STEM workflows. It brings together helpful utilities for mathematics, physics, robotics, chemistry-adjacent calculations, and more under one Python universal package.

What makes it useful

  • A practical math layer for geometry, trigonometry, and algebra
  • Physics constants and helper modules for scientific exploration
  • A lightweight foundation for future CLI tools and engineering utilities
  • A simple package structure that is easy to extend

Installation

pip install durapy

Modules

DuraPy is composed of several submodules, each providing a specific set of functionality.

  • DracoLIX: Fortran+Rust-based library for high-performance numerical computations

  • Shared Library: a collection of shared utilities for all submodules

    • Color Systems - a collection of color systems and color space conversions, such as RGB, HEX, and CMYK
    • Constants, Numerical Value types, and Unit modules, for scientific calculations
    • Exceptions - Custom exception classes for error handling
  • UniCLI - a command-line interface framework for making CLI tools, including an interactive durapy REPL with autocomplete and last-call memory

  • UniBio - Bioinformatics primitives for DNA/RNA/protein work

    • Sequence validation, normalization, and IUPAC ambiguity handling
    • Complement, reverse complement, transcription and translation
    • GC content, melting temperature, approximate molecular weight
    • Open reading frame (ORF) discovery on both strands
  • UniChem - Chemistry utilities

    • Full periodic table (all 118 elements) with lookups by number, symbol, or name
    • Chemical formula parsing (parentheses, hydrates) and molar mass
    • Mass percent composition and empirical formulas
    • Reaction balancing and percent yield
    • Ideal gas law and acid/base (pH, pOH, buffers, dilution) calculations
  • UniCogni - Advanced AI/ML utilities for natural language processing and machine learning

  • UniCrypto - Cryptographic utilities for encryption and decryption

  • UniMath - Mathematical utilities for numerical computations

    • Algebra - Tools for generic algebraic operations
    • Linear algebra is available via NumPy or the separate DracoLIX project
    • Coordinate Systems - Custom types for representing points and vectors in N-dimensional space, such as Cartesian, polar, and spherical coordinates
    • Geometry, Number Theory and Trigonometry - Tools for geometric calculations and trigonometric functions
    • Decorators and Exceptions - utilities for decorators and exception handling, providing error-free and mathematically correct calculations
  • UniOps - A framework built for mechatronics and robotics, providing kinematics and dynamics utilities

  • UniPhys - A physics calculation library, providing calculation resources for a range of domains

    • Acoustics
    • Astrophysics
    • Electromagnetics
    • Fluid Dynamics
    • Mechanics
    • Nuclear Physics
    • Quantum Physics
    • Thermodynamics
  • UniPower - An advanced electronics/electrical engineering library, providing electrical component models, circuit simulation, and power analysis tools

    • Component models - Resistor (color bands + ideal values), Capacitor, Inductor, Diode (Shockley + piecewise), Transistor (BJT), Potentiometer, Fuse, IC and Oscillator
    • Circuit solver - Modified nodal analysis (MNA) for DC and sinusoidal steady-state (AC/phasor) analysis, plus equivalent resistance
    • AC/RLC analysis - Reactance, impedance, resonance, quality factor, bandwidth, RMS, decibels (dB/dBm), filters, power and power factor
  • UniSky - Aerospace/Spaceflight simulation and analysis tools

Metadata

Release files for durapy 1.0.2.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 durapy 1.0.2.0
File Size Uploaded Provenance Actions
durapy-1.0.2.0.tar.gz 113.0 kB With provenance Details for durapy-1.0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for durapy 1.0.2.0
File Interpreter ABI Platform Actions
durapy-1.0.2.0-py3-none-any.whl Python 3 none any Details for durapy-1.0.2.0-py3-none-any.whl

Total release size: 220.4 kB

Release files / durapy-1.0.2.0.tar.gz

Download URL durapy-1.0.2.0.tar.gz
Size 113.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c3dc3cf53beecccc0b31a9b284fcb4f82eb10aaa6490e8c31ae51987c1d0de82
BLAKE2b-256 checksum
How to use checksums
be045c9818ec5467474503625a9bbff49bf560f68a2e13aa451da7372f445164
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Release files / durapy-1.0.2.0-py3-none-any.whl

Download URL durapy-1.0.2.0-py3-none-any.whl
Size 107.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b7cff288a622c586e10930c9d57f8b84e295e9675a34ba84ccb9cb1a52ef4a3
BLAKE2b-256 checksum
How to use checksums
2264b7b4b7be95a6bf9e27423089e012c077b0ebdb77475c1881f158fd4f1d00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 5, 2026.

Transparency log

Security for durapy 1.0.2.0

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.

Select from 2 files

Attestation for durapy-1.0.2.0.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 Nov 5, 2026.

Transparency log

A 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.

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