Skip to main content

inspire-schemas

Tests Coverage Release PyPI downloads License

INSPIRE JSON schemas and related tools.

Installation

Requires Python 3.11 or newer. Install from PyPI:

pip install inspire-schemas

Docker

Install Docker, then build the image from the repository root:

docker build -t inspire-schemas .

Start a shell inside the container, then run the tests:

docker run -it inspire-schemas
pytest tests/

The image build already installs dependencies and generates the schema JSON files, so the container is ready to test as soon as it starts.

Contributing

Bug fixes, features, and documentation improvements are welcome. Use the issue tracker to report bugs or suggest features. For bugs, include your operating system, relevant setup details, and steps to reproduce. For features, explain the proposed behavior and keep the scope focused.

Development setup

Fork inspire-schemas, then clone your fork. Install Python 3.11 or newer and Poetry, and run:

git clone git@github.com:your_name_here/inspire-schemas.git
cd inspire-schemas
poetry install --with test,docs
poetry run python -m scripts.generate_schemas
git checkout -b name-of-your-bugfix-or-feature

The generate_schemas script resolves the .yml schema sources under inspire_schemas/records into the .json files the library loads at runtime; it must be re-run after pulling changes to any schema.

Run the test suite:

poetry run pytest

The test run reports coverage, including missing lines. Code style is checked separately by pre-commit in CI.

Pull requests

  • Include tests and avoid decreasing test coverage.
  • Update documentation and add docstrings for new functionality.
  • Ensure GitHub Actions passes on all supported Python versions, starting with Python 3.11.

Commit with a sign-off and a descriptive message, push your branch, and open a pull request on GitHub:

git add .
git commit -s -m "component: describe your change"
git push origin name-of-your-bugfix-or-feature

When applicable, include Sem-Ver: new feature or Sem-Ver: breaks api in the commit message body.

Metadata

Release files for inspire-schemas 61.6.40

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

Source distribution (sdist)

Source distribution for inspire-schemas 61.6.40
File Size Uploaded Provenance Actions
inspire_schemas-61.6.40.tar.gz 178.1 kB Without provenance Details for inspire_schemas-61.6.40.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inspire-schemas 61.6.40
File Interpreter ABI Platform Actions
inspire_schemas-61.6.40-py3-none-any.whl Python 3 none any Details for inspire_schemas-61.6.40-py3-none-any.whl

Total release size: 427.5 kB

Release files / inspire_schemas-61.6.40.tar.gz

Download URL inspire_schemas-61.6.40.tar.gz
Size 178.1 kB
Tags Source
SHA-256 checksum
How to use checksums
466ae8f39fb9129d1520da41c295d06ee8f3a48af4f7b1620a5220f418a1774c
BLAKE2b-256 checksum
How to use checksums
b33798501186286898680c2c92484126f91b8ccc87598775082f34511be5d944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / inspire_schemas-61.6.40-py3-none-any.whl

Download URL inspire_schemas-61.6.40-py3-none-any.whl
Size 249.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3df987e28fc2793fb42cfbcb96fe8ce37f2db24fc2b34f39bc2579022f91069c
BLAKE2b-256 checksum
How to use checksums
7593b92d609d79de335795b0bed9522bccc698ac981a58606e229aef1b3ed0b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for inspire-schemas 61.6.40

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.

Release history Release notifications | RSS feed

This release

61.6.40 This release

2 release files No provenance

3.0.0

2.0.0

0.0.0

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