Mage is a notebook for building and deploying data pipelines.
Project description
Intro
Mage is an open-source tool for building and deploying data pipelines.
Here is a sample data pipeline defined across 3 files:
# data_loaders/load_data_from_file.py
import pandas as pd
@data_loader
def load_data():
return pd.read_csv('default_repo/titanic.csv')
# transformers/select_columns.py
@transformer
def transform_df(df, *args):
return df[['Age', 'Fare', 'Survived']]
# data_exporters/export_to_file.py
@data_exporter
def export_data(df) -> None:
df.to_csv('default_repo/titanic_transformed.csv')
What the data pipeline looks like in the UI:
New? We recommend reading about blocks and learning from a hands-on tutorial.
Table of contents
🏃♀️ Quick start
You can install Mage using Docker or pip
:
Using Docker
Create a new project and launch tool (change demo_project
to any other name if you want):
docker run -it -p 6789:6789 -v $(pwd):/home/src \
mageai/mageai mage start demo_project
Open http://localhost:6789 in your browser and build a pipeline.
Follow the guide if you want to use PySpark kernel in your notebook.
Using pip
1. Install Mage
pip install mage-ai
For additional packages (e.g. spark
, postgres
, etc), please see Installing extra packages.
If you run into errors, please see Install errors.
2. Create new project and launch tool (change demo_project
to any other name if you want):
mage start demo_project
Open http://localhost:6789 in your browser and build a pipeline.
🎮 Demo video (2 min)
Click the image to play video
👩🏫 Tutorials
- Train model on Titanic dataset
- Load data from API, transform it, and export it to PostgreSQL
- Integrate Mage into an existing Airflow project
🔮 Features
Check out an overview of features here.
📚 Documentation
Read more docs here.
🙋♀️ Contributing
We welcome all contributions to Mage; from small UI enhancements to brand new cleaning actions. We love seeing community members level up and give people power-ups!
Check out the 🎁 contributing guide to get started by setting up your development environment and exploring the code base.
Got questions? Live chat with us in Slack
Anything you contribute, the Mage team and community will maintain. We’re in it together!
🧙 Community
We love the community of Magers (/ˈmājər/
);
a group of mages who help each other realize their full potential!
To live chat with the Mage team and community, please join the free Mage Slack channel.
For real-time news and fun memes, check out the Mage Twitter.
To report bugs or add your awesome code for others to enjoy, visit GitHub.
🪪 License
See the LICENSE file for licensing information.
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 mage-ai-0.3.2.tar.gz
.
File metadata
- Download URL: mage-ai-0.3.2.tar.gz
- Upload date:
- Size: 6.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8e226f0c15932378a4105e362ac42321063d377def0327fb3e0331848c8abf3 |
|
MD5 | 157292a757e196213597affdb1379e4f |
|
BLAKE2b-256 | c1979b822dc6730e1c886f0f3bd3fcedf33411a67df698fcc4f9d910c9c3d1b0 |
File details
Details for the file mage_ai-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: mage_ai-0.3.2-py3-none-any.whl
- Upload date:
- Size: 6.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67e36eac97f1af9d63fd33c7c96aed2156e08c595f775d5644f5c7a326cfe009 |
|
MD5 | eae7c7e1f23741e8d9d611a4b4daa10e |
|
BLAKE2b-256 | c4c3013a5e21de3f871a6f2b7b60950294c2e57681a9e7a66d69c79138574d64 |