morph-data 0.0.1rc5
pip install morph-data==0.0.1rc5
Released:
Morph is a python-centric full-stack framework for building and deploying data apps.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: Morph
- Requires: Python <4.0, >=3.9
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Programming Language
- Topic
Project description
Features
Morph is a python-centric full-stack framework for building and deploying data apps.
- Fast to start 🚀 - Allows you to get up and running with just three commands.
- Deploy and operate 🌐 - Easily deploy your data apps and manage them in production. Managed cloud is available for user authentication and secure data connection.
- No HTML/CSS knowledge required🔰 - With Markdown-based syntax and pre-made components, you can create flexible, visually appealing designs without writing a single line of HTML or CSS.
- Customizable 🛠️ - Chain Python and SQL for advanced data workflows. Custom CSS and custom React components are available for building tailored UI.
Quick start
- Install morph
pip install morph-data
- Create a new project
morph new
- Start dev server
morph serve
- Visit
http://localhsot:9002
on browser.
How it works
Understanding the concept of developing a data app in Morph will let you do a flying start.
- Develop the data processing in Python and give it an alias.
- Create an .mdx file. Each .mdx file becomes a page of your app.
- Place the component in the MDX file and specify the alias to connect to.
.
├─ pages
│ └─ index.mdx
├─ python
│ └─ closing_deals_vis.py
└─ sql
└─ closing_deals.sql
Building Data Apps
A little example
- Create each files in
sql
,python
andpages
directories.
SQL: Using DuckDB to read CSV file.
{{
config(
name = "example_data",
connection = "DUCKDB"
)
}}
select
*
from
read_csv("example.csv")
Python: Using Plotly to create a chart.
import plotly.express as px
import morph
from morph import MorphGlobalContext
@morph.func
@morph.load_data("example_data")
def example_chart(context: MorphGlobalContext):
df = context.data["example_data"].groupby("state").sum(["population"]).reset_index()
fig = px.bar(df, x="state", y="population")
return fig
MDX: Define the page and connect the data.
export const title = "Starter App"
# Starter App
Morph is a full-stack framework for building data apps using Python, SQL and MDX.
## Data
<Grid cols="2">
<div>
<DataTable loadData="example_data" height={300} />
</div>
<div>
<Embed loadData="example_chart" height={300} />
</div>
</Grid>
- Run
morph serve
to open the app!
Documentation
Visit https://docs.morph-data.io for more documentation.
Lisence
Morph is Apache 2.0 licensed.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: Morph
- Requires: Python <4.0, >=3.9
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Programming Language
- Topic
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 morph_data-0.0.1rc5.tar.gz
.
File metadata
- Download URL: morph_data-0.0.1rc5.tar.gz
- Upload date:
- Size: 195.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.4 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11b5ae455c2453e11cd85245696794b831198045556096d83b6d6acab44fba8f |
|
MD5 | 1499cc048d3f535016a3b581c3c36c89 |
|
BLAKE2b-256 | e075ab88273e96619b3c2e9ba4a630f4640794404de8d450c48096fea0750e66 |
File details
Details for the file morph_data-0.0.1rc5-py3-none-any.whl
.
File metadata
- Download URL: morph_data-0.0.1rc5-py3-none-any.whl
- Upload date:
- Size: 243.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.9.4 Darwin/23.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01068f8230c9aa083624180a00ef5e7930143b440fcfe27fce7099ec5a52650b |
|
MD5 | c10de8fe8e434745f6f1169d02bf9d1c |
|
BLAKE2b-256 | 54b5bdfb3da8ecb00f21021901fbf3844df68aadbc64e1948b3ebc93529f8c46 |