A fast YAML parser for Python.
- Python ≥ 3.10
- Rust ≥ 1.63
git clone https://github.com/MINGtoMING/fastyaml.git
cd fastyaml
pip install maturin
maturin develop --release
pip install fastyaml
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)
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.