Skip to main content

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 pol flag to calculate_flag function (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

0.2.6

0.2.5

  • a lot of refactoring and cleaning up in all api functions
  • passing 'newer' to get_items_by_tag is 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_items and get_collection_items_iterator which gets the content of a collection (replacing favorites)

0.1.7

  • updated to python3

thanks to @FritzJo

Metadata

Release files for pypr0 0.2.8

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

Source distribution (sdist)

Source distribution for pypr0 0.2.8
File Size Uploaded
pypr0-0.2.8.tar.gz 25.3 kB Details

Built distribution (wheel)

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

Total release size: 50.8 kB

Release files / pypr0-0.2.8.tar.gz

Download URL pypr0-0.2.8.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a89a9c244055d6e8391c2252095cb01fe0bf82449838f2c8a0be17b6356a9203
BLAKE2b-256 checksum
How to use checksums
e48bef1ba09997415a22c2e304850bf48d183bf60c844d34a73e49b1c889fc98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pypr0-0.2.8-py3-none-any.whl

Download URL pypr0-0.2.8-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
141bf7f475606d2071fb972213215354abd166d5dbea706f9f3f042738e428ba
BLAKE2b-256 checksum
How to use checksums
9a8c5aadd94938480c5d7bef8712bc89678cb5a359dc359e702f7cdb2979130e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2

2 release files

0.1.81

1 release file

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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