Skip to main content

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.2.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ncn-0.0.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file ncn-0.0.2.tar.gz.

File metadata

  • Download URL: ncn-0.0.2.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ncn-0.0.2.tar.gz
Algorithm Hash digest
SHA256 604c5a92ab5e0cf16dac9259f90cedf81a0ed9ce1e08ed6fcb314052651b6cf0
MD5 3a86d3544683e2309ee544a6e0b3acdf
BLAKE2b-256 5a3d765d3ada459ba1c054e3ae695d03dd6404b52e14055dac55b0e6192a7d45

See more details on using hashes here.

File details

Details for the file ncn-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ncn-0.0.2-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

Hashes for ncn-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09854f3e5e73487b22f30cceea926ffc0482eb712b9a7f17097bcdae8929b8f4
MD5 e13d928648d4b6e04329dd8d701f55fe
BLAKE2b-256 3553337ca7b303e067085fe520889b040b7c4ffa6a7cc12d1fc8b1d1f1facb40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page