Skip to main content

Python API for LemmyHttp

Project description

Plemmy: a Python package for accessing the Lemmy API

drawing

GitHub version PyPI version GitHub license

Plemmy allows you to interact with any Lemmy instance using Python and the LemmyHttp API.

WARNING: Plemmy is still in development and needs testing!

Installation

For the most up-to-date version of Plemmy, clone and install from the repository:

git clone https://github.com/tjkessler/plemmy
cd plemmy
python setup.py install

A PyPI repository is periodically updated:

pip install plemmy

Basic usage

Interact with a Lemmy instance using the LemmyHttp object:

from plemmy import LemmyHttp

# create object for Lemmy.ml
srv = LemmyHttp("https://lemmy.ml")

# log in to Lemmy.ml
srv.login("<username_or_email>", "<password>")

# make a comment
srv.create_comment("Hello from plemmy!", post_id)

# create a post
srv.create_post(community_id, "New post's title", body="Body text", url="https://a.link.to.share")

Full documentation is on its way, but in the meantime check out our source code.

Reporting issues, making contributions, etc.

Don't hesitate to report a bug or unexpected results! Want to contribute? Make a pull request. Contact @tjkessler with any questions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plemmy-0.2.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

plemmy-0.2.1-py2.py3-none-any.whl (10.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file plemmy-0.2.1.tar.gz.

File metadata

  • Download URL: plemmy-0.2.1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for plemmy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3b221400263cd4b722b0c7f60c19c87b2db5912d59e9cd46410a2b02488c63c0
MD5 6ebd3a0671f54ff5de0ebc7af4082d4a
BLAKE2b-256 6daef7726f5687ff237a0f441645294def41720a6ab785ed8b69b3f94cee4607

See more details on using hashes here.

File details

Details for the file plemmy-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: plemmy-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for plemmy-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bf296b5607a544b8b6d29a7718911ab516da362111022cca5e6ec4a1ebab9605
MD5 416ddecc0d2be96be457774f0868feef
BLAKE2b-256 1b73c045bc2499a5c74cb9bb87351f4a781924f21edaa147850c4cae5c72629a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page