Pyvert is a tool to convert a filesystem directory structure to and from YAML. Comes in useful for development when a directory of test files and folders is desired.
Modules
For converting a directory to a dict, use convert_dir:
>>> from pyvert import convert_dir
>>> foo = convert_dir.to_dict("/path/to/directory")
>>> type(foo)
<type 'dict'>
Scripts
From command line, generate a YAML file of a given directory:
$ dir2yaml /path/to/foobar
Dictionary written to foobar.yaml
Also works in reverse:
$ yaml2dir foobar.yaml
Directory created at /path/to/foobar
Installation
To install Pyvert, simply:
$ pip install pyvert
Release files for pyvert 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyvert-0.4.tar.gz | 2.9 kB | Details |
Release files / pyvert-0.4.tar.gz
| Download URL | pyvert-0.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aba0bfdfd8266b12b8ef75faf097abde2dc8691026b0a34d01a21f387fb50500
|
|
BLAKE2b-256 checksum How to use checksums |
eec20c9a0cb2e7c2c6a4e1d69993116ffe96ba83b5c786347679eb6569b6b2e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |