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.5.tar.gz (7.3 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.5-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ncn-0.0.5.tar.gz
  • Upload date:
  • Size: 7.3 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.5.tar.gz
Algorithm Hash digest
SHA256 8584967c8c4e2a5c470f4cf9793e0253af531b00e6cc191be9b9afbca84e9b4b
MD5 8e3d7092842520f2362a5cf07893db48
BLAKE2b-256 aaa3dc72cfebc2de779ce5fef6c93e6804c41ed862afbf382a4a754f69e81563

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ncn-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 24e50db5f27e4580e024970cbb95a4d1bb222145a62d5ce8a3277d2d4f1d6ac6
MD5 7636b990a3d551ef3b4d2a13646f32a8
BLAKE2b-256 ad46a3a8fe5aeacb6aa58a566e70a4d6b6513e0bd3fe2afc2f5e75048c75cad9

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