🧪 molweightcal
molweightcal is a Python package to calculate the molecular weight of a chemical compound given its molecular formula (e.g., H2O, C6H12O6, (NH4)2SO4).
Features
✅ Provides step-by-step calculation for each element ✅ Supports all known elements ✅ Lightweight and fast — no external dependencies
🔧 Installation
pip install molweightcal
🚀 Usage
import molweightcal
print(molweightcal("C6H12O6"))
✅ Output
Molecular weight of C6H12O6: 180.156 Details: C(6) × 12.011 = 72.066 H(12) × 1.008 = 12.096 O(6) × 15.999 = 95.994
❗ Error Handling
molweightcal performs thorough input validation to detect and report issues such as:
✅ Unknown chemical elements (e.g., "Z6H2") ✅ Lowercase letters in invalid positions, etc.
Metadata
Release files for molweightcal 0.1.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 |
|---|---|---|---|---|
| molweightcal-0.1.0.tar.gz | 4.0 kB | Without provenance | Details for molweightcal-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| molweightcal-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for molweightcal-0.1.0-py3-none-any.whl |
Total release size: 8.5 kB
Release files / molweightcal-0.1.0.tar.gz
| Download URL | molweightcal-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10cd5dee8aadec81e7c32da70b6b2652f9515ed2f920cfe5d6fd58610bb5f313
|
|
BLAKE2b-256 checksum How to use checksums |
1a670d7a8bf7070657fe71e5a93870c4ed8c8f0c1710098db558924b72c840ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Release files / molweightcal-0.1.0-py3-none-any.whl
| Download URL | molweightcal-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daef46cfe249ff99cefec1c399e835f7052bc2c28b79c87d89e3b3cf996ecae0
|
|
BLAKE2b-256 checksum How to use checksums |
2c63685e53e311567fe4e08c12c4f3f636ace2999a1ac4f298a0d795daec620d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Security for molweightcal 0.1.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.