Use cnc to name, parse and find nominal composition notation.
Project description
ncn (Nominal Composition Notation)
Use cnc to name, parse and find nominal composition notation.
name
from ncn import name
print(name(Ti='balance', Al=6, V=4))
# Output: Ti6Al4V
parse
from ncn import parse
print(parse('Ti-6Al-4V', balance=True))
# Output: {'Al': 6.0, 'V': 4.0, 'Ti': 90.0}
find
from ncn import find
print(find('Titanium Ti-8Al-1Mo-1V (Ti-8-1-1) Annealed 8 hr at 790°C (1450°F)'))
# Output: ['Ti-8Al-1Mo-1V']
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
ncn-0.0.3.tar.gz
(7.1 kB
view details)
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
ncn-0.0.3-py3-none-any.whl
(7.4 kB
view details)
File details
Details for the file ncn-0.0.3.tar.gz.
File metadata
- Download URL: ncn-0.0.3.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46ef96e625c797d56959538a32d2f14d18e3a38cef716e76440f090d844b2c3a
|
|
| MD5 |
f89fbdc4511a45bdcb507e72aef96568
|
|
| BLAKE2b-256 |
71203df63a40ef61c7f241e60f9d555806b5180eb14fac3719d4121eea91ff6c
|
File details
Details for the file ncn-0.0.3-py3-none-any.whl.
File metadata
- Download URL: ncn-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f16b0e9902d589bf23b250eeb9992173998e2831c55eef3d4ae2981448e7ff7
|
|
| MD5 |
008c43a32234e2062dcbfc8754624938
|
|
| BLAKE2b-256 |
bdb8a4efa5a9d26c44961e8e91bd8f488544c497dfe35938476991bd408f46be
|