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.15.2.tar.gz
(181.5 kB
view hashes)
Built Distribution
Close
Hashes for pythorhead-0.15.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de605f1e9d482c793714766eebb5a33e386650bf6e73155cc9b149f1bb15c0e |
|
MD5 | 37108456e372cd69fea5b352953c8f8f |
|
BLAKE2b-256 | 4bf78fde8b1cb20a66717ce4abc992dc7a14b9d2c98c148363730f8a34e068d2 |