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.3.tar.gz
(181.6 kB
view hashes)
Built Distribution
Close
Hashes for pythorhead-0.15.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e255fb7acb606d9862d4f1cc045c0db8efb991f79cefe3024b5a1862809c1834 |
|
MD5 | 066a4d2c56d79fd2888d2b046f68074a |
|
BLAKE2b-256 | 476cec75aba88a6ee1db5755429d3322b3512c24473a23b11ed6d8ad29a479b7 |