Skip to main content

Python ETL tool

Project description

run pipe

Welcome to Petaly! petaly_favicon_small.png

Petaly is an open-source ETL (Extract, Transform, Load) tool created by and for data people!
Our mission is to simplify data movement and transformation across different data platforms with a tool that truly understands the needs of data professionals.

Why Petaly?

Petaly is designed for seamless data exchange, starting with support for PostgreSQL, MySQL, and CSV formats. Our goal is to expand and integrate additional open-source technologies, making it easier to connect and transfer data across various systems effortlessly. Petaly is user-friendly and does not require any programming knowledge; you can set up data pipelines simply by configuring them in YAML format, making it ready to use right after installation.

Important

This is an Alpha version of the Petaly project!

Getting Started

  • Explore the Documentation: [UNDER CONSTRUCTION] Check out our documentation to get started with installation, configuration, and best practices for using Petaly.
  • Join the Community: [UNDER CONSTRUCTION] Connect with fellow contributors, share your experiences, and get support in our community channels.
  • Contribute: We’re continuously improving Petaly, and your feedback and contributions are invaluable. Check out our Contributing Guide to see how you can get involved.

Tool Features

In the current version Petaly provides extract and load data between following endpoints:

  • CSV
  • MySQL (tested version 8.0)
  • PostgresQL (tested version 16)

Requirements:

  • Python 3.10 - 3.12

Tested on

Petaly was tested on:

OS:

  • MacOS 14.6
  • Ubuntu 22.04.3 LTS

It's possible that the tool will work with other operating systems and other databases and python versions. It just hasn't been tested yet.

Installation

1. Install with pip

$ mkdir petaly
$ cd petaly
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip3 install petaly

1.a Alternatively, download and install from GitHub

$ git clone https://github.com/petaly-labs/petaly.git
$ cd petaly
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip3 install -r requirements.txt
$ cd src/

# Installation step completed

2. Init config file and workspace

# Check petaly installation
$ python3 -m petaly --help

# Init petaly config file
$ python -m petaly init -c /YOUR_PATH_TO_PETALY_CONFIG_DIR/petaly.ini

# After the config file is created use it with [-c] argument
$ python -m petaly init -c /YOUR_PATH_TO_PETALY_CONFIG_DIR/petaly.ini

# To skip the [-c] argument, set the environment variable PETALY_CONFIG_DIR
$ export PETALY_CONFIG_DIR=/YOUR_PATH_TO_PETALY_CONFIG_DIR

$ vi petaly.ini
# Edit the petaly.ini file and define three different folders for: pipelines, logs and output
[workspace_config]
pipeline_dir_path= /YOUR_FULL_PATH_FOR_PIPELINES
logs_dir_path= /YOUR_FULL_PATH_FOR_LOGS
output_dir_path= /YOUR_FULL_PATH_FOR_OUTPUT
...

# Init workspace
$ python3 -m petaly init --workspace -c /YOUR_PATH_TO_PETALY_CONFIG_DIR/petaly.ini

3. Init a pipeline

# Run the following command and follow the wizard steps to initialize a pipeline my_pipeline
# No changes will be made to the target endpoint at this point.
$ python3 -m petaly init -p my_pipeline

4. Run the pipeline

# Now you can run the pipeline my_pipeline and load data from the specified source. 
# Note that it will make changes, re/create tables in the target endpoint (database or folders)
$ python3 -m petaly run -p my_pipeline

To learn more about pipeline configuration parameters, use the following tutorial - Pipeline Explained

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

petaly-0.0.5.post0.tar.gz (46.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

petaly-0.0.5.post0-py3-none-any.whl (70.0 kB view details)

Uploaded Python 3

File details

Details for the file petaly-0.0.5.post0.tar.gz.

File metadata

  • Download URL: petaly-0.0.5.post0.tar.gz
  • Upload date:
  • Size: 46.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for petaly-0.0.5.post0.tar.gz
Algorithm Hash digest
SHA256 b3d2e242acbdf3ec3fcbcacbd13625f774ed520e111ab51f52a9d85efaf93fdc
MD5 8ccd83243cb3911e8d80959ee7dedeef
BLAKE2b-256 cbbb67a8095356f525eb5c7dc93f1736e98c41560623fc3045a1919807ad7aa2

See more details on using hashes here.

File details

Details for the file petaly-0.0.5.post0-py3-none-any.whl.

File metadata

  • Download URL: petaly-0.0.5.post0-py3-none-any.whl
  • Upload date:
  • Size: 70.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for petaly-0.0.5.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 c70993eeb2c06c4217379f15a6a1636b0a381ee6693e8b7ecc6d71eadca42ea5
MD5 c56ad879a810511861d0056d07ede4e2
BLAKE2b-256 a2d7d3bd3eb9b2ea7b487c259a8d293d2245108bfff583c27a72f60c4f3c1790

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page