An open API service indexing awesome lists of open source software.

https://github.com/easyhutu/pyyaml-plus


https://github.com/easyhutu/pyyaml-plus

python yaml yml

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# pyyaml-plus

夸文件引用工具,支持跨文件引用变量

文件a.yml:
```
import:
- b.yml

usr2:
name: b
psw: 456
aslw:
<<: *usr1
```
文件b.yml:

```
import:
- eg_folder/c.yml

usr1: &usr1
<<: *usr3
```

引用:

```
from yamlplus import load

with open('a.yml') as f:
result = load(f.read())
print(result)

```