Skip to main content

Python wrapper for the Lemmy API

Project description

Lemmy.py

Python wrapper for the Lemmy ( https://github.com/LemmyNet/lemmy ) API. Based the official Lemmy TS library.

from lemmy import Lemmy

# Login to your account
lemmy = Lemmy("https://lemmy.ml")
lemmy.log_in("username_or_email", "password")

# Get a community ID
community_id = lemmy.discover_community("community_name")

# Get all posts from a community by ID
community_posts = lemmy.post.list(community_id=community_id)

# Get the modlog of your server
modlog = lemmy.modlog.get()

# Post a new publication on a community
lemmy.post.create(community_id=community_id, name="First Post!", body="This is the first community post.")

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

Lemmy.py-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

Lemmy.py-0.0.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file Lemmy.py-0.0.2.tar.gz.

File metadata

  • Download URL: Lemmy.py-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for Lemmy.py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f66989d6eda18b1f7a1cd9e3065b67b278b8860e1fef2a619e498031e3b50605
MD5 66ee0cb7d547b6bb392ef5cbcef8795f
BLAKE2b-256 51e867a6422c07f685048e469fe2295b97fc999bfb072f1c1f4a0aa064d07966

See more details on using hashes here.

File details

Details for the file Lemmy.py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Lemmy.py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for Lemmy.py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d781861c2212d7cd1378ad59979ea898b4ed313a5626b890e78f28aefda997d6
MD5 e4bab95f12669ff6d98c5052134484f4
BLAKE2b-256 b6d05065ede0e9bbd005897f3a821e08dea9c7300a1ec1d4cd06875b839f7d13

See more details on using hashes here.

Supported by

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