https://github.com/aweirddev/pagable
A Python web framework for direct client-side interactions without having to learn Javascript.
https://github.com/aweirddev/pagable
Last synced: 12 months ago
JSON representation
A Python web framework for direct client-side interactions without having to learn Javascript.
- Host: GitHub
- URL: https://github.com/aweirddev/pagable
- Owner: AWeirdDev
- License: mit
- Created: 2023-10-15T07:41:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T13:09:05.000Z (over 2 years ago)
- Last Synced: 2025-03-18T05:45:23.631Z (about 1 year ago)
- Language: Python
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pagable (WIP)
A Python web framework for direct client-side interactions without having to learn Javascript.
**[We're looking for contributors](https://discord.gg/pRWgjYJa3v)**


## ◆ Python x Frontend
Pagable is designed for developers who love Python, but aren't a fan of Javascript. Pagable solved it all.
Want to show a message box to the user on the client-side from Python? Just use the `alert()` API out of the box. No extra configeration needed. It just works.

***
## ◆ Markdown Pages
Want to host static pages instead? We've got your back. Just write some Markdown, and you've got yourself a page with CSS styling!
Additionally, Pagable also supports frontmatters, so you can add extra configerations such as `title`, `theme`, and more with ease!
We're planning to add "scripts" so that say, a button is being triggered, you can handle it using Python.

***
## ▲ Getting Started
Enough of the features! I want the CONTENT!
To install and run:
```shell
$ git clone https://github.com/AWeirdScratcher/pagable
$ cd pagable
$ python -m pagable create .
created app ('.')
$ python3 main.py
```
Simple Python page example:
```python
from pagable import html
async def handle():
return [
html.h1("Welcome!"),
html.p([
"This page is amazing, isn't it? ",
html.a("Click me!", href="https://google.com")
]),
]
```
> Note: This project is still a WIP. If you wish to contribute and help me build this project, please [Contact Me](https://discord.gg/pRWgjYJa3v)
***
This project was made for fun, so it might not be the best idea to put this in production.
Additional security reviews are pending (and welcomed).