Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/adhamsalama/simpleapi

A Python web framework.
https://github.com/adhamsalama/simpleapi

api python rest-api wsgi-framework

Last synced: about 1 month ago
JSON representation

A Python web framework.

Awesome Lists containing this project

README

        

# SimpleAPI

![banner](https://i.imgur.com/Q3kFiKf.png)
SimpleAPI is a minimalistic, unopinionated web framework for Python, inspired by FastAPI & Flask.

SimpleAPI is a WSGI compliant framework.

This is a hobby project made for educational purposes because I want to try learning writing a web server framework.

So, this is obviously not meant for production environments.

Development of SimpleAPI is tracked at [this](https://github.com/users/adhamsalama/projects/1) GitHub project.

## Installation

`pip install simplestapi`

## Usage

An example of using SimpleAPI:

Copy the following code to a file called `app.py`

```python
from simpleapi import SimpleAPI

app = SimpleAPI()

@app.get("/hello")
def hello():
return "Hello, world!"
```

Run it with `gunicorn app:app`

More examples can be found in [tests](./tests)

## Documentation

[https://adhamsalama.github.io/simpleapi](https://adhamsalama.github.io/simpleapi)

---

![django_kofta](./docs/assets/django_kofta.png)