Skip to main content

Core library for collecting parliamentary data

Project description

PyPI PyPI - Python Version License: GPL v3 Pydantic v2 Ruff Checked with mypy Poetry pytest

Scraper-core

Core library for collectors/scrapers of PaZuFa, providing shared functionality and base classes.

Status: Work in Progress (WIP). For a detailed status overview, see the status page in the wiki (German).

The detailed documentation can be found in the wiki (German).

Requests

If you have a request for the Scraper-core, the best way to voice it is to write a Codeberg issue. Please add the label external-request to it.

If it is a bug you can alternatively use the label Bug.

For requests and questions, you can, of course, contact us on Mattermost.

Structure

The library consists of three parts:

  1. CoreLib: shared classes and utilities used by all scrapers regardless of implementation approach. This includes Pydantic validation models, API client helpers, common data transformation functions, standardised phrases and tag mappings (e.g. normalising committee names, document types, and Schlagworte across parliaments), and reusable components for tasks like LLM enrichment.
  2. Scrapy-based: Opinionated implementation of Corelib in Scrapy based classes.
  3. Collector-based: Our project's scaffolding for scrapers, implemented in an opinionated manner using Corelib.

Requirements

  • Python 3.12+
  • Poetry 2.x

For the full dependency list, see pyproject.toml.

Setup

See SETUP.md for the full setup guide, which is versioned alongside the code.

Contribution

See CONTRIBUTING.md for development setup, git workflow, code generation, documentation and project context.

License

GPL-3.0

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

pazufa_corelib-0.1.2.tar.gz (105.4 kB view details)

Uploaded Source

Built Distribution

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

pazufa_corelib-0.1.2-py3-none-any.whl (166.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pazufa_corelib-0.1.2.tar.gz
  • Upload date:
  • Size: 105.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pazufa_corelib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 52f9ac74e06d1bb89fb429a09d49c5f0f0a98ed762ee29223de24a7a49852c68
MD5 46844b298ce5a4865fe095c128fbe39e
BLAKE2b-256 b9b40b5a92c14b8954d48fc07f6cb055a809dfd7de31b6a6c673215babe15bae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pazufa_corelib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 166.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pazufa_corelib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a4b89656ecdb1d73b98ac98dda98be060c0b8253d6d8ab2c30c961da70dd977
MD5 5d2dc6b9df56f1f55ac5a28eab04a4c9
BLAKE2b-256 d7581952fc3bd9f7e3bdaee7a0cbe91911dd03777d827ea435024043467f160f

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