Name | clickpy-client JSON |
Version |
0.1.7
JSON |
| download |
home_page | None |
Summary | Client for clickpy.clickhouse.com database |
upload_time | 2025-02-02 19:24:10 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | MIT |
keywords |
clickhouse
pypi
rocshers
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# clickpy-client
Client for [clickpy.clickhouse.com](https://clickpy.clickhouse.com) database.
[](https://pypi.org/project/clickpy-client/)
[](https://pypi.org/project/clickpy-client/)
[](https://sonarcloud.io/summary/new_code?id=rocshers_clickpy-client)
[](https://sonarcloud.io/summary/new_code?id=rocshers_clickpy-client)
[](https://clickpy.clickhouse.com/dashboard/clickpy-client)
[](https://gitlab.com/rocshers/python/clickpy-client)
[](https://gitlab.com/rocshers/python/clickpy-client)
## Quick start
```bash
pip install clickpy-client
```
```python
import asyncio
from clickpy import ClickPyClient
async def main():
clickpy = ClickPyClient()
tables = await clickpy.get_tables()
for table in tables:
print(f'Database: {table.database}; table: {table.name} rows: {table.total_rows}')
keywords = await clickpy.get_keywords_by_releases()
for keyword in keywords:
print(f'Database: {keyword.name}; releases: {keyword.releases}')
asyncio.run(main())
```
## Config
The client uses a public connection. But if you have your own DB instance with a similar structure, you can override the access parameters via environment variables.
```bash
CLICKPY_HOST='https://clickpy-clickhouse.clickhouse.com'
CLICKPY_SECURE=True
CLICKPY_USERNAME='play'
CLICKPY_PASSWORD=''
```
## Client Methods
### get_tables
Get all tables in `github` and `pypi` databases.
### get_keywords_by_releases
Get all keywords based on project description. Sorted by number of releases.
## Contribute
Issue Tracker: <https://gitlab.com/rocshers/python/clickpy-client/-/issues>
Source Code: <https://gitlab.com/rocshers/python/clickpy-client>
Before adding changes:
```bash
make install-dev
```
After changes:
```bash
make format test
```
Raw data
{
"_id": null,
"home_page": null,
"name": "clickpy-client",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "clickhouse, pypi, rocshers",
"author": null,
"author_email": "Aleksei Marusich <aleksei.marusich@rocshers.com>",
"download_url": "https://files.pythonhosted.org/packages/e7/ab/00a85cc3dccc7b34e83beaa2b6dc0e938c97f938f0d562454c47dbbc22f5/clickpy_client-0.1.7.tar.gz",
"platform": null,
"description": "# clickpy-client\n\nClient for [clickpy.clickhouse.com](https://clickpy.clickhouse.com) database.\n\n[](https://pypi.org/project/clickpy-client/)\n[](https://pypi.org/project/clickpy-client/)\n\n[](https://sonarcloud.io/summary/new_code?id=rocshers_clickpy-client)\n[](https://sonarcloud.io/summary/new_code?id=rocshers_clickpy-client)\n\n[](https://clickpy.clickhouse.com/dashboard/clickpy-client)\n[](https://gitlab.com/rocshers/python/clickpy-client)\n[](https://gitlab.com/rocshers/python/clickpy-client)\n\n## Quick start\n\n```bash\npip install clickpy-client\n```\n\n```python\nimport asyncio\n\nfrom clickpy import ClickPyClient\n\n\nasync def main():\n clickpy = ClickPyClient()\n\n tables = await clickpy.get_tables()\n for table in tables:\n print(f'Database: {table.database}; table: {table.name} rows: {table.total_rows}')\n\n keywords = await clickpy.get_keywords_by_releases()\n for keyword in keywords:\n print(f'Database: {keyword.name}; releases: {keyword.releases}')\n\n\nasyncio.run(main())\n```\n\n## Config\n\nThe client uses a public connection. But if you have your own DB instance with a similar structure, you can override the access parameters via environment variables.\n\n```bash\nCLICKPY_HOST='https://clickpy-clickhouse.clickhouse.com'\nCLICKPY_SECURE=True\nCLICKPY_USERNAME='play'\nCLICKPY_PASSWORD=''\n```\n\n## Client Methods\n\n### get_tables\n\nGet all tables in `github` and `pypi` databases.\n\n### get_keywords_by_releases\n\nGet all keywords based on project description. Sorted by number of releases.\n\n## Contribute\n\nIssue Tracker: <https://gitlab.com/rocshers/python/clickpy-client/-/issues> \nSource Code: <https://gitlab.com/rocshers/python/clickpy-client>\n\nBefore adding changes:\n\n```bash\nmake install-dev\n```\n\nAfter changes:\n\n```bash\nmake format test\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Client for clickpy.clickhouse.com database",
"version": "0.1.7",
"project_urls": null,
"split_keywords": [
"clickhouse",
" pypi",
" rocshers"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f9bee8f8aba08e371d95d264af47ad09cff633d90cf03e58aa90e7e8090e7ba1",
"md5": "abdf0e8c6f947e59332952236f245ae1",
"sha256": "eec472a88751913bac6daab3ccf4bc171e6831a59c26562408c1cce3c390d276"
},
"downloads": -1,
"filename": "clickpy_client-0.1.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "abdf0e8c6f947e59332952236f245ae1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 16301,
"upload_time": "2025-02-02T19:24:08",
"upload_time_iso_8601": "2025-02-02T19:24:08.083170Z",
"url": "https://files.pythonhosted.org/packages/f9/be/e8f8aba08e371d95d264af47ad09cff633d90cf03e58aa90e7e8090e7ba1/clickpy_client-0.1.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e7ab00a85cc3dccc7b34e83beaa2b6dc0e938c97f938f0d562454c47dbbc22f5",
"md5": "eb05d7b6759c5e9a2f6d6f2dbf186582",
"sha256": "8edd6c3bb4c94b9b389f645ab707305b65360296812cc740e31b1a18182a2955"
},
"downloads": -1,
"filename": "clickpy_client-0.1.7.tar.gz",
"has_sig": false,
"md5_digest": "eb05d7b6759c5e9a2f6d6f2dbf186582",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 7091,
"upload_time": "2025-02-02T19:24:10",
"upload_time_iso_8601": "2025-02-02T19:24:10.050030Z",
"url": "https://files.pythonhosted.org/packages/e7/ab/00a85cc3dccc7b34e83beaa2b6dc0e938c97f938f0d562454c47dbbc22f5/clickpy_client-0.1.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-02 19:24:10",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "clickpy-client"
}