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 - Tools for linear algebra operations & custom types for matrices and vectors - Built with DracoLIX
    • 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.1

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.1
File Size Uploaded Provenance Actions
durapy-1.0.1.1.tar.gz 104.9 kB With provenance Details for durapy-1.0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 206.5 kB

Release files / durapy-1.0.1.1.tar.gz

Download URL durapy-1.0.1.1.tar.gz
Size 104.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9b090377763b506b4f59913dd2e22386dcce621d086fcaa4b2eaa776f54de219
BLAKE2b-256 checksum
How to use checksums
93d5cb51d52473dd6370cf225662a2ac8b7a04afd5cae09f920b88cd755c2a10
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 22, 2026.

Transparency log

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

Download URL durapy-1.0.1.1-py3-none-any.whl
Size 101.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13a9d89217ac813a6d39fd266858f3466fb52a14284f0d8c4fe3e3d61f38d0d5
BLAKE2b-256 checksum
How to use checksums
945b31111a2e3ea66377c8d9af996c02a059bd722b071c85231a0bc71ef267a2
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 22, 2026.

Transparency log

Security for durapy 1.0.1.1

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.1.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 22, 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