PK! qextractini/__init__.py__version__ = '0.1.0' PK!>extractini/console.pyimport configparser import click import sys @click.command() @click.argument('configfile', type=click.File('rb')) @click.argument('section') @click.argument('option') @click.option('-e', '--encoding', default='utf-8') def extract_from_inifile(configfile, section, option, encoding): # click opens a file ready to be read so # read the configfile into a config parser # with the specified encoding try: config = configparser.ConfigParser() config.read_string(configfile.read().decode(encoding)) result = config.get(section, option) click.echo(result) except configparser.Error as e: # If we get an error opening the file then # print it to stderr click.echo('Error: {}'.format(e), err=True) sys.exit() PK!Hh4F+extractini-1.0.0.dist-info/entry_points.txtN+I/N.,()J()JL.˴E0ʬBiE@̜T..PK!ڠ"extractini-1.0.0.dist-info/LICENSECopyright 2018 Matt Magin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.PK!HRST extractini-1.0.0.dist-info/WHEEL A н#J;/"d&F]xzw>@Zpy3F ]n2H%_60{8&baPa>PK!HN"#extractini-1.0.0.dist-info/METADATAQn0+JĂR@F*,骱*M }X띙{A1y&tOh(Ȗ]Un-uFBt'۲"pZ v\wKY)ȗ/sA6Hc=Y_cd{l%dڴMaZب57)$%t׃ZVd  fuݞ]O?ʻң1 hFoNm?g+g+Fr!Pȇt2ԣxPK!HY~-`-!extractini-1.0.0.dist-info/RECORD}Ms0}K¢ >Ҋ(&SiM@B}qnWΙ9e:#?(]v36nx>Cn2ƣx ۜBL  Y?[ jQȄ:ϴPRMꖈWqz,PE{Jextractini/console.pyPK!Hh4F+extractini-1.0.0.dist-info/entry_points.txtPK!ڠ" extractini-1.0.0.dist-info/LICENSEPK!HRST fextractini-1.0.0.dist-info/WHEELPK!HN"#extractini-1.0.0.dist-info/METADATAPK!HY~-`-!P extractini-1.0.0.dist-info/RECORDPK