A python library for interacting with Lemmy API
Project description
Pythörhead
A python library for interacting with Lemmy
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.5.0.tar.gz
(166.4 kB
view hashes)
Built Distribution
pythorhead-0.5.0-py3-none-any.whl
(34.7 kB
view hashes)
Close
Hashes for pythorhead-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3886fb8ce288563a8d76965f65136ad11c233fd72f9ef204dc000223c844a8dc |
|
MD5 | 9feba5b2aa2cee088dccc8bd8153bd61 |
|
BLAKE2b-256 | 633ff4b9fdc195ac10f8d29563dabbc4411da264e8752ffe624b247906b80831 |