Skip to main content

Atomion

CI PyPI GitHub issues Download Licence Version python Version micropython

Module servant à manipuler facilement :

  • Quark
  • Proton, Neutron, Electron
  • Noyau
  • Atome
  • Ion (monoatomique/polyatomique)
  • Molécule
  • Equation chimique
  • Réaction chimique
  • Demi-équation
  • Oxydo-réduction
  • Électronégativité
  • Molécule organique
  • Reaction acido-basique
Prévues :
  • Fusion nucléaire (Non-fini)
  • Fission nucléaire
  • Gluons
  • Antimatière
  • Maintien des liaisons

Vous trouverez un dossier exemples avec les diverses fonctionnalités.

Le module est compatible avec Micro Python 1.9.4, donc aussi pour les calculatrices !

Aperçu

from atomion import *

oxygene = Atome('O') # Avec symbole
hydrogene = Atome(1) # Avec nombre proton

chlorure = Ion('Cl')
# Ou
chlorure = IonMonoAtomique('Cl')

carbonate = Ion('CO3')
# Ou
carbonate = Ion('{CO3 2-}')
# Ou
carbonate = IonPolyAtomique('CO3')


eau = hydrogene * 2 + oxygene
# Ou
eau = Molecule('H2O')

from atomion.raccourcis import *

eau = H * 2 + O
# Ou
eau = H2O


# Quark
proton = QUp('R') + QDown('B') + QUp('V')
neutron = QUp('R') + QDown('B') + QDown('V')


# Fusion
noyauH = Noyau(Proton(1), Neutron(1))
noyauHe, *particules = noyauH << noyauH
atomeHe = noyauHe + Electron(2)


equation = Equation('H2 + O2 -> H2O')
equation.equilibrer()
equation == '2 H₂ + O₂ -> 2 H₂O'

equation = DemiEquation('Cl2', '{Cl -}')
equation.equilibrer()
equation == 'Cl₂ + 2 e⁻ -> 2 Cl⁻'


reaction = Reaction(
    equation = equation,
    quantites_reactifs = {H2: 1.6, O2: 1.3}
)
reaction.final() == {H2: 0, O2: 0.5, H2O: 1.6}

oxydoR = OxydoReduction(
    Ion('{Cr2O7 2-}'),
    Atome('Fe')
)
oxydoR.don == 'Fe -> Fe²⁺ + 2 e⁻'
oxydoR.gain == 'Cr₂O₇²⁻ + 14 H⁺ + 6 e⁻ -> 2 Cr³⁺ + 7 H₂O'

reaction = AcidoBasique('{C3H5O2 -}', '{H3O +}')
reaction.gain == 'C₃H₅O₂⁻ + H⁺ -> C₃H₆O₂'
reaction.don ==  'H₃O⁺ -> H₂O + H⁺'
reaction.equation == 'H₃O⁺ + C₃H₅O₂⁻ -> H₂O + C₃H₆O₂'

Pour voir le reste des fonctionnalités, regardez le dossier exemples.

Installer

Ordinateur

  • Ouvrez une invite de commande.

    Comment faire ?

    Sur Windows, appuyez sur la touche Windows + la touche R, et écrivez cmd dans la fenêtre qui s'est ouverte.

  • Assurez-vous d'avoir Python >=3.9 d'installé.

    Comment savoir ?

    Ecrivez python --version dans l'invite de commande. Si Python est installé cela affichera la version qui doit être supérieur à 3.9. Si ce n'est pas le cas, installer Python dans une version égal ou supérieur à 3.9 pour éviter les soucis de compatibilité.

  • Vérifiez que pip est installé.

    Comment vérifier ?

    Ecrivez pip --version dans l'invite de commande. Si pip est installé cela affichera la version qui doit être supérieur à 20.0.0.
    Si ce n'est pas le cas, écrivez python -m pip install --upgrade pip pour mettre à jour.

  • Ecrivez la commande suivante :

    pip install atomion
    
  • Lors de nouvelle mise à jour il suffira de rajouter --upgrade pour mettre le module à jour :

    pip install atomion --upgrade
    
  • Ensuite créez un nouveau fichier, importez le module, et amusez vous !

    from atomion import *
    
    print(Atome('C') + Molecule('O2'))
    

Calculatrice

  • Téléchargez le code.
  • Ouvrez le .zip et glissez le dossier qui se trouve à l'intérieur autre part (dans un endroit accessible).
  • Ouvrez le dossier que vous avez déplacé et executer le fichier mk_file_calculatrice.py.
  • Un fichier atomion.py va se créer, mettez le dans votre calculatrice (que vous aurez branchée à votre ordi via câble USB ou autre).
  • Si vous n'avez plus rien d'autre à faire, débranchez votre calculatrice et amusez-vous !

Si le fichier est trop grand, installer python_minifier (pip install python-minifier), et recréer le fichier.

Si vous avez un problème, n'hésitez pas à regarder les issues déjà exitantes ou à en ouvrir une.

Licence

Ce projet est distribué sous GNU Affero General Public License v3.0 ou ultérieure (AGPL-3.0-or-later).

  • Texte complet : LICENSE - gnu.org
  • Vous pouvez utiliser, étudier, modifier et redistribuer atomion, y compris à des fins commerciales.
  • En contrepartie : tout dérivé distribué ou exposé via un réseau (site web, API, SaaS) doit rester sous AGPL et fournir son code source à ses utilisateurs.
  • La mention de copyright et la licence doivent être conservées (pas de réappropriation).

Copyright (C) 2026 Asurix.

Metadata

Release files for atomion 1.6.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 atomion 1.6.1
File Size Uploaded Provenance Actions
atomion-1.6.1.tar.gz 54.5 kB With provenance Details for atomion-1.6.1.tar.gz

Built distribution (wheel)

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

Total release size: 107.4 kB

Release files / atomion-1.6.1.tar.gz

Download URL atomion-1.6.1.tar.gz
Size 54.5 kB
Tags Source
SHA-256 checksum
How to use checksums
27afa4eacaa7799bc144e770d12e9673c01176d684f7c415f5a42472ce2a24d4
BLAKE2b-256 checksum
How to use checksums
a443286b95b282b27450a28da83e0ceeba132d44c2f4487a84749056161c6ec3
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 14, 2026.

Transparency log

Release files / atomion-1.6.1-py3-none-any.whl

Download URL atomion-1.6.1-py3-none-any.whl
Size 52.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e84bf5c226d194ffaae1be64dcd55b6f59f1f50e5c766989954b811258b4bfb1
BLAKE2b-256 checksum
How to use checksums
d05ef3a9afe3b1aa6bc90236684d7bd81d1c686619c71c7555a466b345e326ad
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 14, 2026.

Transparency log

Security for atomion 1.6.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 atomion-1.6.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 Nov 14, 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