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.12.3.tar.gz
(180.3 kB
view hashes)
Built Distribution
Close
Hashes for pythorhead-0.12.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f26e5fcc12ee596161d6e8e85d7d8e10ef3e99dd4018239b56dc612e6552dda |
|
MD5 | e59bc19ae528477d490da07f4f2da436 |
|
BLAKE2b-256 | aa0cef60a0284fa2c99f8a00ac1cde7bde4c21c87d326a0cf1213b5e8100fa48 |