An open API service indexing awesome lists of open source software.

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.

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)**

![Get Started](https://img.shields.io/badge/▲%20Get%20Started%20→-20B2AA?style=for-the-badge)
![GitHub issues](https://img.shields.io/badge/⬤%20Contribute%20→-2f768e?style=for-the-badge)





Simple Pagable app in Python

## ◆ 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.

![Try Pagable](https://img.shields.io/badge/◆%20Try%20Pagable%20→-20B2AA?style=for-the-badge)

***





Simple Pagable page but in Markdown

## ◆ 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.

![Try Pagable for MD](https://img.shields.io/badge/◆%20Try%20Pagable%20For%20MD%20→-2f768e?style=for-the-badge)


***

## ▲ 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).