Skip to main content

A python module for getting information on the elements.

Project description

Elementum

General Information

Element is a Python library that allows users to easily get information on the elements. It also allows you to make compounds from those elements.

Documentation

To create an instance of an element, type:

import elementum
element = elementum.Element("Hydrogen")

Note that element = elementum.Element("H"), element = elementum.Element(1), or element = elementum.Element(1.008) will also work.

Once an element is created, you can view its properties by printing it, like this:

import element
h = elementum.Element("Hydrogen")
print(h)

This shows the element's:

  • Name
  • Symbol
  • Atomic Number
  • Atomic Mass (rounded to 3 decimal places)
  • Type (Alkali metals, Noble gasses, etc.)
  • Radioactivity (either True or False)

Compounds

You can add elements together and multiply them to make compounds, like so:

import element
H = elementum.Element("Hydrogen")
O = elementum.Element("Oxygen")
water = H*2+O
print(water)

Last but not least, one can view the full periodic table with the table function.

import element
table = elementum.table()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elementum-0.0.8.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elementum-0.0.8-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file elementum-0.0.8.tar.gz.

File metadata

  • Download URL: elementum-0.0.8.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for elementum-0.0.8.tar.gz
Algorithm Hash digest
SHA256 32f406022b94620739bda81c0d7c8a348d3919e55e7418c5d8be917250e3bcf5
MD5 154842e7d00a24cded200c0badf1a937
BLAKE2b-256 73aca7063d7c3ef93761f80cfd5cefe1b60f97d14e3f0fd6747ad64d531a299a

See more details on using hashes here.

File details

Details for the file elementum-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: elementum-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for elementum-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fbfcf03027b2fb070fa8db185c8cd36a56e17cbb0ad5ce171f70b1b0eb793eee
MD5 a698aca0e351a72fabc38a7d740e2382
BLAKE2b-256 a26e126e122fbd689d4b136c6d761e813fbb4e9576eb2220da255948041245d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page