pylemmy
Table of Contents
Installation
pip install pylemmy
Usage
Simple example of running a Python function on new posts, as they are created.
from pylemmy import Lemmy
def process_post(post):
...
lemmy = Lemmy(
lemmy_url="http://127.0.0.1:8536",
username="lemmy",
password="lemmylemmy",
user_agent="custom user agent (by u/USERNAME)",
)
community = lemmy.get_community("test")
for post in community.stream.get_posts():
process_post(post)
License
pylemmy is distributed under the terms of the
MIT license.
Metadata
Release files for pylemmy 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pylemmy-0.0.8.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylemmy-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.6 kB
Release files / pylemmy-0.0.8.tar.gz
| Download URL | pylemmy-0.0.8.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45c2013d7f16fba05131b94712bf2d544bc9a26761bfea465cefe7c4c420bf1c
|
|
BLAKE2b-256 checksum How to use checksums |
6b17547dd49a203ba87b7d17e2657c5001a9d7b55b498b5ab3203be8d3d36ebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / pylemmy-0.0.8-py3-none-any.whl
| Download URL | pylemmy-0.0.8-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7743eb8ee72300cac4f623b8babc8df85ae984df5092d06dc99ea513152fd29f
|
|
BLAKE2b-256 checksum How to use checksums |
7a208eb824760f943c3055113a8ced4118bce77cdac7e4d1d9f289bbf84bdb10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|