elemenpy
Hello! elements.py is a small Python periodic table module that is used for calling certain information about an element.
Installation
- Install Python and pip here, if they are not installed already.
- Go to your command-line interface of choice and write the command
pip install elemenpy
.
Usage
Elemenpy needs to be imported with the usage of import elements
at the top of the Python file.
Examples of usage:
from elements import elements
print(elements.symbol(1)) # should be H
print(elements.name(27)) # should be Cobalt
print(elements.mass(59)) # should be 140.9077
Contributing
The Elemenpy team welcomes all contributions, please see the contributing guidelines file here.
Testing
Elemenpy requires pytest
to run its tests in the tests/ directory. All pull requests to the main branch will be linted and tested by CircleCI. In addition, CircleCI will upload a coverage report to Codacy, allowing us to see current test coverage and other code smells.