Skip to main content

Асинхронный модуль для работы с Cloudflare API

Project description

async-cloudflare

`async-cloudflare` is an asynchronous Python module for interacting with the Cloudflare API. Designed for developers who need to integrate Cloudflare services into their applications efficiently, it offers a streamlined, async interface to manage DNS records, zones, and more. Whether you're automating website setups, managing DNS records, or controlling Cloudflare settings programmatically, `async-cloudflare` simplifies the process with easy-to-use Python classes and methods.

Downloads

Features

  • Asynchronous Design: Utilize Python's async/await syntax for non-blocking API calls.
  • Comprehensive Coverage: Supports a wide range of Cloudflare API endpoints, including zones, DNS records, and account settings.
  • Easy to Use: Simplified methods and clear documentation make it easy to integrate into your projects.
  • Flexible: Whether you're managing a single website or hundreds, `async-cloudflare` scales with your needs.

Installation

To install `async-cloudflare`, simply use pip:

pip install async-cloudflare

Quick Start

Here's a quick example to get you started with `async-cloudflare`:

import asyncio
from async_cloudflare import CloudFlare

async def list_zones():
    cf = CloudFlare(token="YOUR_CLOUDFLARE_TOKEN", email="YOUR_EMAIL", auth_key="YOUR_AUTH_KEY")
    zones = await cf.zones.get()
    for zone in zones:
        print(zone.name)

loop = asyncio.get_event_loop()
loop.run_until_complete(list_zones())

Documentation

For detailed documentation, including all classes and methods available, please refer to our GitHub repository.

License

`async-cloudflare` is licensed under the Apache License, Version 2.0. See the LICENSE file for more details.

Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and use a pull request to add your changes. If you find a bug or have a feature request, please open an issue.

Support

If you need help or have any questions, join our Telegram group.

[!IMPORTANT] This package is not officially affiliated with Cloudflare. All trademarks belong to their respective owners.

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

async-cloudflare-0.1.0.3.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file async-cloudflare-0.1.0.3.tar.gz.

File metadata

  • Download URL: async-cloudflare-0.1.0.3.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for async-cloudflare-0.1.0.3.tar.gz
Algorithm Hash digest
SHA256 7a415e23faf5eb9cfca58336d679df47d7a8eea7c41dee7f4eb33acf09668f33
MD5 ad4b185bef801f8791f9f699b76cbf38
BLAKE2b-256 2f74913afd1a3ea8b883809182aac7d69132e5afb2165f5da79d3478fb29e3d0

See more details on using hashes here.

Supported by

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