A Python datalake client.
Project description
Ness
A Python datalake client.
Requirements
Installation
pip install pyarrow ness
Quickstart
import ness
dl = ness.dl(bucket="mybucket", key="mydatalake")
df = dl.read("mytable")
Sync
# Sync all tables
dl.sync()
# Sync a single table
dl.sync("mytable")
# Sync and read a single table
df = dl.read("mytable", sync=True)
Format
Specify the input data source format, the default format is parquet
:
import ness
dl = ness.dl(bucket="mybucket", key="mydatalake", format="csv")
AWS Profile
Files are synced using default
AWS profile, you can configure another one:
import ness
dl = ness.dl(bucket="mybucket", key="mydatalake", profile="myprofile")
Command Line
Usage: ness sync [OPTIONS] S3_URI
Options:
--format TEXT Data lake source format.
--profile TEXT AWS profile.
--table TEXT Table name to sync.
--help Show this message and exit.
ness sync bucket/key --table mytable
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
ness-0.1.4.tar.gz
(4.0 kB
view details)
Built Distribution
ness-0.1.4-py3-none-any.whl
(5.7 kB
view details)
File details
Details for the file ness-0.1.4.tar.gz
.
File metadata
- Download URL: ness-0.1.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.10.0 Linux/5.11.0-1020-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
00341fece2cff248c0eab7d835c025865b47bd81483425634ffbd35075af8e37
|
|
MD5 |
0a3eec4f767ce39f941078405a7fd6ba
|
|
BLAKE2b-256 |
fdd766968b22be39c6802a756c2e93d8828131c596de36b2c338bee9aad3c3dd
|
File details
Details for the file ness-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: ness-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.10.0 Linux/5.11.0-1020-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d131ebf71ca49403e7967e7da9d07cf49d2270fff4d6a9c6fe1967bdf4905c7e
|
|
MD5 |
578f323df4e868437d938b17d144109e
|
|
BLAKE2b-256 |
0cac6e2bcbaf975bc9cd712455f366a75db0fdc6aeadae63c8daf00abebbe02b
|