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.0.tar.gz
(179.9 kB
view hashes)
Built Distribution
Close
Hashes for pythorhead-0.12.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 051f2dc67500d1c097ebb0b8aa9fbaa70e1155eb18080fb1c9e7dd4bf0bb0d30 |
|
MD5 | 3b849caf66ddb40d35a68b1b49188604 |
|
BLAKE2b-256 | 6528539169506e2504169c8a50715ba6b353271ec1759196a824b585957cc4e8 |