Skip to main content

pyvert is a tool to convert a filesystem directory structure to and from YAML

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvert-0.4.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file pyvert-0.4.tar.gz.

File metadata

  • Download URL: pyvert-0.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyvert-0.4.tar.gz
Algorithm Hash digest
SHA256 aba0bfdfd8266b12b8ef75faf097abde2dc8691026b0a34d01a21f387fb50500
MD5 23d1522191aeba817372dee04ed75444
BLAKE2b-256 eec20c9a0cb2e7c2c6a4e1d69993116ffe96ba83b5c786347679eb6569b6b2e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page