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

# Run command line
python -m pyclicky --help
# To output debug logs and API responses to a file run:
python -m pyclicky -vv 2> out.txt

# 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.0.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.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyclicky-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ec87033051a4856904e28c53c99180e6a609591792fa61c0a3c391ebc389f2df
MD5 81997429b764626f04bc69b1273c444f
BLAKE2b-256 2a5ed40a50b7599754eb278c724366bb02c9c39cfbd4e8af9a8361f23cba6cac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyclicky-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d67bc7682e045ba3803123bf52960b969792606257b8e7b9105310069743cc5
MD5 d76b7407ba42d51f6bb82905ef517da1
BLAKE2b-256 8e58915f235173a14d7479c6939e6863376d20d0558bfdb7c37c7dd899634d51

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