Skip to content

open-source-uc/validate-uc-number-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UC number validator

lint

Validate UC alumni identifier numbers with Python 3.

Getting started

Install the library with:

pip install -U ucnumber

Usage

from ucnumber import validate

is_valid = validate("1263476J")

if validate(14644088):
  print("It's valid!")
  # ...

Testing

Run the test suite with:

python -m unittest tests

To install it locally from the source code:

python setup.py develop

Publish

python setup.py register sdist upload