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.5.tar.gz
(182.7 kB
view hashes)
Built Distribution
Close
Hashes for pythorhead-0.15.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4523ce3a90e3178befb71d65341909ad827d5729b9fae1a0698f58f6ac7b21e5 |
|
MD5 | 0c3a27d713da4838799342e0116b542a |
|
BLAKE2b-256 | d32362387a969231fc279783f612f0ca6dfede472f8bd35bf846f22a43eb5f21 |