Skip to main content

ATICA

Manufacturing calculations for Python - and a desktop app on top of them.

ATICA is one Python package (atica) with two parts that share one version:

Part What it is How you use it
Calculation library Exact, validated manufacturing maths: units, packaging, bills of materials, production, yield & scrap, purchasing. Standard library only. from atica.units import convert
Desktop application A polished PySide6 interface over the same public API, for people who prefer a window to a script. atica-gui
pip install atica

That one command installs both. Nothing else is needed to import the library or to launch the app.

What problem does it solve?

Manufacturing code is full of small calculations that are easy to get almost right: 250 pieces is 1 carton + 10 pieces but needs 2 cartons to ship; a 5 % scrap rate means you must start 1000 / 0.95 units, not 1000 x 1.05; 212 F is not 212 x 5/9 C. ATICA does these once, exactly (Decimal results, exact rational arithmetic inside), with explicit rounding, explicit denominators for every percentage, and errors that say what to fix.

What ATICA is not

Not an ERP, inventory, warehouse, MES, supplier-management or scheduling system; not a database or a GUI framework. It calculates. You keep the data.

Requirements

  • Python 3.9 - 3.13 (the calculation core is tested on all of them).
  • PySide6 is installed automatically (the desktop app is part of the product). The library itself imports nothing outside the standard library and never loads Qt - import atica is fast and headless-safe.
  • Optional: pip install "atica[excel]" for .xlsx import/export.

Method A - use the library

from atica.units import convert

result = convert(25, "kg", "g")
print(result)            # 25000 g
print(result.value)      # Decimal('25000')
from atica.packaging import Product, PackagingLevel, breakdown

product = Product("P001", "Product A", levels=[
    PackagingLevel("piece"),
    PackagingLevel("box", 12, "piece"),      # 1 box    = 12 pieces
    PackagingLevel("carton", 20, "box"),     # 1 carton = 20 boxes
])

r = breakdown(product, 250, "piece", "carton")
print(r)                                   # 250 piece = 1 full carton + 10 piece remaining (2 carton required)
print(r.full_packages, r.remainder, r.packages_required)   # 1 10 2
from atica.materials import Bom, BomItem, calculate_bom_requirements

bom = Bom([
    BomItem("steel", "0.25", "kg"),
    BomItem("paint", "40", "mL", wastage_percent=10),
])
result = calculate_bom_requirements(bom=bom, production_quantity=1000, scrap_percent=5)
print(result["steel"])                     # 263.1578947368 kg
from atica.quality import calculate_required_input

print(calculate_required_input(950, scrap_percent=5))   # 1000

Most calculations return a small immutable result object with the answer, the unit, the unrounded value and the formula (.to_dict(), .explain()). A few single-number helpers return a plain Decimal instead: convert_quantity, packages_required, required_input_with_rework, round_value, round_to_multiple. Bad input always raises a specific AticaError subclass; nothing returns a made-up value.

Method B - use the desktop app

pip install atica
atica-gui

(python -m atica does the same.) Ten sections: Dashboard, Unit Converter, Packaging, Materials and BOM, Production, Quality and Yield, Purchasing, Data Tools, Settings, About. A light, flat, engineering-style interface that adapts to laptop screens and Windows display scaling. Every screen calls the public functions listed in this README - the GUI contains no formulas of its own. See docs/gui.md.

Calculation domains

Module Import Highlights
Units atica.units 17 categories, exact factors, temperature offsets, custom units & registries, incompatible conversions rejected
Packaging atica.packaging multi-level hierarchies, full packages, remainders, minimum whole packages, immutable products
Materials / BOM atica.materials multi-material BOMs, scrap & wastage allowances, unit conversion, capacity from stock
Production atica.production batches (full vs required), batch materials, time, capacity, quantity constraints
Quality atica.quality first-pass vs final yield, scrap, rework, recovery, wastage - denominators stated
Purchasing atica.purchasing stock deduction, MOQ, order multiples, purchase-unit conversion, surplus
Integrations atica.integrations CSV (stdlib) and Excel (optional) conversion and BOM import

Conventions worth knowing

  • Percentages are on the 0-100 scale and named *_percent: scrap_percent=5 means 5 %. Each result states its denominator.
  • Numbers are Decimal. Inside, arithmetic is exact (fractions.Fraction); rounding to precision digits (default 50, configurable with atica.use_precision) happens once, at the end.
  • Rounding is explicit. Default is none; choose rounding="half_up" | "half_even" | "floor" | "ceiling" and places=. Package rounding (round_to_multiple, split_by_multiple) is separate from mathematical rounding.
  • Unit names are case-sensitive and never guessed: "Kg" is an error with a suggestion, not a silent kg.

Documentation

License

ATICA is free software licensed under the GNU General Public License v3.0 (GPL-3.0) - see LICENSE. Notices for third-party material are in THIRD_PARTY_NOTICES.md.

Metadata

Release files for atica 0.5.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 atica 0.5.0
File Size Uploaded Provenance Actions
atica-0.5.0.tar.gz 865.9 kB With provenance Details for atica-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / atica-0.5.0.tar.gz

Download URL atica-0.5.0.tar.gz
Size 865.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6b67b014c3f7e621caf494e2224401748b5e3757a4c47c5b41f5a4c89343b635
BLAKE2b-256 checksum
How to use checksums
a1f7566a496637477c8c88a2ffb47789af9a02c4a5607ff71030b00bc3f7bdc0
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 27, 2026.

Transparency log

Release files / atica-0.5.0-py3-none-any.whl

Download URL atica-0.5.0-py3-none-any.whl
Size 821.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
727578a80fe82c07c8e80af7ca9ed2a805e9c44cb41618a428764f4b9ddc0bad
BLAKE2b-256 checksum
How to use checksums
6b6f0dbe4ab795fdf38758a2150649b219ba1fd2785b1753f39962fedddf9f46
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 27, 2026.

Transparency log

Security for atica 0.5.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 atica-0.5.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 27, 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.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files Full provenance

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