Skip to main content

Client for clickpy.clickhouse.com database

Project description

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

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

clickpy_client-0.1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clickpy_client-0.1.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file clickpy_client-0.1.2.tar.gz.

File metadata

  • Download URL: clickpy_client-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.4

File hashes

Hashes for clickpy_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 469f4d3dcf466789c9356845eb2c75a17856020998ac53bac7877c5aabc08611
MD5 b8a215ab42b5b9e93d3c1e1a6b3e67c2
BLAKE2b-256 92c8ab9bbdcf6795de8edf6344a2953ce45ce302e7dd493b44b7c5ad17861595

See more details on using hashes here.

File details

Details for the file clickpy_client-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for clickpy_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef5b52c776b9066c96fe465e457b3c0007c8b6f92fc599911fd53f2fbc0e7cf8
MD5 70c110edcf0b25f08bc7c68cfd960cfa
BLAKE2b-256 049052b4f41c00487e64b3792b3a830704237f4d4df471289928c0b10acf0840

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page