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 - update dependencies:
pip-compile requirements.dev.in > requirements.dev.txt - install:
pip install -r requirements.dev.txt - sync dependencies:
pip-sync 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.pyininstall_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-depsarguments which prevent dependencies to be installed. test.pypi does not have all packages and hence installation from test.pypi most likely fail.
publish new package
- bump version number in
setup.py make pypiprod
Metadata
Release files for onlaw-api-client 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onlaw_api_client-0.1.13.tar.gz | 3.6 kB | Without provenance | Details for onlaw_api_client-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onlaw_api_client-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for onlaw_api_client-0.1.13-py3-none-any.whl |
Total release size: 20.0 kB
Release files / onlaw_api_client-0.1.13.tar.gz
| Download URL | onlaw_api_client-0.1.13.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76816f68fa7f280f5c9b0ca8bef4b146bdcf622552852afff49cd92b8e7c6965
|
|
BLAKE2b-256 checksum How to use checksums |
7fc5486ca4f4fecef4db3f0955e4001caafdfd44df1437e5a580afa58ceb5e6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
|
Release files / onlaw_api_client-0.1.13-py3-none-any.whl
| Download URL | onlaw_api_client-0.1.13-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a57b4a78f266b3491dde1c642cd9d76dc8cceab83126a6dca7d0988f5751d46a
|
|
BLAKE2b-256 checksum How to use checksums |
5b3754624b580a9f3ef499786b6d248dee3cd689feb6e4c439ecfcc26c08b99a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
|
Security for onlaw-api-client 0.1.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.