A collection of AWS clients, and a secrets manager.
Project description
mediqaws
A collection of AWS clients, and asecrets manager.
Install
[pip install mediqaws]
Usage
from mediqaws.clients import S3
profile_name = "..."
bucket_name = "..."
object_key_prefix = "..."
file_path = "..."
with S3(profile_name=profile_name) as s3:
object_key = s3.upload(file_path, bucket_name, object_key_prefix)
print(object_key)
from mediqaws.secrets_manager import SecretsManager
secrets_manager = SecretsManager()
secret = secrets_manager.get_secret(os.getenv("SECRET_NAME"))
print(secret)
See more examples under tests directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mediqaws-0.0.5.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mediqaws-0.0.5.tar.gz.
File metadata
- Download URL: mediqaws-0.0.5.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3c36746c42b0d0b7096d03f97e727ec22617216dae6c01f401e858a380d56dd
|
|
| MD5 |
605103f67b6c7e11931a5e4d2f0ed6ec
|
|
| BLAKE2b-256 |
f32a08324489de6bf8da45d68e943bccd2a72fdf011b03c97eb0bd6040ce5c02
|
File details
Details for the file mediqaws-0.0.5-py3-none-any.whl.
File metadata
- Download URL: mediqaws-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b22883ca81374e60aca92bc88701800d046963215b10e8cc366e9a65e33f57a
|
|
| MD5 |
4d79914e7da895acbc56fe35d7e35e63
|
|
| BLAKE2b-256 |
c578809c5823c5f0ea84e4edf537125bc7d2e1680d2cdbc51e55791f15e084f0
|