https://github.com/natanfeitosa/lespy
A small and robust python micro framework for building simple and solid web apps.
https://github.com/natanfeitosa/lespy
apps framework lespy pypi python python3 web wsgi-framework
Last synced: 2 months ago
JSON representation
A small and robust python micro framework for building simple and solid web apps.
- Host: GitHub
- URL: https://github.com/natanfeitosa/lespy
- Owner: natanfeitosa
- License: mit
- Created: 2022-04-27T22:18:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T22:31:06.000Z (over 1 year ago)
- Last Synced: 2025-10-25T08:38:33.304Z (5 months ago)
- Topics: apps, framework, lespy, pypi, python, python3, web, wsgi-framework
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LESPY
[](https://github.com/natanfeitosa/lespy/stargazers)
[](https://github.com/natanfeitosa/lespy/actions)
[](https://github.com/natanfeitosa/lespy/blob/main/LICENSE)
[](https://pypi.org/project/lespy)
[](https://pypi.org/project/lespy/)
[](https://pypi.python.org/pypi/lespy/)

[](https://www.codetriage.com/natanfeitosa/lespy)
## Overview
A small and robust micro Python framework for building simple and solid web apps.
## Quick start
> DEMO: You can see a working examples [here](./examples).
### Instalation
Via PIP (recommended):
```bash
pip install lespy
```
Via Poetry:
```bash
poetry add lespy
```
Via GitHub:
```bash
git clone https://github.com/natanfeitosa/lespy.git && cd lespy && pip install .
```
### Creating a simple app
In your `main.py` file import the `App` class from `lespy`
```python
from lespy import App
```
Now instantiate the App class and pass it a name
```python
app = App('first_app')
```
Now we need to create a route with the GET method
```python
@app.get('/')
def home(request):
return 'Hello world'
```
Yes, it's that simple.
### Running the app
**_With the simple server included:_**
> This is a simple implementation, do not use for production environment.
First import the `run` method
```python
from lespy import run
```
Now let's use the method passing the App instance
```python
if __name__ == '__main__':
run(app)
```
Now, just run our python file, and if everything went well, just access in .
**_With Gunicorn:_**
```bash
$ gunicorn main:app
```