Skip to main content

A Python library for programmatic access to EU official bulletins

Project description

bulletin-fetcher

Tests CodeQL Quality Gate Status Codecov status PyPI version Documentation

Description

Bulletin Fetcher Logo

bulletin-fetcher is a Python library to query and fetch official bulletins. It makes easier to work with the Official Journal Data in python, providing a high-level API and data models. Current support:

  • Official Journal of the European Union (DOUE) via EUR-Lex / Cellar SPARQL endpoint.

Key Features

  • Query official acts from Legal Institutions.
  • Works with Python objects instead of raw JSON and gets away from Web Services.
  • Easier for data manipulation and integration in notebooks through Python models.
  • Keep a clean architecture with a public API layer and a data connector layer.

Installation

Install from PyPI:

pip install bulletin-fetcher

Usage

Quick Example

Fetch acts for a publication date:

from bulletin.doue.api.client import DoueBulletinClient

client = DoueBulletinClient()
acts = client.get_acts(date="2025-03-31")

print(f"Total acts: {len(acts)}")
if acts:
 first = acts[0]
 print(first.celex_uri)
 print(first.title)

Standalone Script

The repository includes a runnable script:

python scripts/run_doue.py

Contributing

Contributions are welcome! Please follow the standard steps:

  1. Fork the project.
  2. Create a branch for your feature (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or suggestions, feel free to reach out to the author:


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bulletin_fetcher-0.1.1.tar.gz (84.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bulletin_fetcher-0.1.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file bulletin_fetcher-0.1.1.tar.gz.

File metadata

  • Download URL: bulletin_fetcher-0.1.1.tar.gz
  • Upload date:
  • Size: 84.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bulletin_fetcher-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d8887a49f518992aec5037152e4f2097df37c6d37ed9eae4aec5266d8694034a
MD5 df35240e75ca0c759016a9d60f3a6f3d
BLAKE2b-256 7e211f18bc0a569bff7f12b8abd3ed98f42908e7ec9bfd1bfe145aba3c5a26fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for bulletin_fetcher-0.1.1.tar.gz:

Publisher: publish.yml on diegoglezsu/bulletin-fetcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bulletin_fetcher-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for bulletin_fetcher-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f7f0c0e0eb07e35eedffbe6ea1343e1db289c232e9b9c01ef87a7490219ec29
MD5 07c8b1a15b93ad71b60f349291f1a3fa
BLAKE2b-256 ae563776c5a678980410037af8e67869b22bbbdca82229f8c1619ecfc85c3665

See more details on using hashes here.

Provenance

The following attestation bundles were made for bulletin_fetcher-0.1.1-py3-none-any.whl:

Publisher: publish.yml on diegoglezsu/bulletin-fetcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page