Skip to content

A fast YAML parser for Python

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

MINGtoMING/fastyaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast YAML

A fast YAML parser for Python.

Dependency

  • Python ≥ 3.10
  • Rust ≥ 1.63

Installation

1. Build from source

git clone https://github.com/MINGtoMING/fastyaml.git
cd fastyaml
pip install maturin
maturin develop --release

2. install from PyPI

pip install fastyaml

Usage

import fastyaml

if __name__ == '__main__':
    with open("path/to/read.yaml", 'r') as fp:
        tmp = fastyaml.load(fp)
    
    with open("path/to/write.yaml", 'w') as fp:
        fastyaml.dump(tmp, fp)

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A fast YAML parser for Python

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published