Catalog PyPI
Back to packageRELEASE DETAILS

0.0.4

PyPI

acrcloudclient

An AcrCloud Client for Python

Published29 May 2023
Direct dependencies1
Transitive dependenciesNot calculated

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.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
requests
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.7",
  "evaluation": "NOT_EVALUATED"
}
requestsruntime

Distribution files

2 collected
acrcloudclient-0.0.4-py3-none-any.whl

bdist_wheel · 4.88 KB · Python py3

Source file
acrcloudclient-0.0.4.tar.gz

sdist · 4.39 KB · Python source

Source file

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_version:e04b75773c8e53051fa86cfd2ff036b8704f2d9d0ad4790322f595cc0f30ea66

Other collected versions

View all collected versions →