This package provides the tools to quickly setup a scalable and readable data pipeline that can be run on different platforms.
Project description
Data Scout
This package provides the tools to quickly setup a scalable and readable data preparation pipeline that can be run on different platforms. Currently only vanilla Python is available, but PySpark should be available soon. There is also a user interface available here: Data Scout server that allows you to create data pipelines in a visual editor and then export them as either a JSON file, or just plain old simple Python that can be used anywhere.
Installation
The easiest and quickest way to install Data Scout is through PyPi, just execute the following command:
pip install data-scout
Executing a JSON pipeline
Pipeline definitions can be given as JSON files or directly as Python commands. To execute a JSON definition, your code would look somewhat as follows:
from data_scout.executor import PandasExecutor
from data_scout.scout import Scout
scout = Scout()
executor = PandasExecutor({"source": "CSV", "kwargs": {
"filename": "test.csv",
"delimiter": ",",
"encoding": "utf-8",
"has_header": True
}}, [{"transformation": "data-convert", "kwargs": {"field": "column1", "to": "int"}}], scout)
executor()
This will load a CSV file and convert the column named "column1" to an integer using Pandas as a backend.
Development
For development purposes, install the package using the following command:
pip install -e .[dev]
Testing
There are some unit tests available. The unit tests are written using the Nose2 framework. The setup.py script should have already installed Nose2, so now you may run the tests as follows:
nose2 -v
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
File details
Details for the file data-scout-0.1.1.tar.gz
.
File metadata
- Download URL: data-scout-0.1.1.tar.gz
- Upload date:
- Size: 36.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e21693a6abad6a45079ebf3c1c8f874b43fc69ab04a42f5b8645f91e85c846d |
|
MD5 | fb8b5c63e2ebacce7cc384ba1a9a66b1 |
|
BLAKE2b-256 | f775440f4d4edb47e2a3cbe5c88058682f1bf70d5b6012c04ff46d35fb1845ad |
File details
Details for the file data_scout-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: data_scout-0.1.1-py3-none-any.whl
- Upload date:
- Size: 53.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23a92a7a3e82d7d0bed614aef5c283a664344f846bf537bb9555072757a8f3fb |
|
MD5 | 6966869558bbc16bf7b10bb5704dc57c |
|
BLAKE2b-256 | b9eab040fa1fb162c5da32e805d693788218075dec3760792a137cc3a3a7713b |