Catalog PyPI
PACKAGE EXPLORERView in registry

acrcloudclient

PyPI

An AcrCloud Client for Python

Versions collected1
Direct dependencies1From release 0.0.4
Last observed20 Oct, 18:25 UTC

README

Version 0.0.4 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.429 May 20231

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
gonzafirewall/acrcloud

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:25 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0d955ef94ed5248456859a756fd8de1afb6e781a1a1163a3cee5be75426adc18