Skip to main content

Lccnorm

Build Status

Installation

pip install lccnorm

Usage

Import the package

>>> import lccnorm

Get a normalized version of an LCCN:

>>> lccnorm.normalize("75-425165//r75")
'75425165'

Check that an LCCN is valid:

>>> Lccnorm.is_valid("75425165")
True
>>> lccnorm.is_valid("not even a number")
False

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/seanredmond/lccnorm-py. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Lccnorm project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lccnorm-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

lccnorm-0.0.1-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: lccnorm-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for lccnorm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7dc998549b49725d8e46e6d17b26edee1730a3981d1a476750a97b0af1336dca
MD5 0b7419abcee399afc14507a6f1a14671
BLAKE2b-256 218c3441ea01496b25ee3158429d480f769dc87a0ac0f74197b1300f42ca3fd7

See more details on using hashes here.

File details

Details for the file lccnorm-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: lccnorm-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for lccnorm-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5ada9900ab40d47777a2ba89145819703a27b590555532c37615e8efe1ee53a3
MD5 3c630eda2ab53babe0d26cb368b35a6e
BLAKE2b-256 9de96c244caab60966de7b302e2071fe46a8dcc664e8b6d9c5a5bd1786800bf1

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

2 files

This release

0.0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page