acrcloud
ACR Cloud Python Client
API ACRCloud Doc
https://docs.acrcloud.com/reference/console-api
ACRClient Examples Usage
List and remove audios that are created on 2021
from acrcloud import ACRCloudClient
import os
ACR_TOKEN=os.getenv("ACR_TOKEN")
def log(bucket, msg):
"""Local log function"""
print(f"B:{bucket.name} - {msg}")
acr = ACRCloudClient(ACR_TOKEN)
for bucket in acr.list_buckets(search="my-bucket-"):
print("Processing bucket:", bucket.name)
audios = bucket.list_audios(order="asc")
for a in audios:
if "2021" in a.created_at:
a.delete()
log(bucket, f"Delete audio: {a.id} - {a.created_at}")
else:
log(bucket, "Not found any audio from 2021")
break
Environment Variables
ACR_CLOUD_TOKEN =
Roadmap plan
- Handle date fields with datetime object
- Handle TOKEN through default environment variables
- Publish to pip
Metadata
Release files for acrcloudclient 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| acrcloudclient-0.0.4.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acrcloudclient-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / acrcloudclient-0.0.4.tar.gz
| Download URL | acrcloudclient-0.0.4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a5df071b2d97c6db3bdd05a5869ca1c8ea3d8c8af7d4eae184350036c32ec0f
|
|
BLAKE2b-256 checksum How to use checksums |
e9ef82313d3395e6566668cf8bd1dc2f61139af3a6d95e127a64441dedc59653
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / acrcloudclient-0.0.4-py3-none-any.whl
| Download URL | acrcloudclient-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2da2d6058131c3ba6607d0e41ba730491766aaf0c208cc8e7f4d1e41d05e7f5
|
|
BLAKE2b-256 checksum How to use checksums |
ac9a82d4fad16cc2f3de5554800c1c7edd6df3dff1925c467307d0aa35fe2631
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for acrcloudclient 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.