Playbooks for data. Open, process and save table based data.
Project description
Data Playbook
:book: Playbooks for data. Open, process and save table based data.
Automate repetitive tasks on table based data. Include various input and output tasks. Can be extended with custom modules.
Install: pip install dataplaybook
Use: dataplaybook playbook.yaml
Playbook structure
The playbook.yaml file allows you to load additional modules (containing tasks) and specify the tasks to execute in sequence, with all their parameters.
The tasks
to perform typically follow the the structure of read, process, write.
Example yaml: (please note yaml is case sensitive)
modules: [list, of, modules]
tasks:
- task: *name
tables: # List of tables used by this task
target: # Target table name of this function
debug*: True/False # default: False
# task specific properties, refer to each task
Tasks
Tasks are implemented as simple Python functions and the modules can be found in the dataplaybook/tasks folder.
Default tasks
- drop
- extend
- filter
- fuzzy_match (
pip install fuzzywuzzy
) - replace
- unique
- vlookup
Module io_xlsx
(loaded by default)
- read_excel
- write_excel
Module io_misc
(loaded by default)
- read_tab_delim
- read_text_regex
- wget
- write_csv
Module io_mongo
(uses pymongo)
- read_mongo
- write_mongo
- columns_to_list
- list_to_columns
Module io_pdf
(requires pdftotext)
- read_pdf_pages
- read_pdf_files
Module io_xml
Module ietf
Module gis
Module fnb
Install development version
- Clone the repo
pip install <path> -e
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
File details
Details for the file dataplaybook-0.2.3.tar.gz
.
File metadata
- Download URL: dataplaybook-0.2.3.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75432dee350e089f9b12e204aaababe375aeba9b848a3f2853f88b2b801b0f9f |
|
MD5 | 13727f61356bc39e04a340cf126f31ba |
|
BLAKE2b-256 | 22b59cb5703b0520a36258ea320dd4edbdec6cea8ead48e738f4e8c3e32fabb9 |