Skip to main content

Botree: a friendly wrapper for boto3

Botree is a higher level API for AWS services / Boto3 classes and aims to make Boto3 experience easier.

🧰 Supported AWS services

Currently, there are just some Boto3 wrapped classes.

  • ✔️ S3
  • ✔️ Secrets
  • ✔️ CloudWatch
  • ✔️ Cost Explorer
  • ✔️ Secrets Manager

💻 Basic usage

To start a Botree session, use the following:

import botree
session = botree.session("us-east-1", profile="dev")

Create a bucket:

session.s3.create_bucket("sample-bucket")
session.s3.list_buckets()

Note that all S3 operations will use Python's pathlib to handle directory paths, so let's import it:

from pathlib import Path

Download and upload:

source_file = Path("sample_source_file.png")
target_file = Path("sample_target_file.png")
session.s3.bucket("sample-bucket").upload(source_file, target_file)
session.s3.bucket("sample-bucket").download(source_file, target_file)

📜 Docs

The docs are under development, but it's (very) early stage is already available.

🏗️ Development

Botree relies on PDM.

Install the Python dependencies with:

pdm install

⚗️ Testing

pdm run pytest --cov=botree tests/

🖖 Contributors

Metadata

Release files for botree 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for botree 0.4.1
File Size Uploaded Provenance Actions
botree-0.4.1.tar.gz 9.4 kB Without provenance Details for botree-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for botree 0.4.1
File Interpreter ABI Platform Actions
botree-0.4.1-py3-none-any.whl Python 3 none any Details for botree-0.4.1-py3-none-any.whl

Total release size: 17.9 kB

Release files / botree-0.4.1.tar.gz

Download URL botree-0.4.1.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a94d0339ef362412edd7a812f78644f1402d33c5561e4b83915d376788a35f24
BLAKE2b-256 checksum
How to use checksums
2b8728827f078cde88250e1174b1de88fe506100a92bbfd4c59d2375fe50875c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.8.0 CPython/3.11.4

Release files / botree-0.4.1-py3-none-any.whl

Download URL botree-0.4.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
548807deeb864ee121dc40891ecfe35710fbefde44b34a8d4a5a4c3e20649986
BLAKE2b-256 checksum
How to use checksums
bcf2a3bf4fb2ae467a841c6fefcaf411a09664f833ff960f858f9fb7408f7a75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.8.0 CPython/3.11.4

Security for botree 0.4.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page