another-0.2.2
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | another-0.2.2 |
| نام | another |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Vahid Al |
| ایمیل نویسنده | thevahidal@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/another/ |
| مجوز | - |
# Another
"Another" Python backend framework, for fun.
[](https://justforfunnoreally.dev)
## Installation
```bash
pip install another
```
You also need an ASGI server, such as [Uvicorn](https://github.com/encode/uvicorn) or [Granian](https://github.com/emmett-framework/granian).
```bash
pip install uvicorn
# or
pip install granian
```
## Usage
Create a `main.py` file and copy-paste the following snippet into it.
```python
from another import Another, Status, Request, Response
app = Another()
@app.get("/hello")
def hellow_another(req: Request):
return Response({
"message": "Hello!",
"extra": req.query
}, status=Status.HTTP_200_OK)
```
And then run the server:
```bash
uvicorn main:app
```
Now open this link [localhost:8000/hello?first_name=Mads&last_name=Mikkelsen](http://localhost:8000/hello?first_name=Mads&last_name=Mikkelsen) in your browser.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl another-0.2.2:
pip install another-0.2.2.whl
نصب پکیج tar.gz another-0.2.2:
pip install another-0.2.2.tar.gz