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.13.0.tar.gz
(180.5 kB
view hashes)
Built Distribution
Close
Hashes for pythorhead-0.13.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f60069f6b7cc6dd4216082948bc545ac3e6f6cdfee2bdba0819090f871a555ee |
|
MD5 | cfe4e927977aa904e00d1f84a5def6c8 |
|
BLAKE2b-256 | 7d4d68892154a63a4f445de4f1492b07f83062e8cbe16d133a5dbde40a7d15bb |