Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/adhamsalama/simpleapi
- Owner: adhamsalama
- License: mit
- Created: 2022-05-20T08:46:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-13T14:57:05.000Z (over 1 year ago)
- Last Synced: 2024-03-14T11:26:49.757Z (9 months ago)
- Topics: api, python, rest-api, wsgi-framework
- Language: Python
- Homepage: https://adhamsalama.github.io/simpleapi
- Size: 2.07 MB
- Stars: 22
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-egypt-opensource - adhamsalama/simpleapi - A minimalistic, unopinionated web framework for Python, inspired by FastAPI & Flask. (for educational purposes) (Projects / Web Frameworks)
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 SimpleAPIapp = 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)