New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pybeeryaml

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pybeeryaml

PyBeerYAML A YAML format parser for beer storage

  • 1.3
  • PyPI
  • Socket score

Maintainers
1

pybeeryaml

|version| |license| |drone|

A YAML format parser for beer storage

Parse a recipe from a YAML file and returns an object containing ingredients and metadata. Supports export to beerxml <http://beerxml.com/>_ format.

Installation

.. code:: sh

pip install pybeeryaml

Usage

.. code:: python

from pybeeryaml import Recipe

path_to_beeryaml_file = "/tmp/my_recipe.yml"

# create recipe from file
recipe = Recipe.from_file(path_to_beeryaml_file)

# or from string
with open(path_to_beeryaml_file, "r") as mybeer:
    recipe2 = Recipe.from_yaml(mybeer.read())

assert recipe == recipe2  # True

# convert to beerxml format
recipexml = recipe.to_xml()

Testing

Unit tests can be run with pytest <https://docs.pytest.org/en/latest/>_.

.. code:: sh

py.test tests

.. |version| image:: https://img.shields.io/pypi/v/pybeeryaml.svg .. |license| image:: https://img.shields.io/github/license/j0ack/pybeeryaml.svg .. |drone| image:: https://drone.joakode.fr/api/badges/joack/pybeeryaml/status.svg

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