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.1.tar.gz
(164.8 kB
view hashes)
Built Distribution
pythorhead-0.3.1-py3-none-any.whl
(32.8 kB
view hashes)
Close
Hashes for pythorhead-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c89e50b82180e81bb7c7e0c8539c28ffe6e44f623d784788e448a82785535a19 |
|
MD5 | 03ad7f14c0ca1cbb547e0d0a16a2aa6a |
|
BLAKE2b-256 | 32fc3ee6045a6b5f8ba83531cb8258f0e28541555e5c8697567320c9b0b163bf |