Skip to main content

A Django app for checking the correctness of YAML

Project description

About

“Is it YAML?” is a Django application for checking whether text is YAML (“a human friendly data serialization standard for all programming languages”), or not. Users type and/or copy and paste text and clicks the “Submit” button above. If valid YAML has been entered, the input is presented in canonical form. If not, the application presents an error message.

YAML is just a text format for exchanging data. It exists for cases where XML is too much overhead. I like YAML. I find it more robust in practice than XML (where one missing angle bracket could corrupt a whole file), yet easier to type by hand.

I conjured up “Is it YAML?” while writing a specification for YPath - a language for addressing parts of a YAML document, as XPath does for XML. To do a proper job of things, I had to write YAML example files. However, I sometimes needed to check if the example files are good and proper. “Is it YAML?” gave me a test bed where I can copy-and-paste my examples, and see if they really are YAML.

Installation and Dependencies

Apart from Django, the app depends on PyYAML, a Python parser for YAML. You can get the application from PyPI through the command:

pip install isityaml

Once installed, just add “isityaml” to your INSTALLED_APPS list in settings.py, and add the desired URL in one of the urls.py files.

The HTML template file used to generate HTML has been redesigned to work with the Mezzanine CMS. The redesign removed any explicit references to particular stylesheets found with earlier versions. Feel free to customise: the app is released under a 3 clause BSD license. See LICENSE.txt for more information. If you wish to do any changes, pop over to the GitHub repository for the app.

History

  • 0.1 (August 30th 2011) - Create setup script for files.

  • 0.2 (April 25th 2013) - Try to make a half-decent PyPI package.

  • 0.3 (January 30th 2014) - Updated to be compatible with Django 1.6 and Mezzanine 3.0.

  • 0.4 (February 15th 2014) - Added more error handling and styling to be compatible with Bootstrap.

  • 0.5 (August 13th 2014) - Making error handling more generous.

  • 0.6 (February 28th 2017) - Updated to be compatible with Django 1.10.

  • 0.7 (December 6th 2020) - Run through 2to3 for Python 3 changes.

Project details


Download files

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

Source Distribution

isityaml-0.7.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

isityaml-0.7-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file isityaml-0.7.tar.gz.

File metadata

  • Download URL: isityaml-0.7.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2

File hashes

Hashes for isityaml-0.7.tar.gz
Algorithm Hash digest
SHA256 9962117d9cc9367d39dae917c378fa1c7b2594290ff1ae236d369d1465166f0a
MD5 1d600f43b8d172353e88d6d39bf9c171
BLAKE2b-256 cd28355019773060f4c45144d71b8561cb5c4968fd6af07744697f5396c5ac52

See more details on using hashes here.

File details

Details for the file isityaml-0.7-py3-none-any.whl.

File metadata

  • Download URL: isityaml-0.7-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2

File hashes

Hashes for isityaml-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f19d8c8e0e755766e89503591e0fe58b38dd4825a2598629d7cd23a9ed7d8122
MD5 4df5aae372805ef3391f64922cacd8ef
BLAKE2b-256 d934bb9ef967622b627d64f3daa039d95cc97dd28cb9732b0b999e951649cf8b

See more details on using hashes here.

Supported by

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