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.8.1.tar.gz
(168.2 kB
view hashes)
Built Distribution
pythorhead-0.8.1-py3-none-any.whl
(36.8 kB
view hashes)
Close
Hashes for pythorhead-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b3fc70bb1d485d9c1c6e64ec185062a5c6f9545c7aeb3dd165124ea6adbca8b |
|
MD5 | 7114b75e2943abd02e4be176e97a8049 |
|
BLAKE2b-256 | 1a7cd99011162bce20a3fa70185069a09a3563b8c26d0eef821b20f0fb4a8da3 |