Koza, an ETL framework for the Biolink model
Project description
Koza
Data transformation framework
Disclaimer: Koza is in pre-alpha
Transform csv, json, and jsonl and converting them to a target csv, json, or jsonl format based on your dataclass model. Koza also can output data in the KGX format
Highlights
- Author data transforms in semi-declarative Python
- Configure source files, expected columns/json properties and path filters, field filters, and metadata in yaml
- Create or import mapping files to be used in ingests (eg id mapping, type mappings)
- Create and use translation tables to map between source and target vocabularies
Installation
pip install koza
Getting Started
Send a local or remove csv file through Koza to get some basic information (headers, number of rows)
koza validate \
--file https://raw.githubusercontent.com/monarch-initiative/koza/dev/tests/resources/source-files/string.tsv \
--delimiter ' '
Sending a json or jsonl formatted file will confirm if the file is valid json or jsonl
koza validate \
--file ./examples/data/ZFIN_PHENOTYPE_0.jsonl.gz \
--format jsonl
koza validate \
--file ./examples/data/ddpheno.json.gz \
--format json \
--compression gzip
Example: transforming StringDB
koza transform --source examples/string/metadata.yaml
koza transform --source examples/string-declarative/metadata.yaml
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
koza-0.0.1a4.tar.gz
(233.2 kB
view details)
Built Distribution
koza-0.0.1a4-py3-none-any.whl
(25.2 kB
view details)
File details
Details for the file koza-0.0.1a4.tar.gz
.
File metadata
- Download URL: koza-0.0.1a4.tar.gz
- Upload date:
- Size: 233.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aba8b519fb371528a0f9df488725e65acd29b0b8ddd9878c336685a3bb7535b |
|
MD5 | 8d08ed624f2949850d8a025bbc649796 |
|
BLAKE2b-256 | b3c3a6efdbd671e1020dead4913a7bae70dafd3e07578ea2549377045b0940ad |
File details
Details for the file koza-0.0.1a4-py3-none-any.whl
.
File metadata
- Download URL: koza-0.0.1a4-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48287ef5a9e71816265819de95142baa81b93e9a88ad27b47a35dd88ed6b2983 |
|
MD5 | 9a0aadc8be65d9d03c8c6689ba90832e |
|
BLAKE2b-256 | b5b8259dca8dba028fab89d7ae5f72147f6fb065e36810cc6b198aa51512fab2 |