Confiture Documentation
class confiture schema types Regex(regex, error=”value doesn’t match”, **kwargs) A string based type validated against a regex class confiture schema types NamedRegex(regex, error=”value doesn’t match”, **kwargs) A string based type like Regex but returning named groups in dict class confiture schema types RegexPattern(flags=0
Confiture de cédrat - irp-cdnmultiscreensitecom
Confiture de cédrat Préparation Cuisson Ingrédients 2 kg de cédrat Maxima L (bio) 2 L d'eau 3,5 kg de sucre 2 citrons Description de la recette Couper les cédrats en fines tranches Ajouter l'eau et laisser reposer 24 heures Faire cuire pendant 1 H le jour suivant Ajouter le sucre et le jus des citrons
Confiture de mots de doux: la recette
Confiture de mots doux de la part de (étiquette à coller sur le pot) (étiquette à coller sur le pot) Confiture de mots doux de la part de (étiquette à coller sur le pot) Étape 2 : décoration du pot de confiture Confiture de mots de doux: la recette
CHEESE BOARD
strawberry confiture, toasted hazelnut, petite lettuce, shaved vegetables, fines herbs, red ribbon sorrel, black pepper brioche burgundy escargots • 15 red wine, garlic-herb butter, puff pastry onion soup gratinée • 14 aged comté cheese, country bread endive salad • 14 candied pecan, apple, fourme d’ ambert, cider vinaigrette
JAM - Food and Agriculture Organization
JAM 1 - General information Classification - JAM - A solid gel made from the pulp of a single fruit or mixed fruits The fruit content must be at
Bassine à confiture cuivre martelé monture bronze diamètre 36 cm
Bassine à confiture cuivre martelé monture bronze diamètre 40 cm Bassine à confiture cuivre martelé monture bronze diamètre 40 cm Ref 219340 de la collection M'Passion Mauviel1830 décline pour le plaisir de tous une large gamme de bassines à confitures, récipient large et profond qui va vous permettre de réaliser des
Bases de données FAO/INFOODS
Base de données FAO/INFOODS sur la densité Version 2 0 (2015) Document élaboré par: U Ruth Charrondiere, David Haytowitz et Barbara Stadlmayr FAO 2015 Prière de citer comme suit le présent document dans les bibliographies:
Fiche derecommandations alimentaires - CREGG
sous toutes leurs formes : miel, confiture, glace, pâtisserie, fruits secs, fruits confits, chocolat, biscuits fourrés, les céréales sucrées pour petit-déjeuner Pour le cholestérol Pour les triglycérides Aliments à limiter car riches en cholestérol : – le beurre : 10 g cru par jour ; – les œufs : 2 par semaine maximum ;
[PDF] chimie des confitures
[PDF] tableau pectine fruit
[PDF] ph confiture
[PDF] toute action collective constitue-t-elle un mouvement social ?
[PDF] en quoi les conflits sociaux peuvent-ils être considérés comme une forme de pathologie ec1
[PDF] illustrez par trois exemples la diversité des conflits sociaux
[PDF] conflictualite sociale dissertation
[PDF] les étapes d'un conflit
[PDF] types de conflits au travail
[PDF] communication et gestion des conflits
[PDF] gestion des conflits en entreprise exposé
[PDF] gestion des conflits en entreprise pdf
[PDF] gestion des conflits en entreprise ppt
[PDF] les conflits en entreprise
Confiture Documentation
Release 2.1
Antoine Millet
October 12, 2016
Contents
1 Features3
2 Example5
3 Contents7
3.1 Schema validation API
73.2 Tips 'n Tricks
144 Indices and tables19i
iiConfiture Documentation, Release 2.1
Confiture (formerly Dotconf) is an advanced configuration parsing library which can be used by developers who are
limited with standard ConfigParser library. Confiture is also shipped with a schema validator which can be used to
check the content of your application"s configuration file before to start.Contents1Confiture Documentation, Release 2.1
2Contents
CHAPTER1Features
Simple configuration format with sections
T yping:
-Typing in the syntax ("42" is a string, 42 a number) -Four types availables: string, boolean, number or listV alidationof configuration using a schema
Configuration includes 3
Confiture Documentation, Release 2.1
4Chapter 1. Features
CHAPTER2Example
This is an example of what you can do with Confiture: from confiture.schema.containers import many, once from confiture.schema.containers import Section, Value from confiture.schema.types import Boolean, Integer, Float, String # Schema definition: classUserSection (Section):
passwordValue(String())
_meta repeat : many, unique True classPathSection (Section):
rate_limitValue(Float(), default
0 enable_authValue(Boolean(), default
False userUserSection()
classVirtualHostSection (Section):
enable_sslValue(Boolean(), default
False pathPathSection()
_meta repeat : many, unique True classMyWebserverConfiguration (Section):
daemonValue(Boolean(), default
False pidfileValue(String(), default
None interfaceValue(String(), default
127.0.0.1:80
interface_sslValue(String(), default
127.0.0.1:443
hostVirtualHostSection() Then, to use the parser:
>>>conf= """ ...daemon = yes ...pidfile =" /var/run/myapp.pid" ...interface =" 0.0.0.0:80" ...interface_ssl =" 0.0.0.0:443" ...host" example.org"{ ...path" /"{ ...rate_limit = 30 ...5Confiture Documentation, Release 2.1
...host" protected.example.org"{ ...enable_ssl = yes ...path" /files"{ ...enable_auth = yes ...user" foo"{ ...password =" bar" from confiture import Confiture from myconfschema import MyWebserverConfiguration >>>parsed_conf= Confiture(conf, schema =MyWebserverConfiguration()).parse() print "daemon:", parsed_conf.get("daemon") True for vhostinparsed_conf.subsections("host"): print vhost.args if vhost.get("enable_ssl"): print "SSL enabled " for pathinvhost.subsections("path"): print "" + path .args if path.get("enable_auth"): print "Following users can access to this directory: " for userinpath.subsections("user"): print "- " + user .args example.org protected.example.orgSSL enabled
/filesFollowing users can access to this directory:
- foo6Chapter 2. ExampleCHAPTER3Contents
3.1Sc hemav alidationAPI
3.1.1Container s
Section container
A section container used to store a mapping between name and other containers.Parameters
**kwargs- parameters used to override metaTypically, this class has to be derived to specify accepted key for the section:classMySection (Section):
a_key Value(Integer()) A section can also be defined imperatively: >>>section= MySection() >>>section.add("another_key", Value(Integer()))MetadataA section can hold some metadata, for example to define arguments schema or how many time the section can appear.
This metadata can be defined in several different ways:In the _metadict of a section definition (metadata are inherited from parent classes):classMySection (Section):
_meta unique True }•In the metadict of a section object:>>>section= MySection() >>>section.meta["unique"]= True •In k eywordparameters on instance initialization: >>>section= MySection(unique =True)7Confiture Documentation, Release 2.1
Accepted metadata
argsTheargsmetadata (defaultNone) store the container used to validate the section argument (value between
the section name and the opening brace). You can use any type of container but aSection. If the metadata is set toNone(the default), argument for the section is forbidden.Example:classMySection (Section):
_meta args: Value(String())}Note:This meta can"t be defined for the__top__section.uniqueTheuniquemetadata (defaultFalse) can be used to prevent multiple section to have the same arguments.
For example if you have a section with this kind of schema:classMySubSection (Section): _meta args : Value(String()), unique True classMySection (Section):
sub MySubSection() And a configuration file with this content: sub "foo" {...} sub "bar" {...}sub "foo" {...}The last "foo" section will throw a validation error because an another "sub" section already exists with this argument.
Note:This meta can"t be defined for the__top__section.repeatTherepeatmetadata (default to(1, 1)) allow to define how many time the section can appear. The first
value is the minimum number of times, and the second the maximum number of time.Values must be non-negative integers, and the first must be smaller or equal to the second. The second value can be
set to None to express the infinite value.Examples:
•(1, 1): the section must appear once •(1, 2): the section must appear one or two times •(0, 1): the section is optionnal and can appear once •(0, None): the section is optionnal and can appear an infinite number of times •(1, None): the section mut appear at least once Some shortcut are available in theconfiture.schema.containersmodule: •once->(1, 1) •many->(0, None)8Chapter 3. ContentsConfiture Documentation, Release 2.1
Note:This meta can"t be defined for the__top__section.allow_unknownTheallow_unknowmetadata (default toFalse) allow the user to set value which are not
defined in the section schema. Unknown data are then available in the validated section.