Skip to main content

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
  • 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.py in install_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.

publish new package

  • bump version number in setup.py
  • make pypiprod

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for onlaw-api-client, version 0.1.13
Filename, size File type Python version Upload date Hashes
Filename, size onlaw_api_client-0.1.13-py3-none-any.whl (16.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size onlaw_api_client-0.1.13.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page