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.1.dist-info/entry_points.txtN+I/N.,()J()JL.˴E0ʬBiE@̜T..PK!ڠ"extractini-1.0.1.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!HlŃTT extractini-1.0.1.dist-info/WHEEL A н#J@Z|Jmqvh&#hڭw!Ѭ"J˫( } %PK!HgJ #extractini-1.0.1.dist-info/METADATAU]o6}ׯ4k;M1ŖcaeHJ(bZ-nTRc' Lϣنik%d9w`kjQ Yz!`T"FsQrbUi]h)QrNm- b%"L_Bȴh0 5k?7Rg.R^*h5:5ޙى|DnaţqƉߍ/PF//OCg3Vph40ȫZ>9 ~afEi]̌~d.~T}~(Rt/z;|LJkaRR}^hth_+8't8juVhIuSsr u^ x86ٍL[Ã8K6: ڸ .XXA*˭UVv3]?d&s4@ JY;yhX*QVi4rƒ32hUN *|DMIkUR &ˉ;mA* ټS > =H*+W=~ZmN?2 Eb\OO?6gwVT&g4$fۿZNmU-LzJ 4y0YJflJ^oh`..Mƙ|2Js.χp8>]o_BYg8'ʤ{Wmpu-ۧS& JZs1*؊0[]D{PtfTKn9Qxͼf]ˈЬ G @I-{;>&3վLӻ,y]e:2^@Z MƬL*|` ך<0Jon'Vs;C /97fpNG -l4*Qn+DƖe 6oe6 8{TȍؚܦU5\G>RK[H{\q<m!n?iS["as^dm$6tWZ?r6x]D*3L]Z~f'|WjZ5xt%3G8Mȧ 8_?3/GwA2 oF-{ -`12ˆ߯UqeL& o9S ^wpym|v3ܓ;^X)mZQ#/K7>`=W.M3vfP7#Jcxꧬ+Q=sӭ ,PIUɾIS+3Y/q0kgDi<$d oNsatP (o=I`@}FWnk4aoV9;cI?#Yx/Cw.gR9|qնi-_wnvq>im@Ԧx>/PK! qextractini/__init__.pyPK!>Jextractini/console.pyPK!Hh4F+extractini-1.0.1.dist-info/entry_points.txtPK!ڠ" extractini-1.0.1.dist-info/LICENSEPK!HlŃTT fextractini-1.0.1.dist-info/WHEELPK!HgJ #extractini-1.0.1.dist-info/METADATAPK!HDC^.!extractini-1.0.1.dist-info/RECORDPK