Client for clickpy.clickhouse.com database
Project description
clickpy-client
Client for clickpy.clickhouse.com database.
Quick start
pip install clickpy-client
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.
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:
make install-dev
After changes:
make format test
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clickpy_client-0.1.0.tar.gz.
File metadata
- Download URL: clickpy_client-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3830ee99c4a349669bda28a9ce7536c107a240da3f6b24127d5674e4a8cc8de
|
|
| MD5 |
30513174db8e155c22c3fcc785fcb716
|
|
| BLAKE2b-256 |
e746e69820d1a13b7d0e9b4782e6987934532b070b98f600a56fc7cf7e4e30c9
|
File details
Details for the file clickpy_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clickpy_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad1d03301627b91830402ee7bf8164a36ffd651ca0d678abc33d566d9c319aee
|
|
| MD5 |
beeb52d64e685cbab0353b2ad5c480ac
|
|
| BLAKE2b-256 |
2752af402fafa61e2b9967e71938fe0ddfbf5dfb3cf1e09e6dd92afb45284c45
|