GermaParlPy
The GermaParlPy Python package provides functionality to deserialize, serialize, manage, and query the GermaParlTEI1 corpus and derived corpora.
The GermaParlTEI corpus comprises the plenary protocols of the German Bundestag (parliament), encoded in XML according to the TEI standard. The current version covers the first 19 legislative periods, encompassing transcribed speeches from the Bundestag's constituent session on 7 September 1949 to the final sitting of the Angela Merkel era in 2021. This makes it a valuable resource for research in various scientific disciplines.
For detailed information on the library, visit the official website.
Use Cases
Potential use cases range from the examination of research questions in political science, history or linguistics to the compilation of training data sets for AI.
In addition, this library makes it possible to access the GermaParl corpus in Python and apply powerful NLP libraries such as spacy or gensim to it. Previously, the corpus could only be accessed using the PolMineR package in the R programming language.
Installation
GermaParlPy is available on PyPi:
pip install germaparlpy
API Reference
Click here for the full API Reference.
XML Structure
Click here to learn more about the XML Structure of the underlying corpus GermaParlTEI1.
Tutorials
I have prepared three example scripts that showcase the utilisation and potential use cases of GermaParlPy. You can find the scripts in the /example directory or here.
Contributing
Contributions and feedback are welcome! Feel free to write an issue or open a pull request.
License
The code is licensed under the MIT License.
The GermaParl corpus, which is not part of this repository, is licensed under a CLARIN PUB+BY+NC+SA license.
Credits
Developed by Marlon-Benedikt George.
The underlying data set, the GermaParl corpus, was compiled and released by Blätte & Leonhardt (2024)1. See also their R-Library PolMineR in the context of the PolMine-Project, which served as an inspiration for this library.
Metadata
Release files for germaparlpy 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| germaparlpy-1.1.0.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| germaparlpy-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / germaparlpy-1.1.0.tar.gz
| Download URL | germaparlpy-1.1.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ff92a07781938b6451d6d44e81a4a1bd1799952255e9752d2e3b22489298e35
|
|
BLAKE2b-256 checksum How to use checksums |
80da722a3953c02ecdcd8c3595ed636ff7037c5c224b336037b7314b26dfb4ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 21, 2026.
Transparency logRelease files / germaparlpy-1.1.0-py3-none-any.whl
| Download URL | germaparlpy-1.1.0-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
609f695eb1c282fbea1923747da3d57c5c616cd35aaf3b4766de6b37d7993c2a
|
|
BLAKE2b-256 checksum How to use checksums |
fde4a19271ad0e01c239f470d162eca8fce75d6b28f90fa239badf2b4a969c76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 21, 2026.
Transparency log