Discover Packages
github.com/ONSdigital/dp-population-types-api
command
module
Version:
v1.35.0
Opens a new window with list of versions in this module.
Published: Oct 12, 2026
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
dp-population-types-api
Exposes representation of the population types resources which support selection of datasets exposed elsewhere
Getting started
SDK
A Python SDK for this API is available in sdk/python . See the SDK README for installation and usage
Dependencies
No further dependencies other than those defined in go.mod
Docker is required to run the component tests (make test-component), as they use testcontainers to run MongoDB
Configuration
Environment variable
Default
Description
BIND_ADDR
:27300
The host and port to bind to
GRACEFUL_SHUTDOWN_TIMEOUT
5s
The graceful shutdown timeout in seconds (time.Duration format)
HEALTHCHECK_INTERVAL
30s
Time between self-healthchecks (time.Duration format)
HEALTHCHECK_CRITICAL_TIMEOUT
90s
Time to wait until an unhealthy dependent propagates its state to make this app unhealthy (time.Duration format)
OTEL_EXPORTER_OTLP_ENDPOINT
localhost:4317
Endpoint for OpenTelemetry service
OTEL_SERVICE_NAME
dp-population-types-api
Label of service for OpenTelemetry service
OTEL_BATCH_TIMEOUT
5s
Timeout for OpenTelemetry
OTEL_ENABLED
false
Feature flag to enable OpenTelemetry
MAX_ROWS_RETURNED
100000
The maximum number of rows that should be returned from the /census-observations endpoint
Contributing
See CONTRIBUTING for details.
License
Copyright © 2024, Office for National Statistics (https://www.ons.gov.uk )
Released under MIT license, see LICENSE for details.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
features
Click to show internal directories.
Click to hide internal directories.