Skip to main content

Normalize Library of Congress Control Numbers.

Project description

Lccnorm

PyPi Version 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.

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

lccnorm-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

lccnorm-1.0.0-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: lccnorm-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8a09663dcf3f9f95c38c609796a6298084006031a9b34c0c39d47a59bb0bfe63
MD5 7a9122022070953ce8b8c0414f4e13a5
BLAKE2b-256 c4eed198d01b11bf14572928967ffe599eefa56816e628c03f4c8e04b4a8c236

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lccnorm-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.0 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-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4142a51ee850564e9ea014e0d3a6259f394bed427ebe02bac0f93f26f81c8b95
MD5 f85935064fa14439e4da336a3be12ac0
BLAKE2b-256 b12896ff8bc3c8ead278cd67e58280abd280f3eed881bd6ea0f33dd12daff89c

See more details on using hashes here.

Supported by

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