Skip to main content

DEXPI Specificator

dexpi.specificator is a Python library and CLI tool that lets you generate DEXPI specifications in Python.
It can be installed via PyPI or TestPyPI and used either as a library or a command-line tool to convert specification inputs into specification outputs.


Features

  • Parse input specification files in the DEXPI format
  • Generate DEXPI outputs (XML, JSON, etc.) from those inputs
  • Validate specifications against DEXPI schemas
  • Tested with automated unit tests to ensure correctness
  • Published on PyPI/TestPyPI for easy installation via pip

Installation

Install the stable release from PyPI:

pip install dexpi.specificator

Install the latest development version from TestPyPI:

pip install --index-url https://test.pypi.org/simple/ dexpi.specificator

Usage

Used in Specification Projects

The Specificator is used to generate the DEXPI Specification in CI/CD Pipelines of GitLab Repositories. see https://gitlab.com/dexpi/Specification as the main used Repository

DEXPI report layout

The package includes a DEXPI-branded Sphinx layout for HTML and A4 PDF reports. Enable it from your specification project's conf.py:

from dexpi.specificator.sphinx_theme import configure

# Keep the model extension alongside the layout extension added by configure().
extensions = ['dexpi.specificator.sphinx_ext']
dexpi_report = {
    'title': 'DEXPI\nSpecification',
    'continuation_title': 'DEXPI Specification',
    'subtitle': f'Version {release}',
    'footer': f'DEXPI e.V.   |   Specification   |   {release}',
}
configure(globals())  # after project, author and release

The layout ships with its assets; it needs no local theme files or ReportLab. PDF generation requires a LaTeX installation with TikZ, tcolorbox and eso-pic. See layout documentation and the Vehicles example.

CI report artifacts

The build-package job builds the documentation and Vehicles example with the DEXPI layout, including a PDF report. Its artifacts contain:

  • doc/.build/html/index.html: branded software documentation.
  • doc/.build/html/vehicles/html/index.html: Vehicles HTML report.
  • doc/.build/pdf/Vehicles.pdf: Vehicles PDF report.
  • doc/.build/html/vehicles/pdf/Vehicles.pdf: the same PDF linked from the example documentation and included when publishing GitLab Pages.

To reproduce the report build locally, install the LaTeX and Node.js dependencies listed in .gitlab-ci.yml, then run:

npm ci --prefix src/dexpi/specificator/utils/uml_diagrams_js
python doc/make_doc.py --pdf

Omit --pdf for an HTML/XML/XMI build without LaTeX. Existing job artifacts are snapshots; use the new pipeline's artifacts to see these changes.

CI/CD & Release Process

The project uses GitLab CI/CD for testing and publishing:

  1. Testing
    Unit tests run automatically on every commit and merge request. Builds must pass before deployment.

  2. Publish to TestPyPI
    Development builds are uploaded to TestPyPI for pre-release testing.

  3. Publish to PyPI
    Tagged releases or main branch builds are uploaded to PyPI.
    API tokens are securely stored in GitLab CI/CD variables.

  4. Versioning
    Follows Semantic Versioning (MAJOR.MINOR.PATCH).


Contributing

  • Open a merge request with your changes
  • Include tests for new functionality or bug fixes
  • Follow code review feedback before merging

Issues

Report issues and feature requests in the GitLab issue tracker.


License

This project is licensed under the LICENSE file included in the repository.

Metadata

Release files for dexpi.specificator 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dexpi.specificator 1.0.2
File Size Uploaded Provenance Actions
dexpi_specificator-1.0.2.tar.gz 9.8 MB Without provenance Details for dexpi_specificator-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dexpi.specificator 1.0.2
File Interpreter ABI Platform Actions
dexpi_specificator-1.0.2-py3-none-any.whl Python 3 none any Details for dexpi_specificator-1.0.2-py3-none-any.whl

Total release size: 19.7 MB

Release files / dexpi_specificator-1.0.2.tar.gz

Download URL dexpi_specificator-1.0.2.tar.gz
Size 9.8 MB
Tags Source
SHA-256 checksum
How to use checksums
602e2354b4056065aab7f87480b0ac6f98a1c1c9bc8268bacdd9b1ea5ac8a45e
BLAKE2b-256 checksum
How to use checksums
28bb5d1aa5938179db52617adf5f6f17a8daab77c768219d9f38009192dee53f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.16

Release files / dexpi_specificator-1.0.2-py3-none-any.whl

Download URL dexpi_specificator-1.0.2-py3-none-any.whl
Size 9.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dec6947f2a44068e84e9d586d72794dd0a35c6832543800157e857380cba8ab4
BLAKE2b-256 checksum
How to use checksums
00f13682817d39a8b7a10dae63929a1381e1180fd72def884df5c6360c260d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.16

Security for dexpi.specificator 1.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page