Skip to main content

SejmAPI

Python module to work with polish goverment-run Sejm API https://api.sejm.gov.pl/

Short overview

sejm = SejmApi(term=9) #creating SejmApi class object and selecting the term(in this case 9)

View list of all MPs

sejm.get_all_MP()

Get some details on the MP

sejm.get_MP_info(leg=1) #leg is the legitimation id

Get link to the MP's photo

sejm.getPhoto(leg=1)

Get list of clubs

sejm.getClubs()

Get info about the club

sejm.getClub_info(id='PiS') #id is the name of the club

Get a link to the logo of the club

sejm.getClublogo(id='PiS')

Get the list of the committees

 sejm.getCommittees()

Get a list of the streams from Sejm

sejm.getStreams()

Get streams from today

sejm.getTodayStreams()

Get info about a term

sejm.getTermInfo()

Get all the prints of the term

sejm.getPrints()

Get the print details

sejm.getPrint_info(nr=1) #nr is the nr. of the print

Get the link to the attachment to the print

sejm.getPrint_attachment(nr=1,fileName='1.pdf')

CHANGELOG

Version 0.0.1 07/10/2023

  1. Added almost all functionalities

Metadata

Release files for sejmapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sejmapi 0.1.0
File Size Uploaded
sejmapi-0.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sejmapi 0.1.0
File Interpreter ABI Platform
sejmapi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / sejmapi-0.1.0.tar.gz

Download URL sejmapi-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
48548d61fb386b4cfa425e722b23177bf1ba9c6ba3bdcc4a8cc2000bd8f17bf7
BLAKE2b-256 checksum
How to use checksums
b6f0221d1b36e3f42d011704d2b9d0f89039cd95e531887c6e04f87c76b8d21e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/67.6.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release files / sejmapi-0.1.0-py3-none-any.whl

Download URL sejmapi-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ec4a5fffc0464d14ba2a8c5a1786e1f69a14034cdd9a2b436db70026df4d021
BLAKE2b-256 checksum
How to use checksums
eb356677e9e7c1b828fc7e37ff3f77bfc026e95db54957900ad96cddd072b49f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/67.6.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page