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.9.0.tar.gz
(168.6 kB
view hashes)
Built Distribution
pythorhead-0.9.0-py3-none-any.whl
(37.5 kB
view hashes)
Close
Hashes for pythorhead-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 104c3f323f39c0e659de424f92cb839761a345b0d35e4ca76f21181d85459046 |
|
MD5 | a64f55782ab6bc2ea9c9d6e35c9f56f1 |
|
BLAKE2b-256 | ea8ea5c803604e34f440f82b81192a878361c102af98d8637702e6f1806cc7d8 |