A python library for interacting with Lemmy API
Project description
Pythörhead
A python library for interacting with Lemmy
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.3.0.tar.gz
(164.6 kB
view hashes)
Built Distribution
pythorhead-0.3.0-py3-none-any.whl
(32.6 kB
view hashes)
Close
Hashes for pythorhead-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d75e8638b2ffeb76ed2cb742ee1b7465c84e2c286e7393e123592eb3f981585 |
|
MD5 | f3aabd334b3a7b82ef3c9a6893c37ece |
|
BLAKE2b-256 | d3051e315ec0f0dd5b70d93f098bea773a0345dc156bef75e1635c9bbfa50d1d |