A YAML validator for Programming Historian lessons.

Related tags

Configuration phyaml
Overview

status

phyaml

A simple YAML validator for Programming Historian lessons.

USAGE:

python3 ph-lesson-yaml-validator.py lesson.md

The script automatically detects the lesson type (either an original lesson or a translation) and selects the schema file accordingly:

  • original-lesson-schema.yaml
  • translated-lesson-schema.yaml

If the user prefers so, they can also specify another schema file with the argument --schemafile, followed by the file name, e.g.:

python3 ph-lesson-yaml-validator.py lesson.md --schemafile anotherschema.yaml

That's all. If you run the script and something is missing, you will see a message similar to this one:

abstract: Required field missing
doi: Required field missing
You might also like...
 A app for managing lessons with Django
A app for managing lessons with Django

Course Notes A app for managing lessons with Django Some Ideas

Script to download some free japanese lessons in portuguse from NHK
Script to download some free japanese lessons in portuguse from NHK

Nihongo_nhk This is a script to download some free japanese lessons in portuguese from NHK. It can be executed by installing the packages with: pip in

OLDBot (Online Lessons Discord Bot)

This program is designed to facilitate online lessons. With this you don't need to get up early. Just config and watch the program resolve itself. It automatically enters to the lesson at the specified start time, mutes itself and enters a text that we set.

API spec validator and OpenAPI document generator for Python web frameworks.

API spec validator and OpenAPI document generator for Python web frameworks.

Advanced Number Validator Using telnyx api
Advanced Number Validator Using telnyx api

Number Validator Python v1.0.0 Number Validator Using telnyx api DISCLAIMER This Tool is only for educational purposes You'll be responsible yourself

An application to see if your Ethereum staking validator(s) are members of the current or next post-Altair sync committees.

eth_sync_committee.py Since the Altair upgrade, 512 validators are randomly chosen every 256 epochs (~27 hours) to form a sync committee. Validators i

Yahoo Mail Validator For Python

Validator Validator helps to know if the mail is valid or not Installation Install The libraries pip install requests bs4 colorama Usage Create a new

Get informed when your DeFI Earn CRO Validator is jailed or changes the commission rate.

CRO-DeFi-Warner Intro CRO-DeFi-Warner can be used to notify you when a validator changes the commission rate or gets jailed. It can also notify you wh

Address Validator (Bitcoin & Monero)

The Bitcoin address is an identifier of 26-35 alphanumeric characters, beginning with the number 1, 3 or bc1. 0, O, I, l are removed to avoid visual a

A modular dynamical-systems model of Ethereum's validator economics.
A modular dynamical-systems model of Ethereum's validator economics.

CADLabs Ethereum Economic Model A modular dynamical-systems model of Ethereum's validator economics, based on the open-source Python library radCAD, a

Disposable email validator for python

disposable-email-validator installation pip install disposable-email-validator

Python Module for Tabular Datasets in XLS, CSV, JSON, YAML, &c.

