Skip to main content

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


CircleCI build

CircleCI

Release Notes

0.2.6

current version

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypr0-0.2.6.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypr0-0.2.6-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file pypr0-0.2.6.tar.gz.

File metadata

  • Download URL: pypr0-0.2.6.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.8.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.63.1 CPython/3.9.2

File hashes

Hashes for pypr0-0.2.6.tar.gz
Algorithm Hash digest
SHA256 3cffc864f91ac7187fe7cc3c9a8865a146d0565737a729a93eef88e70e5f0a76
MD5 32d2fbc878402eae0f69bd7543aa89af
BLAKE2b-256 02614d77c6e4bc7f35236fe474a1908ca231a90499dd49cf5511d01e0ef0e8aa

See more details on using hashes here.

File details

Details for the file pypr0-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: pypr0-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.8.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.63.1 CPython/3.9.2

File hashes

Hashes for pypr0-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1a919d1776d76d2a5a753f9539c0c8fb98ce5e733728a9a1dbfc5e9946965f97
MD5 95191458ce2b6eea5b5fb369026c27fd
BLAKE2b-256 94269b346dbff172b6cc8e62d6430ac49f00cdaa90e0340d15d19f36f3effc2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page