The Registers CLI lets you manage your registers expressed as Register Serialisation Format (RSF).
Ensure that you have Python +3.6 installed on your machine.
pip3 install --user "git+https://github.com/openregister/registers-cli#egg=registers"
- 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.
Check out the examples/
directory.
- Python 3.7.
- Pipenv.
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
.
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.