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/pixyverse/pixy.git
-
cd pixy
-
create/install deps in a virtualenv environment and activate it.
make venv source .venv/bin/activate
-
lint and typecheck
make lint make pie
-
Run Tests
# Run Tests make test
-
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.7.tar.gz
(38.1 kB
view hashes)
Built Distribution
Close
Hashes for pixyverse.pixy-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ba3adc9996d9cd0c77809950f645429d59ff33691b6e41bc5189fa4127a7ebc |
|
MD5 | d72ee8aa1b7c331ac610e84581c636b5 |
|
BLAKE2b-256 | a84769d504fa7b0637c1a117317794c8a29e3821e61cd1c22a9390a8d437c2fd |