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(balance='Ti', hyphen=True, Al=6, V=4))
# Output: Ti-6Al-4V

parse

from ncn import parse

composition = parse('Ti-6Al-4V', balance=True)
print(composition)
# Output: {'Al': 6.0, 'V': 4.0, 'Ti': 90.0}

find

from ncn import find

results = find('Titanium Ti-8Al-1Mo-1V (Ti-8-1-1) Annealed 8 hr at 790°C (1450°F)')
print(results)
# 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.1.tar.gz (6.9 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.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ncn-0.0.1.tar.gz
  • Upload date:
  • Size: 6.9 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.1.tar.gz
Algorithm Hash digest
SHA256 b7adde5cff8d8a356eb7fe865fb79ce81ef84af04d90f40f60c429760ced48d1
MD5 20b76b20b23af164dfcc45c2b9b398fd
BLAKE2b-256 a27ac2d1ddce03f7449e89da05ee1ce9fbe05e5ee4783ccf5b260ad9fd8535f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ncn-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 735a636621efe238052c19af1192cc63f74b3f41f493ea774054e428a33efcae
MD5 96afd80d3135edd48c33e44b368c9280
BLAKE2b-256 098840bb4253225ef963661edf48df6265b7c89f0b12fc715c35ca6d6471c637

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