Skip to main content

A Python HTTP client for accessing and analyzing European Parliament data

Project description

europarl

Python client for accessing and analyzing European Parliament data

Build

Motivations

Building a Python wrapper to access the European Parliament's Europarl API is a powerful step toward democratizing access to legislative data and fostering transparency in European governance. By simplifying and streamlining the process of querying parliamentary information, such as debates, documents, voting records, and member data, this wrapper can empower researchers, journalists, civic tech developers, and engaged citizens alike.

Europarl Swagger

https://data.europarl.europa.eu/en/developer-corner/opendata-api

Installation

pip install git+https://github.com/robincvlr/europarl.git

Example

from europarl.client import EuroparlClient

async with EuroparlClient() as client:
    status, data = await client.get(
        query="meps/show-current",
        limit=10,
        offset=0,
        country_of_representation="FR",
        format="application/ld+json",
    )

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

europarl-0.1.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

europarl-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file europarl-0.1.2.tar.gz.

File metadata

  • Download URL: europarl-0.1.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for europarl-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e75fcb83d3a25401870510527e777612c63041672a81d21fbbbe0de778c64de2
MD5 4e5854645b97265cc554b07f812f6819
BLAKE2b-256 71bf99ff9824c21425d08701e45898dd14240a51e516380f7e9d345d6c3231cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for europarl-0.1.2.tar.gz:

Publisher: main.yml on robincvlr/europarl

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

File details

Details for the file europarl-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: europarl-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for europarl-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d928b060253835140447f8c559f2ada050c8dfc544c077cf0c4ec2953abbfcb
MD5 1ca5be2269f45b8cae3829cb17b608ba
BLAKE2b-256 f66da3c017e2fd1bfc0432b58564e9aeaea5b91dbc685caed9327790782bbba8

See more details on using hashes here.

Provenance

The following attestation bundles were made for europarl-0.1.2-py3-none-any.whl:

Publisher: main.yml on robincvlr/europarl

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