chocs-1.6.1
1.6.1
1.6.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0b0
1.0.0
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.0
0.7.0
0.6.0
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.9b0
0.3.8b0
0.3.7b0
0.3.6b0
0.3.5b0
0.3.4b0
0.3.3b0
0.3.2b0
0.3.1b0
0.3.13b0
0.3.12b0
0.3.11b0
0.3.10b0
0.3.0b0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.19.0
0.18.4
0.18.3
0.18.2
0.18.1
0.18.0
0.17.1
0.17.0
0.16.1
0.16.0
0.15.0
0.14.0
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.0
0.11.0
0.10.0
0.1.1
0.1.0
1.6.1
1.6.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0b0
1.0.0
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.0
0.7.0
0.6.0
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.9b0
0.3.8b0
0.3.7b0
0.3.6b0
0.3.5b0
0.3.4b0
0.3.3b0
0.3.2b0
0.3.1b0
0.3.13b0
0.3.12b0
0.3.11b0
0.3.10b0
0.3.0b0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.19.0
0.18.4
0.18.3
0.18.2
0.18.1
0.18.0
0.17.1
0.17.0
0.16.1
0.16.0
0.15.0
0.14.0
0.13.4
0.13.3
0.13.2
0.13.1
0.13.0
0.12.0
0.11.0
0.10.0
0.1.1
0.1.0
توضیحات
Lightweight and powerful WSGI/AWS lambda framework for rapid building rest applications.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chocs-1.6.1 |
| نام | chocs |
| نسخه کتابخانه | 1.6.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dawid Kraczkowski |
| ایمیل نویسنده | dawid.kraczkowski@gmail.com |
| آدرس صفحه اصلی | https://github.com/kodemore/chocs |
| آدرس اینترنتی | https://pypi.org/project/chocs/ |
| مجوز | MIT |
<img align="right" width=300 src="https://github.com/kodemore/chocs/raw/master/chocs.png">
# Chocs <br>[](https://pypi.org/project/chocs/)   [](https://codecov.io/gh/kodemore/chocs) [](https://codeclimate.com/github/kodemore/chocs/maintainability)
Chocs is a modern HTTP framework for building AWS HTTP API/REST API and WSGI compatible applications.
Chocs aims to be small, expressive, and robust.
It provides an elegant API for writing fault-proof, extensible microservices.
## Features
- AWS Serverless integration
- Elegant and easy API
- No additional bloat like built-in template engines, session handlers, etc.
- Compatible with all WSGI servers
- Loosely coupled components which can be used separately
- Multipart body parsing
- Graceful error handling
- HTTP middleware support
- Fast routing
- Middleware packages to simplify daily tasks
## Installation
```
pip install chocs
```
or with poetry
```
poetry add chocs
```
## Quick start
```python
import chocs
http = chocs.Application()
@http.get("/hello/{name}")
def hello(request: chocs.HttpRequest) -> chocs.HttpResponse:
return chocs.HttpResponse(f"Hello {request.path_parameters.get('name')}!")
chocs.serve(http)
```
> Keep in mind that the `chocs.serve()` function is using the `bjoern` package, so make sure you included it in your project
> dependencies before using it. You are able to use any WSGI compatible server.
## Available middlewares
### OpenAPI Integration middleware
Allows integrating OpenAPI documentation into your codebase, providing automating request validation based
on your OpenAPI spec. More details are available in the [chocs-openapi repository](https://github.com/kodemore/chocs-openapi).
### ParsedBody middleware
Parsed body middleware helps to convert json/yaml request payloads into dataclass, this not only makes your
daily tasks easier but increases readability of your code and contract. More details are available in the [chocs-parsed-body repository](https://github.com/kodemore/chocs-parsed-body).
# Documentation
For usage and detailed documentation please visit our [wiki page](https://github.com/kodemore/chocs/wiki)
نیازمندی
| مقدار | نام |
|---|---|
| >=5.3.1,<7.0.0 | pyyaml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl chocs-1.6.1:
pip install chocs-1.6.1.whl
نصب پکیج tar.gz chocs-1.6.1:
pip install chocs-1.6.1.tar.gz