Locator is a python parser for GPO locator code (aka bell coded) printer files, focused on html conversion.
TODO: Describe the installation process
Written for python3.
to run it: python parser.py locator_file.rec >locator_file.html 2>/dev/null
python test_dailydigest.py locator_file.rec >locator_file.html 2>/dev/null
unit tests: python -m unittest discover
TODO: Write usage instructions
- Read GPOs documentation about locator codes: https://www.gpo.gov/vendors/composition.htm
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
1.. Setup 2 factor auth if you have not done so already 2. Generate personel token: https://help.github.com/articles/providing-your-2fa-authentication-code/ 3. setup caching of personal token for command line git so you do not have to keep looking up the token. https://help.github.com/articles/caching-your-github-password-in-git/
-
Using the tutorial at https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/ try cloning and modifying some files to get a handle on devloping
-
Clone the github project: git clone https://github.com/LibraryOfCongress/locator.git
-
Set the remote to be upstream so you can get updates: git remote add upstream https://github.com/LibraryOfCongress/locator.git
git checkout master git pull upstream master && git push origin master create a branch to do you work in: git checkout -b feature/initial-update
-
Edit files.
-
git push -u origin feature/initial-update
TODO: Write history
Originally developed in the 90s as part of the thomas.loc.gov project using C, Icon, shell and sed scripts. Redeveloped in python and put on github as part of the congress.gov project.
See License file.