| configyperig Configuratiebestand lezen in Python Gemakkelijk gemaakt |
Download nu |
configyperig Rangschikking & Samenvatting
- Vergunning:
- The Apache License 2.0
- Naam uitgever:
- John Keyes
- Uitgever website:
- http://code.google.com/u/johnkeyes/
configyperig Tags
configyperig Beschrijving
Configuratiebestand lezen in Python gemakkelijk gemaakt ConfyPy is een python-tool die het lezen van configuratiebestanden heel eenvoudig maakt. Met ondersteuning voor look-ahead en kijk achter variabele interpolatie, native types zoals int, float, dict en lijst Configypy moeten voldoen aan uw configuratie-bestand parseren behoeften .EXAMPLE: van ConfigPy importconfigcfg = "" "nums = NANDO = "NANDO" NAMEN = Planets = {'Planet': '$ {red_planet}'} red_planet = 'mars'num_items = 5item_cost = 1.99 "" "config = config (CFG) Print Sum (config.nummers) # Prints 10PRINT CONFIG.PLANETS # Prints" Mars "config.namen.sort () Print config.namen # prints print config.num_items * config.item_cost # prints 9.95 Vereisten: · Python
configyperig Gerelateerde software