YAML .yml All In One
YAML .yml
All In One
YAML: YAML Ain't Markup Language
https://yaml.org/spec/1.2/spec.html
https://github.com/yaml/www.yaml.org
%YAML 1.2
---
YAML: YAML Ain't Markup Language™
What It Is:
YAML is a human-friendly data serialization
language for all programming languages.
YAML Resources:
YAML Specifications:
- YAML 1.2:
- Revision 1.2.2 # Oct 1, 2021 *New*
- Revision 1.2.1 # Oct 1, 2009
- Revision 1.2.0 # Jul 21, 2009
- YAML 1.1
- YAML 1.0
YAML Matrix Chat: '#chat:yaml.io' # Our New Group Chat Room!
YAML IRC Channel: libera.chat#yaml # The old chat
YAML News: twitter.com/yamlnews
YAML Mailing List: yaml-core # Obsolete, but historical
YAML on GitHub: # github.com/yaml/
YAML Specs: yaml-spec/
YAML 1.2 Grammar: yaml-grammar/
YAML Test Suite: yaml-test-suite/
YAML Issues: issues/
YAML Reference Parsers:
- Generated Reference Parsers
- YPaste Interactive Parser
YAML Test Matrix: matrix.yaml.io
YAML Frameworks and Tools:
C/C++:
- libfyaml # "C" YAML 1.2 processor (YTS)
- libyaml # "C" Fast YAML 1.1 (YTS)
- libcyaml # YAML de/serialization of C data (using libyaml)
- yaml-cpp # C++ YAML 1.2 implementation
Crystal:
- YAML # YAML 1.1 from the standard library
C#/.NET:
- YamlDotNet # YAML 1.1/(1.2) library + serialization (YTS)
- yaml-net # YAML 1.1 library
D:
- D-YAML # YAML 1.1 library w/ official community support (YTS)
Dart:
- yaml # YAML package for Dart
Delphi:
- Neslib.Yaml # YAML 1.1 Delphi binding to libyaml (YTS)
Elixir:
- yaml-elixir # YAML support for the Elixir language
Erlang:
- yamerl # YAML support for the Erlang language
Golang:
- Go-yaml # YAML support for the Go language
- Go-gypsy # Simplified YAML parser written in Go
- goccy/go-yaml # YAML 1.2 implementation in pure Go
Haskell:
- HsYAML # YAML 1.2 implementation in pure Haskell (YTS)
- YamlReference # Haskell 1.2 reference parser
- yaml # YAML 1.1 Haskell framework (based on libyaml)
Java:
- SnakeYAML Engine # Java 8+ / YAML 1.2
- SnakeYAML # Java 5 / YAML 1.1
- YamlBeans # To/from JavaBeans. YAML 1.0/1.1
- eo-yaml # YAML 1.2 for Java 8. Packaged as a Module (Java 9+)
- Chronicle-Wire # Java Implementation
JavaScript:
- yaml # JavaScript parser/stringifier (YAML 1.2, 1.1) (YTS)
- js-yaml # Native PyYAML port to JavaScript (Demo)
Nim:
- NimYAML # YAML 1.2 implementation in pure Nim (YTS)
OCaml:
- ocaml-yaml # YAML 1.1/1.2 via libyaml bindings
- ocaml-syck # YAML 1.0 via syck bindings
Perl Modules:
- YAML # Pure Perl YAML 1.0 Module
- YAML::XS # Binding to libyaml
- YAML::Syck # Binding to libsyck
- YAML::Tiny # A small YAML subset module
- YAML::PP # A YAML 1.2/1.1 processor (YTS)
PHP:
- The Yaml Component # Symfony Yaml Component (YAML 1.2)
- php-yaml # libyaml bindings (YAML 1.1)
- syck # syck bindings (YAML 1.0)
- spyc # yaml loader/dumper (YAML 1.?)
Python:
- PyYAML # YAML 1.1, pure python and libyaml binding
- ruamel.yaml # YAML 1.2, update of PyYAML; comments round-trip
- PySyck # YAML 1.0, syck binding
- strictyaml # Restricted YAML subset
R:
- R YAML # libyaml wrapper
Raku:
- YAMLish # Port of YAMLish to Raku
- YAML::Parser::LibYAML # LibYAML wrapper
Ruby:
- psych # libyaml wrapper (in Ruby core for 1.9.2)
- RbYaml # YAML 1.1 (PyYAML Port)
- yaml4r # YAML 1.0, standard library syck binding
Rust:
- yaml-rust # YAML 1.2 implementation in pure Rust
- serde-yaml # YAML de/serialization of structs
Shell:
- parse_yaml # Simple YAML parser for Bash using sed and awk
- shyaml # Read YAML files - jq style
Swift:
- Yams # libyaml wrapper
Others:
- yamlvim # YAML dumper/emitter in pure vimscript
Related Projects:
- Rx # Multi-Language Schemata Tool for JSON/YAML
- Kwalify # Ruby Schemata Tool for JSON/YAML
- pyKwalify # Python Schemata Tool for JSON/YAML
- yatools.net # Visual Studio editor for YAML
- JSON # Official JSON Website
- Pygments # Python language Syntax Colorizer /w YAML support
- yamllint # YAML Linter based on PyYAML
- YAML Diff # Semantically compare two YAML documents
- JSON Schema # YAML-compliant JSON standard for data validation
# Edit This Website
...
learning YAML
https://learnxinyminutes.com/docs/yaml/
https://www.codeproject.com/Articles/1214409/Learn-YAML-in-five-minutes
YAML tools
Convert JSON to YAML online
Convert YAML to JSON online
https://www.json2yaml.com/convert-yaml-to-json
demos
$GITHUB_ENV
&github.env
# This is a basic workflow to help you get started with Actions
name: Tesla_Crawler
# Controls when the action will run.
on:
# Triggers the workflow on push events but only for the main branch
push:
branches: [ main ]
schedule:
- cron: '00 08 * * *'
# https://crontab.guru/#00_08_*_*_*
# Runs at 08:00 on everyday
# 分、时、日、月、周
# https://www.cnblogs.com/xgqfrms/p/15384401.html
# - cron: '00 08,20 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
# hello-job:
# # The type of runner that the job will run on
# runs-on: ubuntu-latest
# # Steps represent a sequence of tasks that will be executed as part of the job
# steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# - uses: actions/checkout@v2
# # Runs a single command using the runners shell
# - name: Run a one-line script
# run: echo Hello, world!
# crawler job
tesla-job:
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
runs-on: ubuntu-latest
steps:
- name: 'Checkout codes'
uses: actions/checkout@v3
# 自定义 env, $GITHUB_ENV => ${{github.env.REPORT_DATE}}
- name: 'set Date'
run: echo "REPORT_DATE=$(TZ=':Asia/Shanghai' date '+%Y-%m-%d %T')" >> $GITHUB_ENV
- name: 'Get Date'
run: echo ${{github.env.REPORT_DATE}}
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
- name: 'install package'
run: npm i
- name: 'begin'
run: echo "crawling ...✅"
- name: '自动爬取'
run: node ./auto-update.js
- name: 'end'
run: echo "finshed 🎉"
# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: update tesla data
https://github.com/web-full-stack/cyclic-express-server/blob/main/.github/workflows/crawler.yml
(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!
refs
http://www.ruanyifeng.com/blog/2016/07/yaml.html
https://github.com/web-full-stack/cyclic-express-server/issues/6
©xgqfrms 2012-2021
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/12819855.html
未经授权禁止转载,违者必究!