elbow-0.1.0a1
توضیحات
Extract data from a bunch of files and load into a table
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | elbow-0.1.0a1 |
| نام | elbow |
| نسخه کتابخانه | 0.1.0a1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Connor Lane <connor.lane858@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/elbow/ |
| مجوز | MIT License |
# Elbow
Elbow is a library for extracting data from a bunch of files and loading into a table (and that's it).
## Examples
```python
import json
from elbow import load_table, load_parquet
# Extract records from JSON-lines
def extract(path):
with open(path) as f:
for line in f:
record = json.loads(line)
yield record
# Load as a pandas dataframe
df = load_table(
pattern="**/*.json",
extract=extract,
)
# Load as a parquet dataset (in parallel)
dset = load_parquet(
pattern="**/*.json",
extract=extract,
where="dset.parquet",
workers=8,
)
```
## Installation
A pre-release version can be installed with
```
pip install elbow
```
## Other (better) projects
- [AirByte](https://github.com/airbytehq/airbyte)
- [Meltano](https://github.com/meltano/meltano)
- [Singer](https://github.com/singer-io/getting-started)
- [Mage](https://github.com/mage-ai/mage-ai)
- [Orchest](https://github.com/orchest/orchest)
- [Streamz](https://github.com/python-streamz/streamz)
نیازمندی
| مقدار | نام |
|---|---|
| - | typing-extensions |
| - | numpy |
| - | pandas |
| - | pyarrow |
| ==23.3.0 | black |
| ==5.0.4 | flake8 |
| ==5.11.5 | isort |
| ==1.2.0 | mypy |
| - | pre-commit |
| >=2.5.0 | pylint |
| - | setuptools-scm |
| - | pytest |
| - | pytest-cov |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl elbow-0.1.0a1:
pip install elbow-0.1.0a1.whl
نصب پکیج tar.gz elbow-0.1.0a1:
pip install elbow-0.1.0a1.tar.gz