Sentieo AWS
Installation
You can install SentieoAWS via [pip] from [PyPI]:
$ pip install --extra-index-url https://api.packagr.app/PLesWotlL sentieoaws==0.0.1
Documentation
Sentieoaws is a wrapper around the current boto3 packages for various aws services including S3, SNS, SQS etc.
Usage
For AWS Base Client
from sentieoaws.sentieo_aws_base import SentieoAWSBase
aws_client = SentieoAWSBase("s3", local=True).get_client()
aws_resouce = SentieoAWSBase("s3", local=True).get_resource()
For S3
from sentieoaws.s3api import SentieoS3Connection
s3_obj = SentieoS3Connection(local=True)
BUCKET_NAME = "test_bucket"
OBJECT_KEY = "test_object"
bucket = s3_obj.get_bucket(BUCKET_NAME) # returns bucket object
object = s3_obj.get_object(BUCKET_NAME, OBJECT_KEY) # returns s3 object
content, content_type = s3_obj.get_object_content(BUCKET_NAME, OBJECT_KEY) # returns content, content_type
uploaded = s3_obj.put_object_content(BUCKET_NAME, OBJECT_KEY, "content", "content_type") # return True / False
s3_obj.upload_file(BUCKET_NAME, OBJECT_KEY, file_path, is_compress, is_public) # uploads file
s3_obj.download_file(BUCKET_NAME, OBJECT_KEY, file_path) # downloads file
Development
- Clone this repository
- Requirements:
- Poetry
- Python 3.10+
- Create a virtual environment and install the dependencies
make poetry-download
- Activate the virtual environment
make env
Testing
make test
Pre-commit
Pre-commit hooks run all the auto-formatters (e.g. black, isort), linters (e.g. mypy, flake8), and other quality
checks to make sure the changeset is in good shape before a commit/push happens.
You can install the hooks with (runs for each commit):
pre-commit install
Or if you want them to run only for each push:
pre-commit install -t pre-push
Or if you want e.g. want to run all checks manually for all files:
pre-commit run --all-files
Contributing
Contributions are very welcome.
Metadata
Release files for sentieoaws 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sentieoaws-0.0.6.tar.gz | 7.4 kB | Without provenance | Details for sentieoaws-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sentieoaws-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for sentieoaws-0.0.6-py3-none-any.whl |
Total release size: 15.1 kB
Release files / sentieoaws-0.0.6.tar.gz
| Download URL | sentieoaws-0.0.6.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4efee799fdf5784bf8e975d9f4bf0b554cf90a8560879a775f1ddb3576464774
|
|
BLAKE2b-256 checksum How to use checksums |
17d6bc581e783979ed8dde5f1d00bed735b2c885108585db4ae77edafbc023c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0
|
Release files / sentieoaws-0.0.6-py3-none-any.whl
| Download URL | sentieoaws-0.0.6-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef055ffba6d08488e23d30b750e6ebeaae5deb31e40af443e60ca63e4efada8b
|
|
BLAKE2b-256 checksum How to use checksums |
e4f0473292bae70d9eb52dbc841568f2332fb2fcdb5871f2253073ab9b0b2cf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0
|
Security for sentieoaws 0.0.6
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.