Giter Site home page Giter Site logo

drgfreeman / yamldash Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 2.0 168 KB

A simple, interactive, web based YAML validator

License: MIT License

Python 99.43% CSS 0.57%
yaml yaml-validator yaml-editor schema-validation plotly-dash dash-bootstrap-components

yamldash's Introduction

YAMLDash

A simple, interactive, web based YAML validator.

Screenshot

The application uses the following Python packages:

The schema validation is performed by first loading both the YAML content and Schema (in YAML format) into Python dictionaries and then using the jsonschema package to validate the dictionary of the YAML content against that of the schema.

Usage

Online instance

An online instance is running at https://apps.urandom.xyz/yaml.

Execution from source

Clone or download the repository, then, from the root of the the repository, install the yamldash package using pip:

$ pip install .[server]

Launch the application server:

$ yamldash

A browser window should open to the application. In not, access the application at the URL indicated in the terminal (usually http://127.0.0.1:8080).

yamldash's People

Contributors

drgfreeman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

yamldash's Issues

YAML and Schema text areas are not persistent

The YAML and Schema text areas are not persistent and their content may be lost if a user refreshes their browser window.

Add session level persistence to ensure the contents of the text areas is not reset when reloading the window.

Browser window does not open on launch (Windows only)

When launching the application on Windows (yamldash.app.run function), no web browser window opens and the message You'll need a new app to open this 127.0.0.1 link is displayed.

Adding the http:// protocol in front of the 127.0.0.1 address in the webbrowser.open() call solves the issue.

webbrowser.open("127.0.0.1:8080", new=2)

Add waitress as optional web server

The application currently uses the Flask built-in server. For better performance, include the waitress wsgi server as an optional dependency. Use waitress if installed, otherwise revert to the Flask built-in server.

YAML and Schema text areas can be too narrow

The default bootstrap container width is small and, in some cases, the YAML and Schema text areas are too narrow for their contents.

Using a fluid container would allow using the full window width.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.