Skip to main content

Poller for the Chaturbate events API.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Chaturbate Poller

Chaturbate Poller is a Python application designed to periodically fetch and process events from the Chaturbate API. It utilizes asynchronous HTTP requests and parses the received events for further processing or storage.

Features

  • Asynchronous event fetching from the Chaturbate API.
  • Error handling and retry logic for network requests.
  • Logging of fetched events and error conditions for audit and debugging.
  • Environment variable-based configuration for API credentials.

Requirements

  • Python 3.8+
  • httpx
  • Pydantic
  • asyncio
  • dotenv

Setup

To set up the Chaturbate Poller, follow these steps:

  1. Ensure Python 3.8 or higher is installed on your system.
  2. Install the Python package:
pip install chaturbate-poller
  1. Set up your environment variables by creating a .env file in the root directory with the following content:
CB_USERNAME=your_chaturbate_username
CB_TOKEN=your_api_token

Replace your_chaturbate_username and your_api_token with your actual Chaturbate username and API token.

Usage

To run the Chaturbate Poller, use the following command from the root directory of the project:

python -m chaturbate_poller

The application will start, log into the console, and begin fetching events from the Chaturbate API using the credentials provided in the .env file.

See example.py for more detailed usage instructions.

Development

For development purposes, especially to run tests or develop additional features, consider setting up a virtual environment and installing the development dependencies:

python -m venv .venv
source .venv/bin/activate  # On Windows, use `.venv\Scripts\Activate`
pip install -r requirements-dev.txt

To run tests:

pytest

Contributing

Contributions to the Chaturbate Poller are welcome! Please follow the standard fork-and-pull request workflow on GitHub to submit your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

chaturbate_poller was created with cookiecutter and the py-pkgs-cookiecutter template.

Project details


Release history Release notifications | RSS feed

This version

0.2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chaturbate_poller-0.2.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

chaturbate_poller-0.2.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file chaturbate_poller-0.2.0.tar.gz.

File metadata

  • Download URL: chaturbate_poller-0.2.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for chaturbate_poller-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4e49c5db187084577a42d51a5c6c50a7389a7ab74bf91b7e170eeefa505ea926
MD5 da37ce4925b166925471d6475dc7d45d
BLAKE2b-256 f2bbd8cac44684624f4f3cbd013ac724e73225fc25f4495632a638bfc66de55e

See more details on using hashes here.

File details

Details for the file chaturbate_poller-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for chaturbate_poller-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11ffb5f31f5f0c1c246df2aaa8ad646640bef9c186e5d89a58d332dd7e27520d
MD5 7a7d717c316cfe95dce705b9693cc04d
BLAKE2b-256 bbe40113f39fa2a9092eb0691924f83e606bc3a204e0de44a70e6faf48dda4a9

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