semvec/pypi-packages huggingface dataset:
mdm-model-generator 0.1.13
This library allows us to generate django models and drf serializers using an OpenAPI schema
License: MIT
Requires Python: ~=3.6
Keywords: mdm,models,serializers,generator

# mdm_model_generator

This library allows us to generate django models and drf serializers using an OpenAPI schema.

# HowTo Use #
```shell
pip install mdm_model_generator

python -m mdm_model_generator {open_api_path.json} {destination}
python -m mdm_model_generator {open_api_path.yaml} {destination}
```
    
    
As an example:
```shell
python -m mdm_model_generator schema.esb.json base_dir
```

or 

```shell
python -m mdm_model_generator /home/user/schema.esb.json /home/user/base_dir
```

This command creates base models and serializers based on its models into the directory provided.

Then you can use them to define models and serializers in your Django+DRF application.

models.py:

```python
from mdm_models import define_models

from base_dir import base_models


define_models(['Model1', 'Model2', ...], base_models, locals())
```

serializers.py:

```python
from mdm_models import define_serializers

from base_dir import base_serializers
from . import models


define_serializers(['Model1', 'Model2', ...], base_serializers, locals(), models)
```

After that you can use them:

```python
import pydoc
model_1 = pydoc.locate('{django_app}.models.Model1')
model_2 = pydoc.locate('{django_app}.models.Model2')
...
serializer_1 = pydoc.locate('{django_app}.serializers.Model1Serializer')
serializer_2 = pydoc.locate('{django_app}.serializers.Model2Serializer')
```
beancount-bot 1.2.1
A telegram bot designed for Beancount
License: MIT
Requires Python: >=3.6.0

# beancount_bot

适用于 Beancount 记账的 Telegram 机器人

![GitHub](https://img.shields.io/github/license/kaaass/beancount_bot)
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/kaaass/beancount_bot?color=green&label=version)
![PyPI](https://img.shields.io/pypi/v/beancount_bot)
[![Test and Lint](https://github.com/kaaass/beancount_bot/actions/workflows/test-with-lint.yml/badge.svg?branch=master)](https://github.com/kaaass/beancount_bot/actions/workflows/test-with-lint.yml)

## Features

- 支持简易鉴权
- 支持交易创建、撤回
- 内建自由且强大的模板语法，适用于各种记账需求
- 允许通过插件扩展记账语法
- 支持定时任务
- 支持多个用户同时记账，设置不同的标签

## 安装

### 通过 Pip (Pypi)

```shell
pip install beancount_bot
```

### 通过 Docker

- [kaaass/beancount_bot_docker](https://github.com/kaaass/beancount_bot_docker)：beancount_bot 的 Docker 镜像
- [kaaass/beancount_bot_costflow_docker](https://github.com/kaaass/beancount_bot_costflow_docker)：包含 beancount_bot 与 Costflow 插件的 Docker 镜像

## 使用

1. 下载示例配置文件 `beancount_bot.example.yml`、`template.example.yml`
2. 修改后保存为 `beancount_bot.yml`、`template.yml`
3. 执行 `beancount_bot`

## 推荐插件

1. [kaaass/beancount_bot_costflow](https://github.com/kaaass/beancount_bot_costflow)：支持 Costflow 语法

欢迎在 Issue 推荐优秀插件。

## 插件开发

请查阅项目 Wiki。

## Roadmap

1. [x] ~~支持定时备份~~ 使用定时任务支持
2. [ ] ~~支持账单导入~~ 暂时搁置
3. [ ] i18n support
4. [ ] 完善对多人记账的支持