gov-service
| PyPi | |
| GitHub | |
| Code | |
| Docs |
A local GOV (Geschichtliches Ortsverzeichnis) server service, usable as an alternative GOV server via the GOV-Tag base_url option.
Command Line Testing
You can test queries directly from the command line using the scripts/gov_query tool:
# List available queries
scripts/gov_query -li
# Test the NameByGovId query with Schönberg's GOV-Kennung
scripts/gov_query -qn NameByGovId --params gov_id=SCHERGJO54EJ -f json
API Testing
When the service is running (e.g. via scripts/startup --gov), you can test the REST API endpoint directly using curl:
# HTML (default)
curl -s http://localhost:8000/item/wikihtml/SCHERGJO54EJ
# JSON via Accept header
curl -s -H "Accept: application/json" http://localhost:8000/item/show/SCHERGJO54EJ
# YAML via Accept header
curl -s -H "Accept: application/x-yaml" http://localhost:8000/item/show/SCHERGJO54EJ
# JSON via format query parameter (overrides Accept header)
curl -s "http://localhost:8000/item/show/SCHERGJO54EJ?format=json"
API Documentation
The service is built with FastAPI, which automatically provides interactive API documentation when the server is running:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
Docs
Metadata
Release files for gov-service 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gov_service-0.0.4.tar.gz | 17.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gov_service-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.5 kB
Release files / gov_service-0.0.4.tar.gz
| Download URL | gov_service-0.0.4.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dab126cfdebc84cadbfaca1503ea88ae2bbcdc972b6f609848f27d8d64ae6345
|
|
BLAKE2b-256 checksum How to use checksums |
53c8ab1dff7437e4c8f62bf407ac0c83751f2f5741c46af254e10f6aca96bc6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 14, 2026.
Transparency logRelease files / gov_service-0.0.4-py3-none-any.whl
| Download URL | gov_service-0.0.4-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23ec40b3f17c398d82f9fdc0f840f72868916026fd98dc5de8fe3b332d9d90b7
|
|
BLAKE2b-256 checksum How to use checksums |
02d1772ac5a7b3e5096a9158d3ce3ccb43bb857776eb8aae582979b666f3c6ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 14, 2026.
Transparency log