Skip to main content

pylemmy

PyPI - Version PyPI - Python Version


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)

Source distribution for pylemmy 0.0.8
File Size Uploaded
pylemmy-0.0.8.tar.gz 19.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylemmy 0.0.8
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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