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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bunnycdn_storage_handler-0.1.0.tar.gz.
File metadata
- Download URL: bunnycdn_storage_handler-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc5d854aa281d11cbf44893d4be36c92aee09007a53dc597449bcd3b4fa15d9f
|
|
| MD5 |
f57aa4c65a2f73694861dd868e28104f
|
|
| BLAKE2b-256 |
706018ed7a82bd5106772c3fd42c6a36a2e5af93233113578663952c817472c1
|
File details
Details for the file bunnycdn_storage_handler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bunnycdn_storage_handler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67b9938894f125e331122a3fb3711d8899c95b2f64816b32ca431f40e13569b9
|
|
| MD5 |
31e756b2bf18090b3769005e2e09922d
|
|
| BLAKE2b-256 |
50dc5aad68ba7d0f46a8f485695036f980f2b455e53e72c2039f89c352d807eb
|