No project description provided
Project description
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
- Added almost all functionalities
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sejmapi-0.1.0.tar.gz.
File metadata
- Download URL: sejmapi-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48548d61fb386b4cfa425e722b23177bf1ba9c6ba3bdcc4a8cc2000bd8f17bf7
|
|
| MD5 |
061bced96fa618698ffd06d8de8b387a
|
|
| BLAKE2b-256 |
b6f0221d1b36e3f42d011704d2b9d0f89039cd95e531887c6e04f87c76b8d21e
|
File details
Details for the file sejmapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sejmapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ec4a5fffc0464d14ba2a8c5a1786e1f69a14034cdd9a2b436db70026df4d021
|
|
| MD5 |
c3c3c0b7ae110c6b161f637c204d3c74
|
|
| BLAKE2b-256 |
eb356677e9e7c1b828fc7e37ff3f77bfc026e95db54957900ad96cddd072b49f
|