No project description provided
Project description
SimpleAPI
SimpleAPI is Flask like API framework (Practice) for building RESTful web services in Python.
Features
- Lightweight and fast
- Easy to set up and use
- Supports JSON responses
Installation
To install SimpleAPI, use pip:
pip install simpleapi
Usage
Here is an example of how to use SimpleAPI to create a simple web service:
from simpleapi import SimpleAPI
app = SimpleAPI()
@app.get('/hello')
def hello_world(request):
return {'message': 'Hello, world!'}
if __name__ == '__main__':
app.run()
Running the Example
Save the above code to a file, for example app.py, and run it:
python app.py
You can then access the API at http://localhost:8000/hello and you should see the following JSON response:
{
"message": "Hello, world!"
}
Documentation
For more detailed documentation, please refer to the official documentation.
License
SimpleAPI is licensed under the MIT License. See the LICENSE file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simpleapi_kkr-0.1.0.tar.gz.
File metadata
- Download URL: simpleapi_kkr-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99ba68b60732b408e611538e9a7c5ce8e703db731787ee9ed1f74bebb995ffbb
|
|
| MD5 |
b25d8a19aa4244fbba7bfd34491da293
|
|
| BLAKE2b-256 |
611c85c88a64befc74225c9d254add1d5403dee2a9418c03b8c06fc50f56105e
|
File details
Details for the file simpleapi_kkr-0.1.0-py3-none-any.whl.
File metadata
- Download URL: simpleapi_kkr-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5deb94bbbc0d6596f768dcc160d104d647dcd0dbfdf5c4fb94e3cc0315c148ff
|
|
| MD5 |
7c798319dcb43a6db1f88d792fa5a5ff
|
|
| BLAKE2b-256 |
6fa31ec9c13bc495bfcbb36d8e099c421e6d34dc76e5cab7543c93dfc3870fe3
|