client for api.onlaw.dk
Project description
onlaw_api_client
python client for api.onlaw.dk
installation
std usage
simply
pip install onlaw_api_client
For a minimal example see examples/query.py
development
- clone the repo :
git clone https://github.com/Onlaw/onlaw_api_client.git
- venv:
python3 -m venv venv
- activate:
source venv/bin/activate
- install:
pip install -r requirements.dev.txt
- install onlaw api client from local source:
pip install -e .
- install pre-commit hooks:
pre-commit install
new dependencies
- Add them to
setup.py
ininstall_requires
. - To generate a new
requirements.txt
:pip-compile
testing package
- build package (remember if neccesary to change version in
setup.py
):make pypitest
- create new venv and activate it, and install package:
pip install --index-url https://test.pypi.org/simple/ onlaw_api_client --upgrade --extra-index-url https://test.pypi.org/simple/ --no-deps
. Note the--no-deps
arguments which prevent dependencies to be installed. test.pypi does not have all packages and hence installation from test.pypi most likely fail.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for onlaw_api_client-0.1.11a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 485232a8fe9c49a2a267635c4c8ccb67c3d07db523e5233852920d56b6a002c3 |
|
MD5 | 321c1c4f132916622648ebdeddc3eff6 |
|
BLAKE2b-256 | 5f7085a7225dc35dc0f67dc7acdd2cdbe6092b6dea118e2b8f9b198c319d4578 |
Close
Hashes for onlaw_api_client-0.1.11a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab47dee8f77fa2e0efaa419c7eac782bdd4a741f09ef6a288f7b91b0d926d701 |
|
MD5 | 3fc878f6d6badc0eb8b21df9d8c553fa |
|
BLAKE2b-256 | d79c3099f6eb58d43269aa375ece1f4a37c98a51b236153442f61b5a7fc4522d |