Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
/ registers-cli Public archive

The Registers command line interface

License

Notifications You must be signed in to change notification settings

openregister/registers-cli

Repository files navigation

Registers CLI

The Registers CLI lets you manage your registers expressed as Register Serialisation Format (RSF).

Install

Ensure that you have Python +3.6 installed on your machine.

pip3 install --user "git+https://github.com/openregister/registers-cli#egg=registers"

Troubleshooting

  • Pip is not up to date: Ensure you have pip up to date: pip3 install -U pip.
  • The 'registers' distribution was not found: This is likely to be Pip configuration issue. Read more here: https://pip.pypa.io/en/stable/user_guide/#user-installs
  • There are conflicting dependencies: Python manages dependencies centrally. Typically, if you need to isolate them, you would use some sort of virtualenv.

Getting started

Check out the examples/ directory.

Development

Dependencies

Install the development dependencies:

pipenv install --dev

Ensure everything works:

make check lint test

To try the CLI without installing it you can use the reg wrapper. For example, to get the schema for the country register:

pipenv run ./reg schema show tests/fixtures/country.rsf

If you need to get more RSF files you can get them from https://github.com/openregister/registry-data.

Licence

Unless stated otherwise, the codebase is released under the MIT licence.

The data is © Crown copyright and available under the terms of the Open Government 3.0 licence.

About

The Registers command line interface

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages