Basic chemistry
Project description
bschemistry
v0.1.1
Bschemistry (basic chemistry) is a library that contains the basic functions to use chemistry on Python as well! It has a complete and accurate periodic table with all data updated regularly and frequent updates for new functions and features.
Example of the table structure:
'name': 'Hydrogen',
'symbol': 'H',
'a_num': 1,
'a_mass': 1.00794, # u
'a_radius': 30, # pm (picometers)
'electron_config': '1s1',
'electronegativity': 2.2, # Pauling's scale
'electron_affinity': 72.8, # kJ/mol
'ionization_energies': 1312, # kJ/mol
'class': 'nonmetal',
'oxidation_nums': [-1,1],
'melting_temp': 14, # K
'boiling_temp': 20, # K
'd': 0.0899, # g/L
'yr': 1766 # year of discovery
Practical examples
To receive the name about an element of the periodic table from the table use:
import bschemistry as ch
t = ch.Table()
print(t.elem("H").name)
To get a single datum about an element use:
import bschemistry as ch
t = ch.Table()
print(t.elem("H").a_mass) # take the atomic mass of element H (Hydrogen)
To receive a dictionary of a formatted molecule use the function format(“molecule”):
import bschemistry as ch
print(ch.format("{1}H2O"))
# Output:
# {'1': {'H': 2, 'O': 1}}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bschemistry-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bschemistry-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
416f25ffff7ee368bb173ffd168c00fc04948640687832096156104b39a070c4
|
|
| MD5 |
d31fbfdba1fc08c1f0755d8249e9453f
|
|
| BLAKE2b-256 |
adce70e8a9770b4741db0bbd7de07e33efdf763831df95b1494126f57680a8db
|