Registry / serialization / sdmxschemas

sdmxschemas

JSON →
library1.0.0pypypi✓ verified 80d ago

sdmxschemas is a Python package providing the SDMX (Statistical Data and Metadata eXchange) schemas as a Python module for validation and reference. Version 1.0.0 supports SDMX 3.1 schemas. It is a thin wrapper over the official SDMX XSD and JSON schemas, enabling programmatic access to schema locations and content.

pip install sdmxschemas
INSTALL
IMPORT
SIG · SDMXSCHEMAS
S
sdmxschemas
serializationpythonv1.0.0
Install
1.7s avg
Import
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 22MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SDMX_JSON_10_BASE_PATH
from sdmxschemas import SDMX_JSON_10_BASE_PATH
from sdmxschemas import SDMXSchema
SDMX_ML_31_MESSAGE_PATH
from sdmxschemas import SDMX_ML_31_MESSAGE_PATH
from sdmxschemas import SDMXSchema
Path
from sdmxschemas import Path
from sdmxschemas import SDMXSchema

Initialize SDMXSchema with a version string and explore available schemas.

from sdmxschemas import SDMXSchema # Access schema version 3.1 schema = SDMXSchema('3.1') print(schema.versions) # list available versions print(schema.get_schema_names()) # list available schema files
Debug
Known issues
gotchaVersion string must match exactly (e.g., '3.1', not '3.1.0' or 'v3.1').
fix
Use the version as defined by SDMX, e.g., '3.1' for SDMX 3.1.
affects: >=1.0.0
deprecatedSome older SDMX versions may be removed in future releases.
fix
Always pin your dependency and check changelog for schema version removals.
affects: 1.0.0
gotchaSchema paths are platform-dependent; avoid hardcoding the package directory.
fix
Use SDMXSchema class methods instead of accessing __file__ or similar.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on PyPI · released Jul 18, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
4
OpenAI (training)
1
Resources
sdmxschemas — pip install sdmxschemas · libregistry