Skip to main content

A Python library which can be used to interact with the Dutch government's publication repository.

Project description

PyPublicaties

PyPublicaties is a Python library that facilitates easy access to the 'officielepublicaties' collection through the SRU 2.0 interface provided by the Dutch government. This library simplifies the process of querying, retrieving, and managing official publications with just a few lines of code.

Features

  • Easy construction of queries for searching within the 'officielepublicaties' collection.
  • Retrieval of publications with options to limit the number of records.
  • Direct access to publication details such as identifiers and titles in a Python-friendly way.

Installation

Install PyPublicaties using pip:

pip install PyPublicaties

Quick Start

Here's a simple example to get you started with PyPublicaties:

from PyPublicaties import retrieve_publications

query_dict = {
    'w.subrubriek': 'Stemmingen'
}

publications = retrieve_publications(query_dict=query_dict, max_records=100, start_record=1)

for publication in publications:
    print(publication)

This code will search for publications under the 'Stemmingen' subcategory and print details for up to 100 of them. The function always returns a list of objects

This allows for easy interaction in an object oriented way. For example, this code will access the title of the first retrieved result:

publications[0].title

Documentation

For more detailed information on all the capabilities, documentation will be made available in a later stadium.

Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request with your changes.

Support

If you encounter any issues or have questions, please submit an issue on the GitHub issues page.

License

PyPublicaties is released under the MIT License. See the LICENSE file for more details.

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

PyPublicaties-0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

PyPublicaties-0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file PyPublicaties-0.1.tar.gz.

File metadata

  • Download URL: PyPublicaties-0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for PyPublicaties-0.1.tar.gz
Algorithm Hash digest
SHA256 88c7130694e6f60c2c3ef387f22e9fb33bbc84ceaec13e79f834cf3a8495e524
MD5 389597c06c813965490f3a6da20b0f19
BLAKE2b-256 243dda6f2f3660bc65518f354a308c81537e8bcd91d0d632c89b20b2cd1d10a7

See more details on using hashes here.

File details

Details for the file PyPublicaties-0.1-py3-none-any.whl.

File metadata

  • Download URL: PyPublicaties-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for PyPublicaties-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b757c9d53a63d447f0578544294733214fad696cd074b55765390a1e16755857
MD5 e6867f4dd0009e6a67cb7490c2ae3f6b
BLAKE2b-256 a1a71cccfd4cbfe91d7625bdc7892663e1c81d1a7231099e0b97404aebd40ecc

See more details on using hashes here.

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