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.10.2.tar.gz
(174.0 kB
view hashes)
Built Distribution
Close
Hashes for pythorhead-0.10.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4e5057c1352c80757a92754fd105805c5a65c9544efb45bd3c812074165f2b5 |
|
MD5 | 6d24876da20aa6b90e7b4311f51cd063 |
|
BLAKE2b-256 | 693a8e70afb61b27fbb77da84f2cab8fd4e05814bb8c3de8e7aa2df473af22fe |