GithubHelp home page GithubHelp logo

xavierjiezou / pyyaml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yaml/pyyaml

0.0 0.0 0.0 730 KB

Canonical source repository for PyYAML

License: MIT License

Python 98.42% C 0.07% Makefile 0.13% PowerShell 0.81% Shell 0.56%

pyyaml's Introduction

PyYAML

The next generation YAML parser and emitter for Python.

Install

pip install pyyaml

or

git clone https://github.com/yaml/pyyaml.git
cd pyyaml
python setup.py install

Note: By default, the setup.py script checks whether LibYAML is installed and if so, builds and installs LibYAML bindings. To skip the check and force installation of LibYAML bindings, use the option --with-libyaml: python setup.py --with-libyaml install. To disable the check and skip building and installing LibYAML bindings, use --without-libyaml: python setup.py --without-libyaml install.

Usage

When LibYAML bindings are installed, you may use fast LibYAML-based parser and emitter as follows:

>>> import yaml
>>> yaml.load(stream, Loader=yaml.CLoader)
>>> yaml.dump(data, Dumper=yaml.CDumper)

If you don't trust the input stream, you should use:

>>> import yaml
>>> yaml.safe_load(stream)

PyYAML includes a comprehensive test suite. To run the tests, type python setup.py test.

Links

License

PyYAML is released under the MIT license. See the file LICENSE for more details.

pyyaml's People

Contributors

xitology avatar perlpunk avatar ingydotnet avatar nitzmahone avatar xavierjiezou avatar jdufresne avatar peterkmurphy avatar dstufft avatar cclauss avatar alex avatar hugovk avatar anishathalye avatar akaidiot avatar ovv avatar scorphus avatar psphicas avatar ret2libc avatar geyser avatar timgates42 avatar bondarevts avatar hsmtkk avatar ossdev07 avatar basicdays avatar sblondon avatar jwilk avatar sigmavirus24 avatar fchapoton avatar the-compiler avatar filipsalomonsson avatar dwightguth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.