Implementation of the pr0gramm api in python
Project description
Python api for pr0gramm.com
Installation
pip
pip3 install pypr0
Manually
For Debian and Ubuntu users:
apt install python python3-pip
pip3 install requests
Then clone the repository
git clone https://github.com/itssme/pypr0.git
For running the tests go into the cloned folder
cd pypr0
Run the tests with following command
python3 tests.py
For running tests with login
USERNAME="itssme" PASSWORD="1234" LOGIN="true" python3 tests.py
Examples
For examples see this repository: https://github.com/itssme/pypr0-examples
Release Notes
0.2.8
current version
- added new
polflag tocalculate_flagfunction (ref: https://github.com/itssme/pypr0/pull/10); thanks to @iFuzzle - fixed sql_manager and made it more resilient to API changes (new values will now be ignored and don't break the sql manager)
0.2.7
- more improvements and refactoring (ref: https://github.com/itssme/pypr0/pull/8); thanks to @chill0r
0.2.6
- improvement of the login functions (ref: https://github.com/itssme/pypr0/pull/7); thanks to @chill0r
- added more documentation to api classes
0.2.5
- a lot of refactoring and cleaning up in all api functions
- passing 'newer' to
get_items_by_tagis now deprecated, instead pass 'older' as a boolean and pass an 'item' as id (just like for any other api function) - more extensive tests
- passing multiple tags to items get now works again (ref: https://github.com/itssme/pypr0/pull/6); thanks to @5n0wstorm
0.2
- added
get_collection_itemsandget_collection_items_iteratorwhich gets the content of a collection (replacing favorites)
0.1.7
- updated to python3
thanks to @FritzJo
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 pypr0-0.2.8.tar.gz.
File metadata
- Download URL: pypr0-0.2.8.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a89a9c244055d6e8391c2252095cb01fe0bf82449838f2c8a0be17b6356a9203
|
|
| MD5 |
d13b8200ad6b8be9db0275ced1940302
|
|
| BLAKE2b-256 |
e48bef1ba09997415a22c2e304850bf48d183bf60c844d34a73e49b1c889fc98
|
File details
Details for the file pypr0-0.2.8-py3-none-any.whl.
File metadata
- Download URL: pypr0-0.2.8-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
141bf7f475606d2071fb972213215354abd166d5dbea706f9f3f042738e428ba
|
|
| MD5 |
f5543c6aaa7dfcb1e8a712261c438eea
|
|
| BLAKE2b-256 |
9a8c5aadd94938480c5d7bef8712bc89678cb5a359dc359e702f7cdb2979130e
|