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

Uploaded Python 3

File details

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

File metadata

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

Hashes for ncn-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ac18c66834eca3d0b189b919fc70227af15208c013a69a3e3783ce0947eacbd4
MD5 f0cc1d3206b5486f55866702b0acc4af
BLAKE2b-256 5c2474c0c25a4c45431a6e643b7b242f52ec250faf718ee3b25a7bec4b899d7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ncn-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3dc0569071884e98e76bf62f1e58b465653cbc6d0a337e35bfafbc5a835d5e10
MD5 da4b83ff96b4cd5dc530799e055fe6fd
BLAKE2b-256 7bdeb0068ed5aa496d566fea3410ae284ca0e08630fec26bf88eada4a08e3e49

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