Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wcooley/ppyaml
Pretty-print YAML
https://github.com/wcooley/ppyaml
Last synced: 16 days ago
JSON representation
Pretty-print YAML
- Host: GitHub
- URL: https://github.com/wcooley/ppyaml
- Owner: wcooley
- License: gpl-3.0
- Created: 2014-01-11T05:17:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-22T18:32:08.000Z (almost 9 years ago)
- Last Synced: 2024-10-18T23:16:03.442Z (2 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ppyaml
## Summary
Pretty-print YAML by dumping it in one of several other formats.
## Details
Support the following formats out of the box:
* native Python (pprint)
* JSON
* re-dump as YAMLWith the addition of `dicttoxml`, will also dump as a sort of generic XML.
Unfortunately, `dicttoxml` generates non-validating XML if dict keys contain
special characters such as ":".## TODO
* Find maybe a better XML formatter than `dicttoxml`?
* Properly package for distutils.
* Figure out why two CTRL-Ds seem to be necessary to close standard input.
Workaround: `cat | ppyaml`.## Author
* Author: Wil Cooley
* Repository: https://github.com/wcooley/ppyaml## Copyright and License
Copyright © 2014 Wil Cooley