A package to parse pixy component files which allow you to author components in python
Project description
Pixy
What is Pixy
pixy is a transpiler that transpiles pixy files into regular python code. Pixy files are JSX inspired component description formats that brings markup style declarative language natively embedded in python. Check out it's DESIGN
Example
todo_page = (
<div class_name="TodoList">
<todo_list>
<todo_item status={Status.Completed}>"Remember the milk 🥛"</todo_item>
<todo_item status={Status.Todo}>"Eggs 🥚"</todo_item>
</todo_list>
</div>
)
Development
-
git checkout github.com/versionprime/pixy.git
-
cd pixy
-
create a virtualenv environment and activate it.
python3 -m venv .venv source .venv/bin/activate
-
Install dependencies
pip install ".[dev]"
-
Run Tests
# Run Tests cd src && python -m unittest
-
Example Pixy file
# a.pix comp=<div>"Hello World"</div> print(comp)
Transpile
# Transpile a sample pixy file python -m pixyverse.pixy -p test.pix -o test.py
Known Limitations
Strings within tags always need to be quoted within single or double quotes.
Development Status
Prototype stage. Liable to explode without warning
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
pixyverse_pixy-0.0.6.tar.gz
(37.8 kB
view hashes)
Built Distribution
Close
Hashes for pixyverse.pixy-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63a7081b41e69c0cce36ca8558e5b18f1f540dbc7c243e054b805b8c21cc825b |
|
MD5 | 3e03f1009492472be7cde5ff8eec5701 |
|
BLAKE2b-256 | f126a714383fc450fa04a1454512b843a1a0fb488b30721cbe3f4b67333772d7 |