Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for lccnorm, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size lccnorm-1.0.0-py2.py3-none-any.whl (4.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size lccnorm-1.0.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page