Overview
Element is an extremely lightweight package that defines the elements of the periodic table and allows them to be accessed by symbol, name, atomic number, or mass. It has zero dependencies outside of the Python Standard Library.
Warning
Ele is still in early development (0.x releases). The API may change unexpectedly.
Usage
Ele only supports a few modes of use. You can retrieve an element from the symbol, the name, the atomic number, or the mass (in amu):
import ele
na = ele.element_from_symbol("Na")
na = ele.element_from_name("sodium")
na = ele.element_from_atomic_number(11)
na = ele.element_from_mass(22.990)
The mass is rounded to a single decimal before comparison. If you wish to retrieve the element with the mass closest to the specified value you may use the exact=False keyword.
Each Element has four attributes which can be accessed (as demonstrated below for na):
na.name
na.symbol
na.atomic_number
na.mass
The elements can also be accessed by symbol as follows:
import ele
na = ele.Elements.Na
Installation
Install via pip:
pip install ele
or conda:
conda install -c conda-forge ele
Installation from source is also an option:
git clone git@github.com/rsdefever/ele.git
cd ele
pip install .
Data Sources
Complete details of the sources are provided here
Credits
Development of Ele was supported by the National Science Foundation under grant NSF Grant Number 1835874. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
Metadata
Release files for ele 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ele-0.2.0.tar.gz | 11.4 kB | Without provenance | Details for ele-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ele-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ele-0.2.0-py3-none-any.whl |
Total release size: 22.0 kB
Release files / ele-0.2.0.tar.gz
| Download URL | ele-0.2.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0aa404ab1403e9e08e6efc8533698aa0c8489a0e391bb0a95ce95dde086a35d
|
|
BLAKE2b-256 checksum How to use checksums |
10766b4206efc629e3f5462d0543a202699a694abd0f2449a9f62b711465daf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / ele-0.2.0-py3-none-any.whl
| Download URL | ele-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b2a90e06bf8763ba0853c9d9fb40bf15a634af62781a674d5e823f530be1265
|
|
BLAKE2b-256 checksum How to use checksums |
cb15fa84d5465f60ff5783f4232ed82ae01e4ef1bb32264d07b5ac1b3d49e75f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for ele 0.2.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.
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.