semvec/pypi-packages huggingface dataset:
airdf 0.0.5
常用插件

## base_handler -- tornado handler 基类

>主要提供参数检查，并初始化get、post、delete、option等方法

## plugins -- 插件集合

#### 1. `OrmClient` -- Sqlalchemy管理器

>支持类别：Mysql、Sqlserver、Postgresql。\_\_enter__ 方法返回session 对象


#### 2. `MongoClient` -- MongoDB管理器

>MongoDB 连接管理器

#### 3. `RedisClient` -- Redis管理器

>Redis管理器，重写push、set（支持自定义文件夹）、get、delete方法

#### 4. `LocalFaker` -- 随机数据生成工具

>基于Faker，提供姓名、地址、邮箱、银行、公司、职业、md5、bool、密码、手机、身份证生成工具

#### 5. `AlchemyEncoder` -- sqlalchemy 模型转字典
>sqlalchemy 模型转字典，特殊类型处理类，使用方式
    json.dumps(dict, cls=AlchemyEncoder)

#### 6.`CryptoHelper` -- 加密工具

>提供md5加密、aes加密、aes解密

#### 7.`Tools` -- 常用工具汇总
>1. `get_birth_from`
>2. `make_captcha`
>3. `transform_unix`
>4. `transfrom_datetime`
>5. `make_logger`
>6. `get_excel_data`
>7. `save_xls`
>8. `excel_color`
django-simple-apis 0.1.1
A non-intrusive component that can help you quickly create APIs.
Requires Python: >=3.7,<4.0

# Django Simple API

A non-intrusive component that can help you quickly create APIs.

## Quick Start

### Install

Download and install from github:

```
pip install git+https://github.com/Django-Simple-API/django-simple-api.git@setup.py
```

Or from coding mirror in China:

```
pip install git+https://e.coding.net/aber/github/django-simple-api.git@setup.py
```

### Configure

Add django-simple-api to your `INSTALLED_APPS` in settings:

```python
INSTALLED_APPS = [
    ...,
    "django_simple_api",
]
```

Register the middleware to your `MIDDLEWARE` in settings:

```python
MIDDLEWARE = [
    ...,
    "django_simple_api.middleware.SimpleApiMiddleware",
]
```

Add the url of ***django-simple-api*** to your urls.py:

```python
# urls.py

from django.urls import include, path
from django.conf import settings

# Your urls
urlpatterns = [
    ...
]

# Simple API urls, should only run in a test environment.
if settings.DEBUG:
    urlpatterns += [
        # generate documentation
        path("docs/", include("django_simple_api.urls"))
    ]
```

### Complete the first example

Define your url:

```python
# your urls.py

from django.urls import path
from yourviews import JustTest


urlpatterns = [
    ...,
    path("/path/<int:id>/", JustTest.as_view()),
]
```

Define your view:

```python
# your views.py

from django.views import View
from django.http.response import HttpResponse

from django_simple_api import Query


class JustTest(View):
    def get(self, request, id: int = Query()):
        return HttpResponse(id)
```

> To generate the document, you must declare the parameters according to the  rules of ***Simple API*** (like the example above).
>
> Click [Declare parameters](https://django-simple-api.aber.sh/declare-parameters/) to see how to declare parameters.

### Access interface document

After the above configuration, you can start your server and access the interface documentation now.

If your service is running locally, you can visit [http://127.0.0.1:8000/docs/](http://127.0.0.1:8000/docs/) to view your documentation.

## More

For more tutorials, see [Django Simple API](https://django-simple-api.aber.sh/).