# Coomer
This package is Api client for coomer/kemono.
## Installing
```bash
pip install coomer
```
## Installing async version
```bash
pip install coomer[aiohttp]
```
## Getting started
### Client
To get posts from the creator:
```python
from coomer import Creator
creator = Creator(name="test")
posts = creator.get_posts()
for p in posts:
print(f"{p.id}\tfiles:{len(p.files)}\t{p.title}")
```
### Changing domain
```python
parser = Parser(domain='kemono.su')
creator = Creator(name="test", parser=parser)
```
### Async Client
To get posts from the creator asynchronously:
```python
import asyncio
from coomer.asyncio import AsyncCreator
async def test():
creator = Creator(name="test")
posts = creator.get_posts()
async for p in posts:
print(f"{p.id}\tfiles:{len(p.files)}\t{p.title}")
asyncio.run(test())
```
Raw data
{
"_id": null,
"home_page": "https://github.com/sero01000/coomer",
"name": "coomer",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "coomer, kemono, api, asyncio",
"author": "sero01000",
"author_email": "author@example.com",
"download_url": "https://files.pythonhosted.org/packages/65/71/71ac30d5b8efecb174c17afa77cd5a71c4638da7359f44501eb37bd12606/coomer-0.1.1.tar.gz",
"platform": null,
"description": "# Coomer\n\nThis package is Api client for coomer/kemono.\n\n## Installing\n\n```bash\npip install coomer\n```\n\n## Installing async version\n\n```bash\npip install coomer[aiohttp]\n```\n\n## Getting started\n\n### Client\n\nTo get posts from the creator:\n\n```python\nfrom coomer import Creator\n\ncreator = Creator(name=\"test\")\nposts = creator.get_posts()\nfor p in posts:\n print(f\"{p.id}\\tfiles:{len(p.files)}\\t{p.title}\")\n```\n\n### Changing domain\n\n```python\nparser = Parser(domain='kemono.su')\ncreator = Creator(name=\"test\", parser=parser)\n```\n\n\n### Async Client\n\nTo get posts from the creator asynchronously:\n\n```python\nimport asyncio\nfrom coomer.asyncio import AsyncCreator\n\nasync def test():\n creator = Creator(name=\"test\")\n posts = creator.get_posts()\n async for p in posts:\n print(f\"{p.id}\\tfiles:{len(p.files)}\\t{p.title}\")\n\nasyncio.run(test())\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Coomer/Kemono Api client",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/sero01000/coomer"
},
"split_keywords": [
"coomer",
" kemono",
" api",
" asyncio"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6c0983d5191cbf9de62bbccdb491f37f38cfe749e07256b07edb34000890595a",
"md5": "e24f997c6f65b1554f4f0c5c053bd18a",
"sha256": "696a01800dae15faea1a2c1f6678f1a1691b5eda59cdca75aa409990669a9973"
},
"downloads": -1,
"filename": "coomer-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e24f997c6f65b1554f4f0c5c053bd18a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 6256,
"upload_time": "2025-01-24T22:40:10",
"upload_time_iso_8601": "2025-01-24T22:40:10.940278Z",
"url": "https://files.pythonhosted.org/packages/6c/09/83d5191cbf9de62bbccdb491f37f38cfe749e07256b07edb34000890595a/coomer-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "657171ac30d5b8efecb174c17afa77cd5a71c4638da7359f44501eb37bd12606",
"md5": "87ea71a518700f136f2f451efc117d53",
"sha256": "b7b0f6d8bfccc04f8c487bd073b6612d5e481efcc08df1bc36a0a5eb7aad031b"
},
"downloads": -1,
"filename": "coomer-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "87ea71a518700f136f2f451efc117d53",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 4615,
"upload_time": "2025-01-24T22:40:14",
"upload_time_iso_8601": "2025-01-24T22:40:14.005037Z",
"url": "https://files.pythonhosted.org/packages/65/71/71ac30d5b8efecb174c17afa77cd5a71c4638da7359f44501eb37bd12606/coomer-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-24 22:40:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "sero01000",
"github_project": "coomer",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "coomer"
}