Skip to main content

clickpy-client

Client for clickpy.clickhouse.com database.

PyPI PyPI - Python Version

Coverage Quality Gate Status

Downloads GitLab stars GitLab last commit

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

Metadata

Release files for clickpy-client 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clickpy-client 0.1.7
File Size Uploaded
clickpy_client-0.1.7.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clickpy-client 0.1.7
File Interpreter ABI Platform
clickpy_client-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 23.4 kB

Release files / clickpy_client-0.1.7.tar.gz

Download URL clickpy_client-0.1.7.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8edd6c3bb4c94b9b389f645ab707305b65360296812cc740e31b1a18182a2955
BLAKE2b-256 checksum
How to use checksums
e7ab00a85cc3dccc7b34e83beaa2b6dc0e938c97f938f0d562454c47dbbc22f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

Release files / clickpy_client-0.1.7-py3-none-any.whl

Download URL clickpy_client-0.1.7-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eec472a88751913bac6daab3ccf4bc171e6831a59c26562408c1cce3c390d276
BLAKE2b-256 checksum
How to use checksums
f9bee8f8aba08e371d95d264af47ad09cff633d90cf03e58aa90e7e8090e7ba1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.26

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page