j0ack / pybeeryaml Goto Github PK
View Code? Open in Web Editor NEWmirrored from https://git.joakode.fr/pybeeryaml
Home Page: http://docs.joakode.fr/pybeeryaml/
License: GNU General Public License v3.0
mirrored from https://git.joakode.fr/pybeeryaml
Home Page: http://docs.joakode.fr/pybeeryaml/
License: GNU General Public License v3.0
Create setup files for the lib
I trying to understand how to pass in a dict for the style, instead of just the name, but I can't figure it out. If I pass in style={"name": "American Wheat or Rye Beer", "category": "Light Hybrid Beer", ...etc...}
I get: KeyError: 'style'
from this line:
pybeeryaml/pybeeryaml/recipe.py
Line 61 in 277f427
As far as I can tell, these two lines make it impossible to pass in a complex style, because if style is a dict, then it tries to load in style from **data["style"]
(Pythonic style, that should probably be **kwargs
!) parameters, but it won't be there because it was passed in as a named parameter.
Instead I believe it should be this:
if isinstance(self.style, dict):
self.style = Style(**style)
Add docs for the project
For now we create recipes from YAML but we can not do that backward.
We need to be able to create recipes and then exports it to a YAML file or get its YAML representation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.