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

  • 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.1.3

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.1.3
File Size Uploaded Provenance Actions
durapy-1.0.1.3.tar.gz 103.3 kB With provenance Details for durapy-1.0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 201.7 kB

Release files / durapy-1.0.1.3.tar.gz

Download URL durapy-1.0.1.3.tar.gz
Size 103.3 kB
Tags Source
SHA-256 checksum
How to use checksums
680f920465b398ac3a48ec6d8253c72f5e667e616539aa32135cc61c3440b8d9
BLAKE2b-256 checksum
How to use checksums
bc79a48d02d95ed319e6d6d359d9273a0e60265bd8ebeb37691dc79298f91b80
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 Oct 30, 2026.

Transparency log

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

Download URL durapy-1.0.1.3-py3-none-any.whl
Size 98.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d02a061d4578e010d6d3ee65eefd57f47ccce757a1f6a0b5262e1f6c20007175
BLAKE2b-256 checksum
How to use checksums
cf9b7478afe3bc3e18b060a4f11ba0db761d7f807d9ec89cdcce350d7a84c080
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 Oct 30, 2026.

Transparency log

Security for durapy 1.0.1.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.

Select from 2 files

Attestation for durapy-1.0.1.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 30, 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