One Squared Utilities
oneutil is a Python package that provides useful utilities for work we do at One Squared.
Installation
To install oneutil, you can get it from PYPI:
pip install oneutil
For testing, you can install it locally via
python setup.py sdist bdist_wheel
pip install -e .
Usage
from oneutil.etl.aws import get_s3_bucket_files, get_s3_buckets
from oneutil.etl.databento import get_df_from_s3
# List files in the default S3 bucket in 'us-east-1' region
files = get_s3_bucket_files()
# List all available S3 buckets in 'us-east-1' region
buckets = get_s3_buckets()
# Read a databento file
df = get_df_from_s3(get_s3_bucket_files()[-1])
oneutil relies on the AWS SDK (boto3) for interacting with AWS S3. To use the package, make sure you have valid AWS access credentials (access key ID and secret access key) set as environment variables or provide them explicitly when calling the functions.
s3_public_key: The AWS access key ID.s3_private_key: The AWS secret access key.
If the environment variables are not set, you can pass the credentials directly as arguments to the functions.
Metadata
Release files for oneutil 0.0.4
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 | |
|---|---|---|---|---|
| oneutil-0.0.4.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oneutil-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / oneutil-0.0.4.tar.gz
| Download URL | oneutil-0.0.4.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e26fac6931ff1aabe1701b022d3ec7d1376944862d713dc0d6ae5c0de04518b
|
|
BLAKE2b-256 checksum How to use checksums |
c0f5dd2efe333f63f840a231055fcdf1d58fa98a099b5d7d55dd2d3d05ac456b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / oneutil-0.0.4-py3-none-any.whl
| Download URL | oneutil-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8179cf98456e2a8ae09b0725c0920765f3021e3f3d6978aeb2b9291493bbc386
|
|
BLAKE2b-256 checksum How to use checksums |
3ef7307248766901db860e355a746624ca8d82ddcc2f58cd115934df1a185640
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for oneutil 0.0.4
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.