forked from wuranxu/pity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add readme_en, add getting started, switch user register from sync to…
… async🎈
- Loading branch information
Showing
9 changed files
with
176 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[中文文档](https://github.com/wuranxu/pity/blob/main/README.md) | ||
|
||
## Getting Started | ||
|
||
1. clone code | ||
|
||
```bash | ||
$ git clone https://github.com/wuranxu/pity | ||
$ cd pity | ||
``` | ||
|
||
2. install dependencies | ||
|
||
```bash | ||
# 可换豆瓣源或者清华源安装依赖 | ||
$ pip install -r requirements.txt | ||
``` | ||
|
||
3. install and start redis | ||
|
||
4. install and start mysql | ||
|
||
5. edit config.py | ||
|
||
edit connection info about redis and mysql | ||
|
||
6. start server | ||
|
||
```bash | ||
$ python main.py | ||
``` | ||
|
||
7. registry | ||
|
||
Fisrt people will be `ADMIN` | ||
|
||
![](https://gitee.com/woodywrx/picture/raw/master/2022-1-2/1641092636428-image.png) | ||
|
||
Sign in and enjoy `pity`! | ||
|
||
## Overview 🖕 | ||
|
||
[Documents 🍚](http://pity.readthedocs.org/) | ||
|
||
[Demo 🍍](http://121.5.2.74/) | ||
|
||
### About pity 😢 | ||
|
||
pity is an auto test tool based on `Python`+`FastApi`+`React` for api test. It's not an absolute production right now. | ||
|
||
### Heart ❤️ | ||
|
||
I hope pity can help someone still uses robotframework or writes script for apitest.pity can help you a lot. | ||
|
||
### Features😊 | ||
|
||
+ [x] 🔥 absolute auth rule, support login with github | ||
|
||
- [x] 🀄 absolute project management | ||
|
||
* [x] 🚴 fast with FastApi | ||
|
||
- [x] 📝 many options for data dependencies, you can make and use data so easy | ||
- [x] 🎨 online http request like postman | ||
- [x] 🍷 global variable for you | ||
- [x] 🐍 redis online | ||
- [x] 🐎 test plan | ||
- [x] 🙈 online database manager | ||
- [x] 📰 beautiful email notification | ||
- [x] 😹 cronjob for case | ||
- [x] 🐧 beautiful test report | ||
|
||
## Comming soon 🙋 | ||
|
||
- [ ] 🐘 Micro Services | ||
- [ ] 🐄 DataFactory for developing data | ||
- [ ] 🐸 support har/jmx to pity case | ||
- [ ] 👍 CI/CD,like pipeline, provide openapi | ||
- [ ] 🌼 notification | ||
- [ ] 🌛 support dubbo/grpc | ||
- [ ] 🐛 yapi | ||
- [ ] 🌽 and so on | ||
|
||
You can open issues to communicate with me, if you like the project, give a star will make me happy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
from pydantic import BaseModel | ||
|
||
from pydantic import BaseModel, validator | ||
|
||
# 都可以为空,为空则不进行更改 | ||
from app.models.schema.base import PityModel | ||
|
||
|
||
class UserUpdateForm(BaseModel): | ||
id: int = None | ||
id: int | ||
name: str = None | ||
email: str = None | ||
role: int = None | ||
is_valid: bool = None | ||
|
||
@validator('id') | ||
def id_not_empty(cls, v): | ||
return PityModel.not_empty(v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters