Skip to main content

An asynchronous Python client for the Clicky Analytics API.

Project description

pyclicky

Async Python client for the Clicky Analytics API.

Installation

pip install pyclicky

Example

import asyncio
from pyclicky import ClickyClient

async def main():
    async with ClickyClient(
        site_id=12345,
        sitekey="your_sitekey",
    ) as client:

        visitors = await client.visitors(date="today")
        print(visitors)

asyncio.run(main())

Generic Queries

await client.query(
    "pages",
    date="last-30-days",
    limit=25,
)

Supports every Clicky report type via query().

Development environment

python3 -m venv .venv
source .venv/bin/activate

# Install dependencies
python -m pip install --upgrade pip
python -m pip install -e .

# Run pre-commit
python -m pip install pre-commit
pre-commit install
pre-commit run --all-files

# Run tests
python -m pip install -e ".[test]"
pytest

# Build package
python -m pip install build
python -m build

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

pyclicky-0.1.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

pyclicky-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file pyclicky-0.1.1.tar.gz.

File metadata

  • Download URL: pyclicky-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pyclicky-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3efcf04e57f3ddd04f7201121f83075f7a16d5160cca4f422ba7b57613958bf3
MD5 abec3f4d7e66a6d6ad0ac8da7d12b8f2
BLAKE2b-256 e3a7dd9f6c50d5ff6a19b3fc366ffb2354f4f73ef2fcca23a90f580d7ac759a8

See more details on using hashes here.

File details

Details for the file pyclicky-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyclicky-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pyclicky-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5de52e8e9515fedb3ba36db38cd3677550dc73bcf321a58ac1759e285b273e7b
MD5 64fbb681e7057e2d0416f21567e5bf45
BLAKE2b-256 16bdf5a52c1428f8a0e6d6fa0b64600fb76201b65f9badedbf212b27b6e11096

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