Python package providing shortcuts to small tasks like string manipulation, running background tasks, configuring logging, accessing web API etc.
Project description
Aries
Aries is a Python package providing shortcuts to a wide range of small tasks like access files on the cloud, running background tasks, configuring logging, etc.
Aries includes:
- Storage sub-package, which provides a unified interface for accessing files on local computer, Google Cloud Storage and Amazon S3 Storage. The storage interface includes shortcuts for listing, copying, deleting files/folder.
- Google sub-package, providing simple API for accessing data in Google Drive and Google Sheets.
- Outputs(
outputs.py
) module for logging and capturing outputs. - Excel(
excel.py
) module to create, read and modify Microsoft Excel spreadsheets. - Files(
files.py
) module to handle JSON, Markdown and temporary files with templates. - String(
string.py
) module to provide enhanced String types, as well as FileName, Base64String. - Task(
tasks.py
) module to manage asynchronous/background functions and commands. - Web(
web.py
) module to access web APIs and HTML pages.
Installation
Aries is developed with Python 3.7. You can install the full package with pip
:
pip3 install Aries-Python
Alternatively, you can also install only the storage package using:
pip3 install Aries-storage
Usage
To use this package, import the module/sub-package from Aries
from Aries.tasks import ShellCommand
As an example, here is how to use Aries to write a pandas
DataFrame to a CSV file on Google Cloud Storage:
import pandas as pd
df = pd.DataFrame([1, 3, 5])
uri = "gs://bucket_name/path/to/file.txt"
# Using StorageFile with pandas
with StorageFile.init(uri, 'w') as f:
# f will be a file-like object
df.to_csv(f)
See the documentation for sub-packages for more details.
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
Built Distribution
Hashes for Aries_Python-0.1.306-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7543c484a4f00dc569b893c94c4458bc767430739af5275a66c301267e2c25e2 |
|
MD5 | 2ab110c1d3221d58b88b72adc4a17af7 |
|
BLAKE2b-256 | 26b6235f5fa23d46396db6a109c0cdf0ec71e120dacc5e2b574ab82a2c994b77 |