Tablib: format-agnostic tabular dataset library _____ ______ ___________ ______ __ /_______ ____ /_ ___ /___(_)___ /_ _ __/_ __ `/__ _

A command-line tool and Python library and Pytest plugin for automated testing of RESTful APIs, with a simple, concise and flexible YAML-based syntax

1.0 Release See here for details about breaking changes with the upcoming 1.0 release: https://github.com/taverntesting/tavern/issues/495 Easier API t

pytest plugin that let you automate actions and assertions with test metrics reporting executing plain YAML files
pytest plugin that let you automate actions and assertions with test metrics reporting executing plain YAML files

pytest-play pytest-play is a codeless, generic, pluggable and extensible automation tool, not necessarily test automation only, based on the fantastic

Allows including an action inside another action (by preprocessing the Yaml file). This is how composite actions should have worked.

actions-includes Allows including an action inside another action (by preprocessing the Yaml file). Instead of using uses or run in your action step,

Transparently load variables from environment or JSON/YAML file.

A thin wrapper over Pydantic's settings management. Allows you to define configuration variables and load them from environment or JSON/YAML file. Also generates initial configuration files and documentation for your defined configuration.

Lumen provides a framework for visual analytics, which allows users to build data-driven dashboards from a simple yaml specification
Lumen provides a framework for visual analytics, which allows users to build data-driven dashboards from a simple yaml specification

Lumen project provides a framework for visual analytics, which allows users to build data-driven dashboards from a simple yaml specification

Pydantic-ish YAML configuration management.
Pydantic-ish YAML configuration management.

Pydantic-ish YAML configuration management.

A simple tool that updates your pubspec.yaml file, of a Flutter project, without altering the structure of your file.
A simple tool that updates your pubspec.yaml file, of a Flutter project, without altering the structure of your file.

A simple tool that updates your pubspec.yaml file, of a Flutter project, without altering the structure of your file.

Comments
  • pendientes

    pendientes

    Cosas por hacer/decidir

    Convertir esto en un script que se pueda ejecutar en el terminal

    Los argumentos podrían ser la ruta al archivo de la lección y el tipo de schema con el que validar.

    Definir tipos de schemas

    Por lo pronto, pienso en cinco. Tres muy habituales y dos excepcionales:

    1. Versión inicial de la lección para subir a GitHub. Tengo que chequear con el technical team cuáles son los campos mínimos para que la lección se previsualice en ph-submissions (abriré un issue para eso).
    2. Versión para publicar de una lección original (lo que hay ahora en original-lesson-schema.yaml).
    3. Versión para publicar de una traducción (lo que hay ahora en el archivo translated-lesson-schema.yaml).
    4. EXCEPCIONAL: Lección original que es parte de una serie (original-lesson-schema.yaml + campos que están en el archivo series-extra-fields.yaml).
    5. EXCEPCIONAL: Traducción que es parte de una serie (translated-lesson-schema.yaml + campos que están en el archivo series-extra-fields.yaml).
    6. MUY EXCEPCIONAL: las lecciones que usan fórmulas requieren el campo matjax: TRUE. Solo hay 4 publicadas.

    ¿Chequear delimitación del encabezado YAML?

    El código hasta este momento asume que el yaml está bien delimitado con "---". Habría que evaluar si vale la pena incorporar código que revise eso, o asumimos que ese es un paso previo mínimo que hace quien edita la lección para subirla. Solo sería necesario para la validación inicial.

    opened by rivaquiroga 1
Owner
Riva Quiroga
PhD Student in Linguistics, Programming Historian Editor, RLadies Santiago & RLadies Valparaíso co-founder, LatinR Chair, @R4DS_es organizer
Riva Quiroga
Pydantic-ish YAML configuration management.

Pydantic-ish YAML configuration management.

Dribia Data Research 18 Oct 27, 2022
Simple dataclasses configuration management for Python with hocon/json/yaml/properties/env-vars/dict support.

Simple dataclasses configuration management for Python with hocon/json/yaml/properties/env-vars/dict support, based on awesome and lightweight pyhocon parsing library.

Teo Stocco 62 Dec 23, 2022
Apt2sbom python package generates SPDX or YAML files

Welcome to apt2sbom This package contains a library and a CLI tool to convert a Ubuntu software package inventory to a software bill of materials. You

Eliot Lear 15 Nov 13, 2022
Dag-bakery - Dag Bakery enables the capability to define Airflow DAGs via YAML.

DAG Bakery - WIP ?? dag-bakery aims to simplify our DAG development by removing all the boilerplate and duplicated code when defining multiple DAG cro

Typeform 2 Jan 8, 2022
Python YAML Environment (ymlenv) by Problem Fighter Library

In the name of God, the Most Gracious, the Most Merciful. PF-PY-YMLEnv Documentation Install and update using pip: pip install -U PF-PY-YMLEnv Please

Problem Fighter 2 Jan 20, 2022
A helper for organizing Django project settings by relying on well established programming patterns.

django-configurations django-configurations eases Django project configuration by relying on the composability of Python classes. It extends the notio

Jazzband 955 Jan 5, 2023
Type-safe YAML parser and validator.

StrictYAML StrictYAML is a type-safe YAML parser that parses and validates a restricted subset of the YAML specification. Priorities: Beautiful API Re

Colm O'Connor 1.2k Jan 4, 2023
Yamale (ya·ma·lē) - A schema and validator for YAML.

Yamale (ya·ma·lē) ⚠️ Ensure that your schema definitions come from internal or trusted sources. Yamale does not protect against intentionally maliciou

23andMe 534 Dec 21, 2022
This repository has the lessons of the gamming programming course

learning-python-game-programming This repository has the lessons of the gamming programming course Na faculdade, estou fazendo a disciplina de program

Mateus Faustino 1 Nov 16, 2021
Driving lessons made simpler. Custom scheduling API built with Python.

NOTE This is a mirror of a GitLab repository. Dryvo Dryvo is a unique solution for the driving lessons industry. Our aim is to save the teacher’s time

Adam Goldschmidt 595 Dec 5, 2022