Thư viện chuẩn Python YAML

%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
  - 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
...

YAML có trong thư viện chuẩn Python không?

Tuy nhiên, cũng có một số nhược điểm khi sử dụng YAML với Python. YAML không phải là một phần của thư viện Python chuẩn , trong khi XML và JSON là.

Thư viện YAML Python là gì?

YAML là định dạng tuần tự hóa dữ liệu được thiết kế để con người có thể đọc được và tương tác với các ngôn ngữ kịch bản . PyYAML là trình phân tích cú pháp và trình phát YAML cho Python. PyYAML có YAML 1 hoàn chỉnh. 1, hỗ trợ Unicode, hỗ trợ dưa chua, API tiện ích mở rộng có khả năng và thông báo lỗi hợp lý.

Python có đi kèm với YAML không?

Tuy nhiên, Python thiếu hỗ trợ tích hợp cho định dạng dữ liệu YAML , thường được sử dụng để cấu hình và tuần tự hóa, mặc dù có sự tương đồng rõ ràng giữa hai định dạng này .

Làm cách nào để nhập mô-đun YAML bằng Python?

Xin chào @kartik, .
Bạn có thể thử tính năng tìm kiếm trong pip. $ pip tìm kiếm yaml. .
Bây giờ bạn đã biết một tên gói cụ thể, bạn có thể cài đặt nó. $ pip cài đặt pyyaml

Chủ Đề