A python library for interacting with Lemmy API
Project description
Pythörhead
A python library for interacting with Lemmy
Examples
See working examples in examples/
Sample Post Usage
from pythorhead import Lemmy
lemmy = Lemmy("https://lemmy.dbzer0.com")
lemmy.log_in("username", "password")
community_id = lemmy.discover_community("botart")
lemmy.post.create(community_id, "Hello Lemmy World")
Sample Comment Usage
from pythorhead import Lemmy
lemmy = Lemmy("https://lemmy.dbzer0.com")
lemmy.log_in("username", "password")
# getting the first post id
post_id = lemmy.post.list()[0]["post"]["id"]
# leave a comment
lemmy.comment.create(post_id, "Hello Lemmy World")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pythorhead-0.7.2.tar.gz
(167.3 kB
view hashes)
Built Distribution
pythorhead-0.7.2-py3-none-any.whl
(35.8 kB
view hashes)
Close
Hashes for pythorhead-0.7.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25fb43ec8e9bfa7e1844c3c1fda5514e99c422cf6ab2330417f71b10164bc92a |
|
MD5 | c748f5f67618a4ec5a7d130df3076c02 |
|
BLAKE2b-256 | ff383ad3bb982e8d4d8a0ca8ecfbac1e1d08ff89831e106e0228d03caecb735d |