assart
According to Wikipedia, Assarting is the act of clearing forested lands for use in agriculture or other purposes. In English land law, it was illegal to assart any part of a royal forest without permission.
In our case, assart is A simple S3 analytic reporting tool_
Note: This is an experimental project and the codebase is not yet ready for serious usage.
Getting started
Installation
Due to the experimental nature of the project, it is recommended that assart be installed into a virtual environment like so:
$ cd ~/venvs
$ python3 -m venv assartenv
$ source assartenv/bin/activate
$ pip install assart
Configuration
assart utilizes the AWS Python SDK (boto3). By convention, boto3 sources your AWS credentials and default region from the following locations:
$ cat ~/.aws/credentials
[default]
aws_access_key_id = YOUR_AWS_ACCESS_KEY_ID
aws_secret_access_key = YOUR_AWS_SECRET_ACCESS_KEY
$ cat ~/.aws/config
[default]
region = us-east-1
Usage
$ assart -h
usage: assart [-h] [-u {KB,MB,GB}]
A simple S3 analytics reporting tool
optional arguments:
-h, --help show this help message and exit
-u {KB,MB,GB}, --unit {KB,MB,GB}
Unit of Size
Running
With your credentials configured, the program can be run like so:
$ assart
By default the program will output a list of the user's s3 buckets, and for each bucket will provide:
- The Bucket name
- The Creation date of the bucket
- The Number of files in the bucket
- The Total size of the files in the bucket
- The Last modified date of the most recent file
Contributing
The assart package is available under a permissive MIT License. Feedback and suggestions are welcome. The package can be built like so:
python setup.py sdist bdist_wheel
Release files for assart 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| assart-0.2.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| assart-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / assart-0.2.0.tar.gz
| Download URL | assart-0.2.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19fcf064aa656951aaf15b87f76a8fd9e35bca59db388e10d6cbdab8ad7f47fb
|
|
BLAKE2b-256 checksum How to use checksums |
21662f21ca5080d3b99f6be8cb9a4c2a9cc8853c057a141174756adfa22d9633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200209 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
|
Release files / assart-0.2.0-py3-none-any.whl
| Download URL | assart-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9617611868deadfeb242026f9df7d63d3c0ef608a2592bdebd42e69c34afa19
|
|
BLAKE2b-256 checksum How to use checksums |
187ba33c96aca0b78bcf5b262d66855ec77a04336a20d5dec4dba3110f1d90ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200209 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
|