https://github.com/negillett/chexus
A Python library for interacting with AWS S3 and DynamoDB
https://github.com/negillett/chexus
decommissioned dynamodb python-library s3 unsupported
Last synced: 6 months ago
JSON representation
A Python library for interacting with AWS S3 and DynamoDB
- Host: GitHub
- URL: https://github.com/negillett/chexus
- Owner: negillett
- License: gpl-3.0
- Created: 2020-01-23T14:20:18.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2020-11-20T17:34:19.000Z (about 5 years ago)
- Last Synced: 2025-06-07T22:39:30.842Z (7 months ago)
- Topics: decommissioned, dynamodb, python-library, s3, unsupported
- Language: Python
- Homepage:
- Size: 287 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
chexus
======
A Python library for interacting with AWS S3 and DynamoDB
[](https://travis-ci.org/nathanegillett/chexus)
[](https://coveralls.io/github/nathanegillett/chexus?branch=master)
- [Source](https://github.com/nathanegillett/chexus)
- [Documentation](https://nathanegillett.github.io/chexus)
Usage Example
-------------
```python
from chexus import Client, BucketItem, TableItem
# Make a client pointing at an AWS account using IAM credentials.
client = Client(
access_id="AKIAUB24K6XOZITDKHY",
access_key="iJg8jG0DLIrzVpQs4Sj5LerxPtVyY4QG7sYv8bk",
default_region="us-west-1"
)
# Create an item to upload to an S3 bucket...
upload_item = BucketItem(file_path="mnt/my/os-3/new-file")
# ...and/or an item to publish to a DynamoDB table.
put_item = TableItem(Name=upload_item.name, Checksum=upload_item.checksum)
# Then perform these actions using the client.
client.upload(items=upload_item, bucket_name="my-bucket")
client.publish(items=put_item, table_name="my-table")
```
Development
-----------
Patches may be contributed via pull requests to
https://github.com/nathanegillett/chexus.
All changes must pass the automated test suite, along with various static
checks.
The [Black](https://black.readthedocs.io/) code style is enforced.
Enabling autoformatting via a pre-commit hook is recommended:
```
pip install -r requirements-dev.txt
pre-commit install
```
License
-------
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.