Name | Lemmy.py JSON |
Version |
0.0.2
JSON |
| download |
home_page | |
Summary | Python wrapper for the Lemmy API |
upload_time | 2023-06-20 21:29:37 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.10 |
license | BSD-3-Clause |
keywords |
wrapper
lemmy
api
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Lemmy.py
Python wrapper for the Lemmy ( https://github.com/LemmyNet/lemmy ) API. Based the official [Lemmy TS library](https://github.com/LemmyNet/lemmy-js-client).
```py
from lemmy import Lemmy
# Login to your account
lemmy = Lemmy("https://lemmy.ml")
lemmy.log_in("username_or_email", "password")
# Get a community ID
community_id = lemmy.discover_community("community_name")
# Get all posts from a community by ID
community_posts = lemmy.post.list(community_id=community_id)
# Get the modlog of your server
modlog = lemmy.modlog.get()
# Post a new publication on a community
lemmy.post.create(community_id=community_id, name="First Post!", body="This is the first community post.")
```
Raw data
{
"_id": null,
"home_page": "",
"name": "Lemmy.py",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "",
"keywords": "wrapper,lemmy,api",
"author": "",
"author_email": "retiolus <retiolus@tuta.io>",
"download_url": "https://files.pythonhosted.org/packages/51/e8/67a6422c07f685048e469fe2295b97fc999bfb072f1c1f4a0aa064d07966/Lemmy.py-0.0.2.tar.gz",
"platform": null,
"description": "# Lemmy.py\n\nPython wrapper for the Lemmy ( https://github.com/LemmyNet/lemmy ) API. Based the official [Lemmy TS library](https://github.com/LemmyNet/lemmy-js-client).\n\n```py\nfrom lemmy import Lemmy\n\n# Login to your account\nlemmy = Lemmy(\"https://lemmy.ml\")\nlemmy.log_in(\"username_or_email\", \"password\")\n\n# Get a community ID\ncommunity_id = lemmy.discover_community(\"community_name\")\n\n# Get all posts from a community by ID\ncommunity_posts = lemmy.post.list(community_id=community_id)\n\n# Get the modlog of your server\nmodlog = lemmy.modlog.get()\n\n# Post a new publication on a community\nlemmy.post.create(community_id=community_id, name=\"First Post!\", body=\"This is the first community post.\")\n```\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Python wrapper for the Lemmy API",
"version": "0.0.2",
"project_urls": null,
"split_keywords": [
"wrapper",
"lemmy",
"api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b6d05065ede0e9bbd005897f3a821e08dea9c7300a1ec1d4cd06875b839f7d13",
"md5": "e4bab95f12669ff6d98c5052134484f4",
"sha256": "d781861c2212d7cd1378ad59979ea898b4ed313a5626b890e78f28aefda997d6"
},
"downloads": -1,
"filename": "Lemmy.py-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e4bab95f12669ff6d98c5052134484f4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 7581,
"upload_time": "2023-06-20T21:29:35",
"upload_time_iso_8601": "2023-06-20T21:29:35.351613Z",
"url": "https://files.pythonhosted.org/packages/b6/d0/5065ede0e9bbd005897f3a821e08dea9c7300a1ec1d4cd06875b839f7d13/Lemmy.py-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "51e867a6422c07f685048e469fe2295b97fc999bfb072f1c1f4a0aa064d07966",
"md5": "66ee0cb7d547b6bb392ef5cbcef8795f",
"sha256": "f66989d6eda18b1f7a1cd9e3065b67b278b8860e1fef2a619e498031e3b50605"
},
"downloads": -1,
"filename": "Lemmy.py-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "66ee0cb7d547b6bb392ef5cbcef8795f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 3797,
"upload_time": "2023-06-20T21:29:37",
"upload_time_iso_8601": "2023-06-20T21:29:37.400896Z",
"url": "https://files.pythonhosted.org/packages/51/e8/67a6422c07f685048e469fe2295b97fc999bfb072f1c1f4a0aa064d07966/Lemmy.py-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-20 21:29:37",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "lemmy.py"
}