Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastyaml

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastyaml

A fast YAML parser

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc