An API client for interacting with the underlying data in Find Caselaw.
Project description
The National Archives: Find Case Law
This repository is part of the Find Case Law project at The National Archives. For more information on the project, check the documentation.
MarkLogic API Client
This is an API Client for connecting to Marklogic for The National Archive's Caselaw site.
This package is published on PyPI: https://pypi.org/project/ds-caselaw-marklogic-api-client/
Usage
You can find documentation of the client class and available methods here.
Testing
To run the test suite:
poetry install
poetry run pytest
There are also some smoketests in smoketests.py
which run against a MarkLogic database but do not run in CI currently.
To run them locally you can set the environment variables as detailed in the file in a .env
file or just hardcode them in, as long as you don't commit those changes to the repo.
And then run
poetry run pytest smoketest.py
To start with when running this, we have been choosing to point to the staging MarkLogic to have more confidence that the setup is a good representation of production as opposed to a local MarkLogic instance but that can work too.
Eventually we will make it so that we run these tests in CI and probably point to a dedicated testing MarkLogic instance so we don't get conflicts with people using staging for manual testing.
Making changes
When making a change, update the changelog using the Keep a Changelog 1.0.0 format. Pull requests should not be merged before any relevant updates are made.
Releasing
When making a new release, update the changelog in the release pull request.
The package will only be released to PyPI if the branch is tagged. A merge to main alone will not trigger a release to PyPI.
To create a release:
- Update the version number in
pyproject.toml
- Create a branch
release/v{major}.{minor}.{patch}
- Update
CHANGELOG.md
for the release - Commit and push
- Open a PR from that branch to main
- Get approval on the PR
- Merge the PR to main and push
- Tag the merge commit on
main
withv{major}.{minor}.{patch}
and push the tag - Create a release in Github releases using the created tag
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
Hashes for ds_caselaw_marklogic_api_client-17.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ac81f39ba8345df7c3d39e11897b2f4a9305e6fa059f7f525278862500d575 |
|
MD5 | 68c1c931043b1e4dfdd2e22bb0ceda64 |
|
BLAKE2b-256 | fda123c2d25a7940b18d97b3152ba04d0ad35d57a5dd44926cb783337bbf85dd |
Hashes for ds_caselaw_marklogic_api_client-17.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68620fb170a426be5b7695455737e11bd63a53d3c73a3346d9a29380d621604f |
|
MD5 | a23fc014c96322b217e5bd9f559eb75e |
|
BLAKE2b-256 | bf140b7f9a754fd6bfece555db349b147dd07f3548c1309fdaa87fbee0297375 |