Skip to main content

API wrapper for the v2 ACRCloud API

Project description

Python ACR Client module

Contains a simple client for calling the v2 endpoints of the ACRCloud API.

Installation

poetry add acrclient

# or on old setup style projects
pip -m install acrclient

Usage

>>> from acrclient import Client
>>> client = Client(bearer_token="bearer-token")

Development

# setup a dev env
python -mvenv env
. env/bin/activate

# install a modern poetry version
python -mpip install poetry>=1.2.0

# install deps and dev version
poetry install

# make changes, run tests
poetry run pytest

Release Management

The CI/CD setup uses semantic commit messages following the conventional commits standard. There is a GitHub Action in .github/workflows/semantic-release.yaml that uses go-semantic-commit to create new releases.

The commit message should be structured as follows:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

The commit contains the following structural elements, to communicate intent to the consumers of your library:

  1. fix: a commit of the type fix patches gets released with a PATCH version bump
  2. feat: a commit of the type feat gets released as a MINOR version bump
  3. BREAKING CHANGE: a commit that has a footer BREAKING CHANGE: gets released as a MAJOR version bump
  4. types other than fix: and feat: are allowed and don't trigger a release

If a commit does not contain a conventional commit style message you can fix it during the squash and merge operation on the PR.

Once a commit has landed on the main branch a release will be created and automatically published to pypi using the GitHub Action in .github/workflows/release.yaml which uses poetry to publish the package to pypi.

License

This package is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.

Copyright

Copyright (c) 2023 Radio Bern RaBe

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

acrclient-0.5.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

acrclient-0.5.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file acrclient-0.5.1.tar.gz.

File metadata

  • Download URL: acrclient-0.5.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

File hashes

Hashes for acrclient-0.5.1.tar.gz
Algorithm Hash digest
SHA256 9076c26725b95df0ecf67bfa4251b1e093bbb36696d2188eaf8953b4c3dfdeef
MD5 87f1281614069f5e6ce42e0d40cf1790
BLAKE2b-256 7a96a7b1cc8b0375a7e9bd5d08b5bd00b12db0f31e2af1f06af949f2d91e6977

See more details on using hashes here.

File details

Details for the file acrclient-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: acrclient-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1015-azure

File hashes

Hashes for acrclient-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51b448d139f89921792b8140bc21e2eef08c898364b01cc41c032e0147709358
MD5 0dda03a28dce84540316b6d857656a10
BLAKE2b-256 e1a48f8e2c3afa1477d7c559f8ff9da6ed45728909fe260f9b19b2ecabbb4982

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