Skip to main content

Fallout Library

The Fallout library provides simple methods for calculating decay times, remaining mass, and radiation dose (siverts) for a set of predefined radioactive substances.

Installation

Install via pip:

pip install fallout

Usage

from fallout import Fallout

# Create an instance
fallout = Fallout()

# List available substances
substances = fallout.get_radioactive_substances()
print(substances)

# Calculate remaining grams after a number of half-lives
remaining = fallout.calculate_remaining_gram(gram=10, number_of_halflifes=2)
print(remaining)

# Determine risk based on amount of radioactive material
risk, siverts = fallout.calculate_risk("Uranium-235", 5)
print(risk, siverts)

Methods Overview

  • get_radioactive_substances(): Returns the dictionary of radioisotopes and their properties.
  • calculate_decay_time(type, number_of_halflifes): Returns the realistic decay time based on half-lives and isotope data.
  • calculate_remaining_gram(gram, number_of_halflifes): Computes how much mass remains after a certain number of half-lives.
  • calculate_siverts(type, gram): Calculates the radiation dose in siverts based on mass.
  • calculate_risk(type, gram): Gives a risk assessment and dose in siverts.

Example CLI Usage

If you run the fallout.py file directly:

python fallout.py

It will prompt for substance type, amount in grams, and number of half-lives to compute safety and decay information.

Metadata

Release files for fallout 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fallout 0.0.5
File Size Uploaded Provenance Actions
fallout-0.0.5.tar.gz 5.0 kB Without provenance Details for fallout-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fallout 0.0.5
File Interpreter ABI Platform Actions
fallout-0.0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details for fallout-0.0.5-py2.py3-none-any.whl

Total release size: 11.7 kB

Release files / fallout-0.0.5.tar.gz

Download URL fallout-0.0.5.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9a2384431549f63abb324f10cddaf75c884664cf634369ae5a55650943829c54
BLAKE2b-256 checksum
How to use checksums
2560458a0943b3fa5b8ccd83d7afd3fe3324dfbe364d57297b0b4220358deae4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / fallout-0.0.5-py2.py3-none-any.whl

Download URL fallout-0.0.5-py2.py3-none-any.whl
Size 6.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a9319995f997f1bc00d0e8ac0b54b764edc8c717c7a982291207c55bbb5dfc34
BLAKE2b-256 checksum
How to use checksums
f82b362decf2feb3f13fd043da3086c1dd6cad8a83f6b6606edc829d025333e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Security for fallout 0.0.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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