Skip to content

Locator is a python parser for GPO locator code (or bell coded) files, focused on html conversion.

License

Notifications You must be signed in to change notification settings

LibraryOfCongress/locator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

locator

Locator is a python parser for GPO locator code (aka bell coded) printer files, focused on html conversion.

Installation

TODO: Describe the installation process

Usage

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

Contributing

  1. Read GPOs documentation about locator codes: https://www.gpo.gov/vendors/composition.htm
  2. Fork it!
  3. Create your feature branch: git checkout -b my-new-feature
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. 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/

  1. 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

  2. Clone the github project: git clone https://github.com/LibraryOfCongress/locator.git

  3. 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

  4. Edit files.

  5. git push -u origin feature/initial-update

History

TODO: Write history

Credits

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.

License

See License file.

About

Locator is a python parser for GPO locator code (or bell coded) files, focused on html conversion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages