Skip to content

Latest commit

 

History

History
89 lines (56 loc) · 2.15 KB

README.rst

File metadata and controls

89 lines (56 loc) · 2.15 KB

aioworkers-boto

https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v0.json Code style: black Documentation Status Hatch project

Use

s3:
  cls: aioworkers_boto.storage.Storage
  bucket: mybucket
  path: subdir/subsubdir
  connection:
    endpoint_url: https://...
    aws_secret_access_key: '&124323453456789'
    aws_access_key_id: key-id
    region_name: us-east-1
  format: json
await context.s3.set(key, data)  # save data
d = await context.s3.get(key)  # get data
await context.s3.set(key, None)  # delete

Development

Check code:

hatch run lint:all

Format code:

hatch run lint:fmt

Run tests:

hatch run pytest

Run tests with coverage:

hatch run cov