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.2.tar.gz
(168.2 kB
view hashes)
Built Distribution
pythorhead-0.8.2-py3-none-any.whl
(36.8 kB
view hashes)
Close
Hashes for pythorhead-0.8.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f85220f7ceb2ea0f8290b82ee5998b9ef3e8e609a471f59bb1528037a8b5505 |
|
MD5 | a9d1882e24e4705aeb21e5afec8100e0 |
|
BLAKE2b-256 | 85db07543bd029b3e1c77ac60a0993873c66549bef4e9c9ce38e6df668826570 |