Skip to main content

A Python client for BunnyCDN Storage API

Project description

BunnyCDN Storage Python Client

A Python client for interacting with BunnyCDN Storage API. This package provides a simple interface to upload, download, and manage files on BunnyCDN Storage.

Installation

pip install bunnycdn-storage-handler

Usage

from bunnycdn_storage import BunnyCDNStorage

# Initialize the client
storage = BunnyCDNStorage()

# Upload a file
cdn_url = storage.upload_file("path/in/storage/", file_content, "filename.txt")

# Download a file
status = storage.download_file("path/to/file.txt", "local/destination/path")

# Check if file exists
exists = storage.object_exists("path/to/file.txt")

# Delete a file
status = storage.delete_object("path/to/file.txt")

Features

  • Upload files to BunnyCDN Storage
  • Download files from BunnyCDN Storage
  • Check if files exist
  • Delete files from storage
  • Automatic CDN URL generation

Configuration

The client requires the following configuration:

  • API Key
  • Storage Zone Name
  • Pull Zone Name

License

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

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

bunnycdn_storage_handler-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

bunnycdn_storage_handler-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for bunnycdn_storage_handler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dc5d854aa281d11cbf44893d4be36c92aee09007a53dc597449bcd3b4fa15d9f
MD5 f57aa4c65a2f73694861dd868e28104f
BLAKE2b-256 706018ed7a82bd5106772c3fd42c6a36a2e5af93233113578663952c817472c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bunnycdn_storage_handler-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67b9938894f125e331122a3fb3711d8899c95b2f64816b32ca431f40e13569b9
MD5 31e756b2bf18090b3769005e2e09922d
BLAKE2b-256 50dc5aad68ba7d0f46a8f485695036f980f2b455e53e72c2039f89c352d807eb

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