├── .gitignore ├── .travis.yml ├── CNAME ├── README.md ├── _config.yml ├── build └── lib │ └── minihydra │ ├── __init__.py │ ├── core │ ├── __init__.py │ ├── base.py │ ├── conf.py │ ├── conf_parser.py │ ├── exceptions.py │ ├── mod_maker.py │ ├── modmanager.py │ └── template.py │ ├── dicts │ └── __init__.py │ ├── minihydra.py │ └── mods │ ├── __init__.py │ ├── ftp.py │ ├── ssh.py │ ├── telnet.py │ └── testmod.py ├── dist ├── minihydra-0.5.0-py2.7.egg └── minihydra-0.5.0.tar.gz ├── docs ├── Makefile ├── conf.py ├── index.rst └── make.bat ├── minihydra.egg-info ├── PKG-INFO ├── SOURCES.txt ├── dependency_links.txt ├── not-zip-safe ├── requires.txt └── top_level.txt ├── minihydra ├── __init__.py ├── core │ ├── __init__.py │ ├── base.py │ ├── conf.py │ ├── conf_parser.py │ ├── exceptions.py │ ├── mod_maker.py │ ├── modmanager.py │ └── template.py ├── dicts │ ├── __init__.py │ ├── default_pd.txt │ └── default_un.txt ├── minihydra.conf ├── minihydra.py └── mods │ ├── __init__.py │ ├── ftp.py │ ├── ssh.py │ ├── telnet.py │ └── testmod.py ├── minihydra_console.py ├── py2env ├── bin │ ├── activate │ ├── activate.csh │ ├── activate.fish │ ├── activate_this.py │ ├── easy_install │ ├── easy_install-2.7 │ ├── ipwhois_cli.py │ ├── ipwhois_utils_cli.py │ ├── pip │ ├── pip2 │ ├── pip2.7 │ ├── python │ ├── python-config │ ├── python2 │ ├── python2.7 │ └── wheel ├── include │ └── python2.7 ├── lib │ └── python2.7 │ │ ├── UserDict.py │ │ ├── _abcoll.py │ │ ├── _weakrefset.py │ │ ├── abc.py │ │ ├── codecs.py │ │ ├── config │ │ ├── copy_reg.py │ │ ├── distutils │ │ ├── __init__.py │ │ └── distutils.cfg │ │ ├── encodings │ │ ├── fnmatch.py │ │ ├── genericpath.py │ │ ├── lib-dynload │ │ ├── linecache.py │ │ ├── locale.py │ │ ├── no-global-site-packages.txt │ │ ├── ntpath.py │ │ ├── orig-prefix.txt │ │ ├── os.py │ │ ├── posixpath.py │ │ ├── re.py │ │ ├── site-packages │ │ ├── IPy-0.83.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── IPy.py │ │ ├── appdirs-1.4.3.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── appdirs.py │ │ ├── backports │ │ │ └── configparser │ │ │ │ ├── __init__.py │ │ │ │ └── helpers.py │ │ ├── blessings-1.6.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── blessings │ │ │ ├── __init__.py │ │ │ └── tests.py │ │ ├── cmd2-0.7.0.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── cmd2.py │ │ ├── colorama-0.3.7.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── colorama │ │ │ ├── __init__.py │ │ │ ├── ansi.py │ │ │ ├── ansitowin32.py │ │ │ ├── initialise.py │ │ │ ├── win32.py │ │ │ └── winterm.py │ │ ├── configparser-3.5.0-py2.7-nspkg.pth │ │ ├── configparser-3.5.0.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ ├── namespace_packages.txt │ │ │ └── top_level.txt │ │ ├── configparser.py │ │ ├── dns │ │ │ ├── __init__.py │ │ │ ├── _compat.py │ │ │ ├── dnssec.py │ │ │ ├── e164.py │ │ │ ├── edns.py │ │ │ ├── entropy.py │ │ │ ├── exception.py │ │ │ ├── flags.py │ │ │ ├── grange.py │ │ │ ├── hash.py │ │ │ ├── inet.py │ │ │ ├── ipv4.py │ │ │ ├── ipv6.py │ │ │ ├── message.py │ │ │ ├── name.py │ │ │ ├── namedict.py │ │ │ ├── node.py │ │ │ ├── opcode.py │ │ │ ├── query.py │ │ │ ├── rcode.py │ │ │ ├── rdata.py │ │ │ ├── rdataclass.py │ │ │ ├── rdataset.py │ │ │ ├── rdatatype.py │ │ │ ├── rdtypes │ │ │ │ ├── ANY │ │ │ │ │ ├── AFSDB.py │ │ │ │ │ ├── AVC.py │ │ │ │ │ ├── CAA.py │ │ │ │ │ ├── CDNSKEY.py │ │ │ │ │ ├── CDS.py │ │ │ │ │ ├── CERT.py │ │ │ │ │ ├── CNAME.py │ │ │ │ │ ├── CSYNC.py │ │ │ │ │ ├── DLV.py │ │ │ │ │ ├── DNAME.py │ │ │ │ │ ├── DNSKEY.py │ │ │ │ │ ├── DS.py │ │ │ │ │ ├── EUI48.py │ │ │ │ │ ├── EUI64.py │ │ │ │ │ ├── GPOS.py │ │ │ │ │ ├── HINFO.py │ │ │ │ │ ├── HIP.py │ │ │ │ │ ├── ISDN.py │ │ │ │ │ ├── LOC.py │ │ │ │ │ ├── MX.py │ │ │ │ │ ├── NS.py │ │ │ │ │ ├── NSEC.py │ │ │ │ │ ├── NSEC3.py │ │ │ │ │ ├── NSEC3PARAM.py │ │ │ │ │ ├── PTR.py │ │ │ │ │ ├── RP.py │ │ │ │ │ ├── RRSIG.py │ │ │ │ │ ├── RT.py │ │ │ │ │ ├── SOA.py │ │ │ │ │ ├── SPF.py │ │ │ │ │ ├── SSHFP.py │ │ │ │ │ ├── TLSA.py │ │ │ │ │ ├── TXT.py │ │ │ │ │ ├── URI.py │ │ │ │ │ ├── X25.py │ │ │ │ │ └── __init__.py │ │ │ │ ├── IN │ │ │ │ │ ├── A.py │ │ │ │ │ ├── AAAA.py │ │ │ │ │ ├── APL.py │ │ │ │ │ ├── DHCID.py │ │ │ │ │ ├── IPSECKEY.py │ │ │ │ │ ├── KX.py │ │ │ │ │ ├── NAPTR.py │ │ │ │ │ ├── NSAP.py │ │ │ │ │ ├── NSAP_PTR.py │ │ │ │ │ ├── PX.py │ │ │ │ │ ├── SRV.py │ │ │ │ │ ├── WKS.py │ │ │ │ │ └── __init__.py │ │ │ │ ├── __init__.py │ │ │ │ ├── dnskeybase.py │ │ │ │ ├── dsbase.py │ │ │ │ ├── euibase.py │ │ │ │ ├── mxbase.py │ │ │ │ ├── nsbase.py │ │ │ │ └── txtbase.py │ │ │ ├── renderer.py │ │ │ ├── resolver.py │ │ │ ├── reversename.py │ │ │ ├── rrset.py │ │ │ ├── set.py │ │ │ ├── tokenizer.py │ │ │ ├── tsig.py │ │ │ ├── tsigkeyring.py │ │ │ ├── ttl.py │ │ │ ├── update.py │ │ │ ├── version.py │ │ │ ├── wiredata.py │ │ │ └── zone.py │ │ ├── dnspython-1.15.0.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── LICENSE.txt │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── easy_install.py │ │ ├── g3ar-0.3.6.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── g3ar │ │ │ ├── __init__.py │ │ │ ├── decologger │ │ │ │ ├── __init__.py │ │ │ │ ├── decologger.py │ │ │ │ └── test.py │ │ │ ├── dict_parser │ │ │ │ ├── __init__.py │ │ │ │ ├── dict_parser.py │ │ │ │ ├── dict_parser_mixer.py │ │ │ │ └── test.py │ │ │ ├── taskbulter │ │ │ │ ├── __init__.py │ │ │ │ ├── exceptions.py │ │ │ │ ├── process_task.py │ │ │ │ ├── task_bulter.py │ │ │ │ └── utils_class.py │ │ │ ├── threadutils │ │ │ │ ├── __init__.py │ │ │ │ ├── contractor.py │ │ │ │ └── thread_pool.py │ │ │ └── utils │ │ │ │ ├── __init__.py │ │ │ │ ├── import_utils.py │ │ │ │ ├── inspect_utils.py │ │ │ │ ├── ip_calc_utils.py │ │ │ │ ├── ipwhois │ │ │ │ ├── __init__.py │ │ │ │ ├── exceptions.py │ │ │ │ ├── hr.py │ │ │ │ ├── ipwhois.py │ │ │ │ ├── net.py │ │ │ │ ├── nir.py │ │ │ │ ├── rdap.py │ │ │ │ ├── utils.py │ │ │ │ └── whois.py │ │ │ │ ├── iter_utils.py │ │ │ │ ├── print_utils.py │ │ │ │ ├── pyping │ │ │ │ ├── __init__.py │ │ │ │ ├── isalive.py │ │ │ │ └── ping.py │ │ │ │ ├── queue_utils.py │ │ │ │ ├── thread_utils.py │ │ │ │ └── verify_utils.py │ │ ├── ipaddr-2.1.11.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── ipaddr.py │ │ ├── ipwhois-0.15.1.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── ipwhois │ │ │ ├── __init__.py │ │ │ ├── asn.py │ │ │ ├── data │ │ │ │ ├── iso_3166-1.csv │ │ │ │ └── iso_3166-1_list_en.xml │ │ │ ├── exceptions.py │ │ │ ├── hr.py │ │ │ ├── ipwhois.py │ │ │ ├── net.py │ │ │ ├── nir.py │ │ │ ├── rdap.py │ │ │ ├── utils.py │ │ │ └── whois.py │ │ ├── packaging-16.8.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── packaging │ │ │ ├── __about__.py │ │ │ ├── __init__.py │ │ │ ├── _compat.py │ │ │ ├── _structures.py │ │ │ ├── markers.py │ │ │ ├── requirements.py │ │ │ ├── specifiers.py │ │ │ ├── utils.py │ │ │ └── version.py │ │ ├── pip-9.0.1.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── entry_points.txt │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── pip │ │ │ ├── __init__.py │ │ │ ├── __main__.py │ │ │ ├── _vendor │ │ │ │ ├── __init__.py │ │ │ │ ├── appdirs.py │ │ │ │ ├── cachecontrol │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── _cmd.py │ │ │ │ │ ├── adapter.py │ │ │ │ │ ├── cache.py │ │ │ │ │ ├── caches │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── file_cache.py │ │ │ │ │ │ └── redis_cache.py │ │ │ │ │ ├── compat.py │ │ │ │ │ ├── controller.py │ │ │ │ │ ├── filewrapper.py │ │ │ │ │ ├── heuristics.py │ │ │ │ │ ├── serialize.py │ │ │ │ │ └── wrapper.py │ │ │ │ ├── colorama │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── ansi.py │ │ │ │ │ ├── ansitowin32.py │ │ │ │ │ ├── initialise.py │ │ │ │ │ ├── win32.py │ │ │ │ │ └── winterm.py │ │ │ │ ├── distlib │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── _backport │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── misc.py │ │ │ │ │ │ ├── shutil.py │ │ │ │ │ │ ├── sysconfig.cfg │ │ │ │ │ │ ├── sysconfig.py │ │ │ │ │ │ └── tarfile.py │ │ │ │ │ ├── compat.py │ │ │ │ │ ├── database.py │ │ │ │ │ ├── index.py │ │ │ │ │ ├── locators.py │ │ │ │ │ ├── manifest.py │ │ │ │ │ ├── markers.py │ │ │ │ │ ├── metadata.py │ │ │ │ │ ├── resources.py │ │ │ │ │ ├── scripts.py │ │ │ │ │ ├── t32.exe │ │ │ │ │ ├── t64.exe │ │ │ │ │ ├── util.py │ │ │ │ │ ├── version.py │ │ │ │ │ ├── w32.exe │ │ │ │ │ ├── w64.exe │ │ │ │ │ └── wheel.py │ │ │ │ ├── distro.py │ │ │ │ ├── html5lib │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── _ihatexml.py │ │ │ │ │ ├── _inputstream.py │ │ │ │ │ ├── _tokenizer.py │ │ │ │ │ ├── _trie │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── _base.py │ │ │ │ │ │ ├── datrie.py │ │ │ │ │ │ └── py.py │ │ │ │ │ ├── _utils.py │ │ │ │ │ ├── constants.py │ │ │ │ │ ├── filters │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── alphabeticalattributes.py │ │ │ │ │ │ ├── base.py │ │ │ │ │ │ ├── inject_meta_charset.py │ │ │ │ │ │ ├── lint.py │ │ │ │ │ │ ├── optionaltags.py │ │ │ │ │ │ ├── sanitizer.py │ │ │ │ │ │ └── whitespace.py │ │ │ │ │ ├── html5parser.py │ │ │ │ │ ├── serializer.py │ │ │ │ │ ├── treeadapters │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── genshi.py │ │ │ │ │ │ └── sax.py │ │ │ │ │ ├── treebuilders │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── base.py │ │ │ │ │ │ ├── dom.py │ │ │ │ │ │ ├── etree.py │ │ │ │ │ │ └── etree_lxml.py │ │ │ │ │ └── treewalkers │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── base.py │ │ │ │ │ │ ├── dom.py │ │ │ │ │ │ ├── etree.py │ │ │ │ │ │ ├── etree_lxml.py │ │ │ │ │ │ └── genshi.py │ │ │ │ ├── ipaddress.py │ │ │ │ ├── lockfile │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── linklockfile.py │ │ │ │ │ ├── mkdirlockfile.py │ │ │ │ │ ├── pidlockfile.py │ │ │ │ │ ├── sqlitelockfile.py │ │ │ │ │ └── symlinklockfile.py │ │ │ │ ├── ordereddict.py │ │ │ │ ├── packaging │ │ │ │ │ ├── __about__.py │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── _compat.py │ │ │ │ │ ├── _structures.py │ │ │ │ │ ├── markers.py │ │ │ │ │ ├── requirements.py │ │ │ │ │ ├── specifiers.py │ │ │ │ │ ├── utils.py │ │ │ │ │ └── version.py │ │ │ │ ├── pkg_resources │ │ │ │ │ └── __init__.py │ │ │ │ ├── progress │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── bar.py │ │ │ │ │ ├── counter.py │ │ │ │ │ ├── helpers.py │ │ │ │ │ └── spinner.py │ │ │ │ ├── pyparsing.py │ │ │ │ ├── re-vendor.py │ │ │ │ ├── requests │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── adapters.py │ │ │ │ │ ├── api.py │ │ │ │ │ ├── auth.py │ │ │ │ │ ├── cacert.pem │ │ │ │ │ ├── certs.py │ │ │ │ │ ├── compat.py │ │ │ │ │ ├── cookies.py │ │ │ │ │ ├── exceptions.py │ │ │ │ │ ├── hooks.py │ │ │ │ │ ├── models.py │ │ │ │ │ ├── packages │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── chardet │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ ├── big5freq.py │ │ │ │ │ │ │ ├── big5prober.py │ │ │ │ │ │ │ ├── chardetect.py │ │ │ │ │ │ │ ├── chardistribution.py │ │ │ │ │ │ │ ├── charsetgroupprober.py │ │ │ │ │ │ │ ├── charsetprober.py │ │ │ │ │ │ │ ├── codingstatemachine.py │ │ │ │ │ │ │ ├── compat.py │ │ │ │ │ │ │ ├── constants.py │ │ │ │ │ │ │ ├── cp949prober.py │ │ │ │ │ │ │ ├── escprober.py │ │ │ │ │ │ │ ├── escsm.py │ │ │ │ │ │ │ ├── eucjpprober.py │ │ │ │ │ │ │ ├── euckrfreq.py │ │ │ │ │ │ │ ├── euckrprober.py │ │ │ │ │ │ │ ├── euctwfreq.py │ │ │ │ │ │ │ ├── euctwprober.py │ │ │ │ │ │ │ ├── gb2312freq.py │ │ │ │ │ │ │ ├── gb2312prober.py │ │ │ │ │ │ │ ├── hebrewprober.py │ │ │ │ │ │ │ ├── jisfreq.py │ │ │ │ │ │ │ ├── jpcntx.py │ │ │ │ │ │ │ ├── langbulgarianmodel.py │ │ │ │ │ │ │ ├── langcyrillicmodel.py │ │ │ │ │ │ │ ├── langgreekmodel.py │ │ │ │ │ │ │ ├── langhebrewmodel.py │ │ │ │ │ │ │ ├── langhungarianmodel.py │ │ │ │ │ │ │ ├── langthaimodel.py │ │ │ │ │ │ │ ├── latin1prober.py │ │ │ │ │ │ │ ├── mbcharsetprober.py │ │ │ │ │ │ │ ├── mbcsgroupprober.py │ │ │ │ │ │ │ ├── mbcssm.py │ │ │ │ │ │ │ ├── sbcharsetprober.py │ │ │ │ │ │ │ ├── sbcsgroupprober.py │ │ │ │ │ │ │ ├── sjisprober.py │ │ │ │ │ │ │ ├── universaldetector.py │ │ │ │ │ │ │ └── utf8prober.py │ │ │ │ │ │ └── urllib3 │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ ├── _collections.py │ │ │ │ │ │ │ ├── connection.py │ │ │ │ │ │ │ ├── connectionpool.py │ │ │ │ │ │ │ ├── contrib │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ ├── appengine.py │ │ │ │ │ │ │ ├── ntlmpool.py │ │ │ │ │ │ │ ├── pyopenssl.py │ │ │ │ │ │ │ └── socks.py │ │ │ │ │ │ │ ├── exceptions.py │ │ │ │ │ │ │ ├── fields.py │ │ │ │ │ │ │ ├── filepost.py │ │ │ │ │ │ │ ├── packages │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ ├── ordered_dict.py │ │ │ │ │ │ │ ├── six.py │ │ │ │ │ │ │ └── ssl_match_hostname │ │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ │ └── _implementation.py │ │ │ │ │ │ │ ├── poolmanager.py │ │ │ │ │ │ │ ├── request.py │ │ │ │ │ │ │ ├── response.py │ │ │ │ │ │ │ └── util │ │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ │ ├── connection.py │ │ │ │ │ │ │ ├── request.py │ │ │ │ │ │ │ ├── response.py │ │ │ │ │ │ │ ├── retry.py │ │ │ │ │ │ │ ├── ssl_.py │ │ │ │ │ │ │ ├── timeout.py │ │ │ │ │ │ │ └── url.py │ │ │ │ │ ├── sessions.py │ │ │ │ │ ├── status_codes.py │ │ │ │ │ ├── structures.py │ │ │ │ │ └── utils.py │ │ │ │ ├── retrying.py │ │ │ │ ├── six.py │ │ │ │ └── webencodings │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── labels.py │ │ │ │ │ ├── mklabels.py │ │ │ │ │ ├── tests.py │ │ │ │ │ └── x_user_defined.py │ │ │ ├── basecommand.py │ │ │ ├── baseparser.py │ │ │ ├── cmdoptions.py │ │ │ ├── commands │ │ │ │ ├── __init__.py │ │ │ │ ├── check.py │ │ │ │ ├── completion.py │ │ │ │ ├── download.py │ │ │ │ ├── freeze.py │ │ │ │ ├── hash.py │ │ │ │ ├── help.py │ │ │ │ ├── install.py │ │ │ │ ├── list.py │ │ │ │ ├── search.py │ │ │ │ ├── show.py │ │ │ │ ├── uninstall.py │ │ │ │ └── wheel.py │ │ │ ├── compat │ │ │ │ ├── __init__.py │ │ │ │ └── dictconfig.py │ │ │ ├── download.py │ │ │ ├── exceptions.py │ │ │ ├── index.py │ │ │ ├── locations.py │ │ │ ├── models │ │ │ │ ├── __init__.py │ │ │ │ └── index.py │ │ │ ├── operations │ │ │ │ ├── __init__.py │ │ │ │ ├── check.py │ │ │ │ └── freeze.py │ │ │ ├── pep425tags.py │ │ │ ├── req │ │ │ │ ├── __init__.py │ │ │ │ ├── req_file.py │ │ │ │ ├── req_install.py │ │ │ │ ├── req_set.py │ │ │ │ └── req_uninstall.py │ │ │ ├── status_codes.py │ │ │ ├── utils │ │ │ │ ├── __init__.py │ │ │ │ ├── appdirs.py │ │ │ │ ├── build.py │ │ │ │ ├── deprecation.py │ │ │ │ ├── encoding.py │ │ │ │ ├── filesystem.py │ │ │ │ ├── glibc.py │ │ │ │ ├── hashes.py │ │ │ │ ├── logging.py │ │ │ │ ├── outdated.py │ │ │ │ ├── packaging.py │ │ │ │ ├── setuptools_build.py │ │ │ │ └── ui.py │ │ │ ├── vcs │ │ │ │ ├── __init__.py │ │ │ │ ├── bazaar.py │ │ │ │ ├── git.py │ │ │ │ ├── mercurial.py │ │ │ │ └── subversion.py │ │ │ └── wheel.py │ │ ├── pkg_resources │ │ │ └── __init__.py │ │ ├── prettytable-0.7.2.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── prettytable.py │ │ ├── progressive-0.3.3.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ ├── pbr.json │ │ │ └── top_level.txt │ │ ├── progressive │ │ │ ├── __init__.py │ │ │ ├── bar.py │ │ │ ├── cursor.py │ │ │ ├── examples.py │ │ │ ├── exceptions.py │ │ │ ├── pretty.py │ │ │ ├── tree.py │ │ │ └── util.py │ │ ├── pyparsing-2.2.0.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── pyparsing.py │ │ ├── setuptools-34.3.1.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── dependency_links.txt │ │ │ ├── entry_points.txt │ │ │ ├── metadata.json │ │ │ ├── top_level.txt │ │ │ └── zip-safe │ │ ├── setuptools │ │ │ ├── __init__.py │ │ │ ├── archive_util.py │ │ │ ├── cli-32.exe │ │ │ ├── cli-64.exe │ │ │ ├── cli.exe │ │ │ ├── command │ │ │ │ ├── __init__.py │ │ │ │ ├── alias.py │ │ │ │ ├── bdist_egg.py │ │ │ │ ├── bdist_rpm.py │ │ │ │ ├── bdist_wininst.py │ │ │ │ ├── build_clib.py │ │ │ │ ├── build_ext.py │ │ │ │ ├── build_py.py │ │ │ │ ├── develop.py │ │ │ │ ├── easy_install.py │ │ │ │ ├── egg_info.py │ │ │ │ ├── install.py │ │ │ │ ├── install_egg_info.py │ │ │ │ ├── install_lib.py │ │ │ │ ├── install_scripts.py │ │ │ │ ├── launcher manifest.xml │ │ │ │ ├── py36compat.py │ │ │ │ ├── register.py │ │ │ │ ├── rotate.py │ │ │ │ ├── saveopts.py │ │ │ │ ├── sdist.py │ │ │ │ ├── setopt.py │ │ │ │ ├── test.py │ │ │ │ ├── upload.py │ │ │ │ └── upload_docs.py │ │ │ ├── config.py │ │ │ ├── dep_util.py │ │ │ ├── depends.py │ │ │ ├── dist.py │ │ │ ├── extension.py │ │ │ ├── glob.py │ │ │ ├── gui-32.exe │ │ │ ├── gui-64.exe │ │ │ ├── gui.exe │ │ │ ├── launch.py │ │ │ ├── lib2to3_ex.py │ │ │ ├── monkey.py │ │ │ ├── msvc.py │ │ │ ├── namespaces.py │ │ │ ├── package_index.py │ │ │ ├── py26compat.py │ │ │ ├── py27compat.py │ │ │ ├── py31compat.py │ │ │ ├── py33compat.py │ │ │ ├── py36compat.py │ │ │ ├── sandbox.py │ │ │ ├── script (dev).tmpl │ │ │ ├── script.tmpl │ │ │ ├── site-patch.py │ │ │ ├── ssl_support.py │ │ │ ├── unicode_utils.py │ │ │ ├── version.py │ │ │ └── windows_support.py │ │ ├── six-1.10.0.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ ├── six.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── conftest.py │ │ │ ├── test_middlewares.py │ │ │ ├── test_operations.py │ │ │ ├── test_queries.py │ │ │ ├── test_storages.py │ │ │ ├── test_tables.py │ │ │ ├── test_tinydb.py │ │ │ └── test_utils.py │ │ ├── tinydb-3.2.2.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── metadata.json │ │ │ ├── pbr.json │ │ │ ├── top_level.txt │ │ │ └── zip-safe │ │ ├── tinydb │ │ │ ├── __init__.py │ │ │ ├── database.py │ │ │ ├── middlewares.py │ │ │ ├── operations.py │ │ │ ├── queries.py │ │ │ ├── storages.py │ │ │ └── utils.py │ │ ├── wheel-0.29.0.dist-info │ │ │ ├── DESCRIPTION.rst │ │ │ ├── INSTALLER │ │ │ ├── LICENSE.txt │ │ │ ├── METADATA │ │ │ ├── RECORD │ │ │ ├── WHEEL │ │ │ ├── entry_points.txt │ │ │ ├── metadata.json │ │ │ └── top_level.txt │ │ └── wheel │ │ │ ├── __init__.py │ │ │ ├── __main__.py │ │ │ ├── archive.py │ │ │ ├── bdist_wheel.py │ │ │ ├── decorator.py │ │ │ ├── egg2wheel.py │ │ │ ├── eggnames.txt │ │ │ ├── install.py │ │ │ ├── metadata.py │ │ │ ├── paths.py │ │ │ ├── pep425tags.py │ │ │ ├── pkginfo.py │ │ │ ├── signatures │ │ │ ├── __init__.py │ │ │ ├── djbec.py │ │ │ ├── ed25519py.py │ │ │ └── keys.py │ │ │ ├── test │ │ │ ├── __init__.py │ │ │ ├── complex-dist │ │ │ │ ├── complexdist │ │ │ │ │ └── __init__.py │ │ │ │ └── setup.py │ │ │ ├── headers.dist │ │ │ │ ├── header.h │ │ │ │ ├── headersdist.py │ │ │ │ └── setup.py │ │ │ ├── pydist-schema.json │ │ │ ├── simple.dist │ │ │ │ ├── setup.py │ │ │ │ └── simpledist │ │ │ │ │ └── __init__.py │ │ │ ├── test-1.0-py2.py3-none-win32.whl │ │ │ ├── test_basic.py │ │ │ ├── test_install.py │ │ │ ├── test_keys.py │ │ │ ├── test_paths.py │ │ │ ├── test_ranking.py │ │ │ ├── test_signatures.py │ │ │ ├── test_tagopt.py │ │ │ ├── test_tool.py │ │ │ └── test_wheelfile.py │ │ │ ├── tool │ │ │ └── __init__.py │ │ │ ├── util.py │ │ │ └── wininst2wheel.py │ │ ├── site.py │ │ ├── sre.py │ │ ├── sre_compile.py │ │ ├── sre_constants.py │ │ ├── sre_parse.py │ │ ├── stat.py │ │ ├── types.py │ │ └── warnings.py └── pip-selfcheck.json ├── requirements.txt ├── sessions_dat ├── setup.py ├── success.txt └── tests.py /.gitignore: -------------------------------------------------------------------------------- 1 | #pyc 2 | *.pyc 3 | sessions_dat 4 | session* 5 | py2env 6 | py2env/* 7 | .DS_Store 8 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: python 2 | python: 3 | - "2.7" 4 | # command to install dependencies 5 | install: "pip install -r requirements.txt" 6 | # command to run tests 7 | script: python tests.py 8 | 9 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | minihydra.villanch.top 2 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-tactile -------------------------------------------------------------------------------- /build/lib/minihydra/__init__.py: -------------------------------------------------------------------------------- 1 | from .minihydra import MiniHydra -------------------------------------------------------------------------------- /build/lib/minihydra/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/build/lib/minihydra/core/__init__.py -------------------------------------------------------------------------------- /build/lib/minihydra/core/conf.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Store Config Options 6 | Created: 04/15/17 7 | """ 8 | 9 | try: 10 | from . import conf_parser 11 | MODLIST = conf_parser.MODLIST if conf_parser.MODLIST else [] 12 | 13 | DEBUG = True if conf_parser.DEBUG else False 14 | 15 | DO_CONTINUE = True if conf_parser.DO_CONTINUE else False 16 | 17 | THREAD_MAX = conf_parser.THREAD_MAX if conf_parser.THREAD_MAX else 50 18 | 19 | DEFAULT_SESSION = conf_parser.DEFAULT_SESSION if conf_parser.THREAD_MAX else 'minihydra' 20 | 21 | SUCCESS_FILE = conf_parser.SUCCESS_FILE if conf_parser.SUCCESS_FILE else 'success.txt' 22 | except IOError: 23 | MODLIST = ['ftp', 'testmod', 'telnet'] 24 | DEBUG = False 25 | DO_CONTINUE = True 26 | THREAD_MAX = 50 27 | DEFAULT_SESSION = 'minihydra' 28 | SUCCESS_FILE = 'success.txt' 29 | 30 | -------------------------------------------------------------------------------- /build/lib/minihydra/core/exceptions.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Define exceptions 6 | Created: 03/07/17 7 | """ 8 | 9 | import unittest 10 | 11 | ######################################################################## 12 | class ImportModError(Exception): 13 | """""" 14 | pass 15 | 16 | ######################################################################## 17 | class NoModExisted(Exception): 18 | """""" 19 | pass 20 | 21 | ######################################################################## 22 | class UnknownException(Exception): 23 | """""" 24 | pass 25 | 26 | ######################################################################## 27 | class NoTarget(Exception): 28 | """""" 29 | pass 30 | 31 | ######################################################################## 32 | class NoMod(Exception): 33 | """""" 34 | pass 35 | 36 | ######################################################################## 37 | class ModReturnError(Exception): 38 | """""" 39 | pass 40 | 41 | ######################################################################## 42 | class DictsError(Exception): 43 | """""" 44 | pass 45 | 46 | 47 | ######################################################################## 48 | class END(Exception): 49 | """""" 50 | pass 51 | 52 | 53 | 54 | 55 | 56 | 57 | if __name__ == '__main__': 58 | unittest.main() -------------------------------------------------------------------------------- /build/lib/minihydra/core/mod_maker.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Make a mod interface 6 | Created: 03/14/17 7 | """ 8 | 9 | import unittest 10 | from .template import TemplateMod 11 | 12 | #################################################################################### 13 | #################################################################################### 14 | #################################################################################### 15 | # 16 | # Make mod instance 17 | # 1. parse function 18 | # 2. check param 19 | # 20 | #################################################################################### 21 | #################################################################################### 22 | #################################################################################### 23 | 24 | #---------------------------------------------------------------------- 25 | def make_mod(target_func, one_result=False): 26 | """""" 27 | assert callable(target_func) 28 | 29 | class CustomMod(TemplateMod): 30 | #---------------------------------------------------------------------- 31 | def __init__(self, target): 32 | """""" 33 | TemplateMod.__init__(self, target, 34 | attack_func=target_func, 35 | only_one_result=one_result) 36 | 37 | return CustomMod 38 | 39 | 40 | 41 | if __name__ == '__main__': 42 | unittest.main() -------------------------------------------------------------------------------- /build/lib/minihydra/core/template.py: -------------------------------------------------------------------------------- 1 | from .base import ModBase 2 | from .exceptions import ModReturnError 3 | 4 | ######################################################################## 5 | class TemplateMod(ModBase): 6 | """""" 7 | #---------------------------------------------------------------------- 8 | def __init__(self, target, attack_func=None, only_one_result=True): 9 | """""" 10 | ModBase.__init__(self, target) 11 | 12 | self._attack_func = attack_func 13 | 14 | self._only_one_result = True 15 | 16 | #---------------------------------------------------------------------- 17 | def attack(self, payload): 18 | """""" 19 | result = self._attack_func(self.target, payload) 20 | if isinstance(result, bool): 21 | if self._only_one_result: 22 | if result: 23 | self.finish() 24 | return result 25 | else: 26 | try: 27 | _success_flag = result[0] 28 | except: 29 | raise ModReturnError() 30 | 31 | if isinstance(_success_flag, bool): 32 | if self._only_one_result: 33 | if _success_flag: 34 | self.finish() 35 | return result 36 | else: 37 | raise ModReturnError() 38 | -------------------------------------------------------------------------------- /build/lib/minihydra/dicts/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: 6 | Created: 03/06/17 7 | """ 8 | 9 | import unittest 10 | 11 | 12 | 13 | if __name__ == '__main__': 14 | unittest.main() -------------------------------------------------------------------------------- /build/lib/minihydra/mods/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/build/lib/minihydra/mods/__init__.py -------------------------------------------------------------------------------- /build/lib/minihydra/mods/ftp.py: -------------------------------------------------------------------------------- 1 | from ftplib import FTP 2 | 3 | from ..core.base import ModBase 4 | 5 | 6 | ######################################################################## 7 | class FTPBRUTE(ModBase): 8 | """""" 9 | 10 | #---------------------------------------------------------------------- 11 | def pre_attack(self): 12 | """""" 13 | client = FTP(self.target, timeout=5) 14 | client.login() 15 | 16 | return True, 'Annonymous Login Success' 17 | 18 | #---------------------------------------------------------------------- 19 | def attack(self, payload): 20 | """""" 21 | username = payload[0] 22 | password = payload[1] 23 | 24 | try: 25 | client = FTP(self.target, timeout=5) 26 | client.login(username, password) 27 | except Exception as e: 28 | return False 29 | 30 | return True, 'USERNAME: {username} | PASSWORD: {password}'.format(username=username, 31 | password=password) 32 | 33 | -------------------------------------------------------------------------------- /build/lib/minihydra/mods/ssh.py: -------------------------------------------------------------------------------- 1 | import paramiko 2 | client = paramiko.SSHClient() 3 | client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) 4 | client.connect('192.168.8.248', 22, username='root', password='password', timeout=4) 5 | stdin, stdout, stderr = client.exec_command('ls -l') 6 | for std in stdout.readlines(): 7 | print std, 8 | client.close() -------------------------------------------------------------------------------- /build/lib/minihydra/mods/testmod.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: test for minihydra 6 | Created: 03/07/17 7 | """ 8 | 9 | import unittest 10 | import random 11 | import time 12 | 13 | from ..core.base import ModBase 14 | 15 | 16 | ######################################################################## 17 | class Tester(ModBase): 18 | """""" 19 | 20 | #---------------------------------------------------------------------- 21 | def attack(self, *args, **kwargs): 22 | """""" 23 | 24 | time.sleep(random.randint(2,4)) 25 | if random.randint(1,6) == 4: 26 | #self.finish() 27 | return True 28 | else: 29 | return False 30 | 31 | 32 | 33 | 34 | 35 | if __name__ == '__main__': 36 | unittest.main() -------------------------------------------------------------------------------- /dist/minihydra-0.5.0-py2.7.egg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/dist/minihydra-0.5.0-py2.7.egg -------------------------------------------------------------------------------- /dist/minihydra-0.5.0.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/dist/minihydra-0.5.0.tar.gz -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line. 5 | SPHINXOPTS = 6 | SPHINXBUILD = sphinx-build 7 | SPHINXPROJ = minihydra 8 | SOURCEDIR = . 9 | BUILDDIR = _build 10 | 11 | # Put it first so that "make" without argument is like "make help". 12 | help: 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14 | 15 | .PHONY: help Makefile 16 | 17 | # Catch-all target: route all unknown targets to Sphinx using the new 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19 | %: Makefile 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- 1 | .. minihydra documentation master file, created by 2 | sphinx-quickstart on Tue Mar 7 23:42:33 2017. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | Welcome to minihydra's documentation! 7 | ===================================== 8 | 9 | .. toctree:: 10 | :maxdepth: 2 11 | :caption: Contents: 12 | 13 | 14 | 15 | Indices and tables 16 | ================== 17 | 18 | * :ref:`genindex` 19 | * :ref:`modindex` 20 | * :ref:`search` 21 | -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | pushd %~dp0 4 | 5 | REM Command file for Sphinx documentation 6 | 7 | if "%SPHINXBUILD%" == "" ( 8 | set SPHINXBUILD=sphinx-build 9 | ) 10 | set SOURCEDIR=. 11 | set BUILDDIR=_build 12 | set SPHINXPROJ=minihydra 13 | 14 | if "%1" == "" goto help 15 | 16 | %SPHINXBUILD% >NUL 2>NUL 17 | if errorlevel 9009 ( 18 | echo. 19 | echo.The 'sphinx-build' command was not found. Make sure you have Sphinx 20 | echo.installed, then set the SPHINXBUILD environment variable to point 21 | echo.to the full path of the 'sphinx-build' executable. Alternatively you 22 | echo.may add the Sphinx directory to PATH. 23 | echo. 24 | echo.If you don't have Sphinx installed, grab it from 25 | echo.http://sphinx-doc.org/ 26 | exit /b 1 27 | ) 28 | 29 | %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% 30 | goto end 31 | 32 | :help 33 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% 34 | 35 | :end 36 | popd 37 | -------------------------------------------------------------------------------- /minihydra.egg-info/PKG-INFO: -------------------------------------------------------------------------------- 1 | Metadata-Version: 1.0 2 | Name: minihydra 3 | Version: 0.5.0 4 | Summary: Minihydra frame - burst and fuzz everything! 5 | Home-page: https://github.com/VillanCh/minihydra 6 | Author: v1ll4n 7 | Author-email: v1ll4n@villanch.top 8 | License: BSD 2-Clause License 9 | Description: MiniHydra Frame - Fuzz and Burst EVERYTHING! 10 | Github: https://github.com/VillanCh/minihydra 11 | README.md: https://github.com/VillanCh/minihydra/blob/master/README.md 12 | 13 | 14 | Platform: UNKNOWN 15 | -------------------------------------------------------------------------------- /minihydra.egg-info/SOURCES.txt: -------------------------------------------------------------------------------- 1 | setup.py 2 | minihydra/__init__.py 3 | minihydra/minihydra.py 4 | minihydra.egg-info/PKG-INFO 5 | minihydra.egg-info/SOURCES.txt 6 | minihydra.egg-info/dependency_links.txt 7 | minihydra.egg-info/not-zip-safe 8 | minihydra.egg-info/requires.txt 9 | minihydra.egg-info/top_level.txt 10 | minihydra/core/__init__.py 11 | minihydra/core/base.py 12 | minihydra/core/conf.py 13 | minihydra/core/conf_parser.py 14 | minihydra/core/exceptions.py 15 | minihydra/core/mod_maker.py 16 | minihydra/core/modmanager.py 17 | minihydra/core/template.py 18 | minihydra/dicts/__init__.py 19 | minihydra/mods/__init__.py 20 | minihydra/mods/ftp.py 21 | minihydra/mods/ssh.py 22 | minihydra/mods/telnet.py 23 | minihydra/mods/testmod.py -------------------------------------------------------------------------------- /minihydra.egg-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /minihydra.egg-info/not-zip-safe: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /minihydra.egg-info/requires.txt: -------------------------------------------------------------------------------- 1 | g3ar 2 | configparser 3 | -------------------------------------------------------------------------------- /minihydra.egg-info/top_level.txt: -------------------------------------------------------------------------------- 1 | minihydra 2 | -------------------------------------------------------------------------------- /minihydra/__init__.py: -------------------------------------------------------------------------------- 1 | from .minihydra import MiniHydra -------------------------------------------------------------------------------- /minihydra/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/minihydra/core/__init__.py -------------------------------------------------------------------------------- /minihydra/core/conf.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Store Config Options 6 | Created: 04/15/17 7 | """ 8 | 9 | try: 10 | from . import conf_parser 11 | MODLIST = conf_parser.MODLIST if conf_parser.MODLIST else [] 12 | 13 | DEBUG = True if conf_parser.DEBUG else False 14 | 15 | DO_CONTINUE = True if conf_parser.DO_CONTINUE else False 16 | 17 | THREAD_MAX = conf_parser.THREAD_MAX if conf_parser.THREAD_MAX else 50 18 | 19 | DEFAULT_SESSION = conf_parser.DEFAULT_SESSION if conf_parser.THREAD_MAX else 'minihydra' 20 | 21 | SUCCESS_FILE = conf_parser.SUCCESS_FILE if conf_parser.SUCCESS_FILE else 'success.txt' 22 | except IOError: 23 | MODLIST = ['ftp', 'testmod', 'telnet'] 24 | DEBUG = False 25 | DO_CONTINUE = True 26 | THREAD_MAX = 50 27 | DEFAULT_SESSION = 'minihydra' 28 | SUCCESS_FILE = 'success.txt' 29 | 30 | -------------------------------------------------------------------------------- /minihydra/core/exceptions.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Define exceptions 6 | Created: 03/07/17 7 | """ 8 | 9 | import unittest 10 | 11 | ######################################################################## 12 | class ImportModError(Exception): 13 | """""" 14 | pass 15 | 16 | ######################################################################## 17 | class NoModExisted(Exception): 18 | """""" 19 | pass 20 | 21 | ######################################################################## 22 | class UnknownException(Exception): 23 | """""" 24 | pass 25 | 26 | ######################################################################## 27 | class NoTarget(Exception): 28 | """""" 29 | pass 30 | 31 | ######################################################################## 32 | class NoMod(Exception): 33 | """""" 34 | pass 35 | 36 | ######################################################################## 37 | class ModReturnError(Exception): 38 | """""" 39 | pass 40 | 41 | ######################################################################## 42 | class DictsError(Exception): 43 | """""" 44 | pass 45 | 46 | 47 | ######################################################################## 48 | class END(Exception): 49 | """""" 50 | pass 51 | 52 | 53 | 54 | 55 | 56 | 57 | if __name__ == '__main__': 58 | unittest.main() -------------------------------------------------------------------------------- /minihydra/core/mod_maker.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Make a mod interface 6 | Created: 03/14/17 7 | """ 8 | 9 | import unittest 10 | from .template import TemplateMod 11 | 12 | #################################################################################### 13 | #################################################################################### 14 | #################################################################################### 15 | # 16 | # Make mod instance 17 | # 1. parse function 18 | # 2. check param 19 | # 20 | #################################################################################### 21 | #################################################################################### 22 | #################################################################################### 23 | 24 | #---------------------------------------------------------------------- 25 | def make_mod(target_func, one_result=False): 26 | """""" 27 | assert callable(target_func) 28 | 29 | class CustomMod(TemplateMod): 30 | #---------------------------------------------------------------------- 31 | def __init__(self, target): 32 | """""" 33 | TemplateMod.__init__(self, target, 34 | attack_func=target_func, 35 | only_one_result=one_result) 36 | 37 | return CustomMod 38 | 39 | 40 | 41 | if __name__ == '__main__': 42 | unittest.main() -------------------------------------------------------------------------------- /minihydra/core/template.py: -------------------------------------------------------------------------------- 1 | from .base import ModBase 2 | from .exceptions import ModReturnError 3 | 4 | ######################################################################## 5 | class TemplateMod(ModBase): 6 | """""" 7 | #---------------------------------------------------------------------- 8 | def __init__(self, target, attack_func=None, only_one_result=True): 9 | """""" 10 | ModBase.__init__(self, target) 11 | 12 | self._attack_func = attack_func 13 | 14 | self._only_one_result = True 15 | 16 | #---------------------------------------------------------------------- 17 | def attack(self, payload): 18 | """""" 19 | result = self._attack_func(self.target, payload) 20 | if isinstance(result, bool): 21 | if self._only_one_result: 22 | if result: 23 | self.finish() 24 | return result 25 | else: 26 | try: 27 | _success_flag = result[0] 28 | except: 29 | raise ModReturnError() 30 | 31 | if isinstance(_success_flag, bool): 32 | if self._only_one_result: 33 | if _success_flag: 34 | self.finish() 35 | return result 36 | else: 37 | raise ModReturnError() 38 | -------------------------------------------------------------------------------- /minihydra/dicts/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: 6 | Created: 03/06/17 7 | """ 8 | 9 | import unittest 10 | 11 | 12 | 13 | if __name__ == '__main__': 14 | unittest.main() -------------------------------------------------------------------------------- /minihydra/minihydra.conf: -------------------------------------------------------------------------------- 1 | [mod_list] 2 | # 3 | # input all mods splited by "," 4 | # 5 | # Example: 6 | # 7 | # mod_list = ssh, weblogic, ftp 8 | # 9 | mod_list = ssh, weblogic, ftp, testmod, template, telnet 10 | 11 | [minihydra_param] 12 | debug = False 13 | success_file = success.txt 14 | thread_max = 50 15 | do_continue = True 16 | default_session = minihydra -------------------------------------------------------------------------------- /minihydra/mods/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/minihydra/mods/__init__.py -------------------------------------------------------------------------------- /minihydra/mods/ftp.py: -------------------------------------------------------------------------------- 1 | from ftplib import FTP 2 | 3 | from ..core.base import ModBase 4 | 5 | 6 | ######################################################################## 7 | class FTPBRUTE(ModBase): 8 | """""" 9 | 10 | #---------------------------------------------------------------------- 11 | def pre_attack(self): 12 | """""" 13 | client = FTP(self.target, timeout=5) 14 | client.login() 15 | 16 | return True, 'Annonymous Login Success' 17 | 18 | #---------------------------------------------------------------------- 19 | def attack(self, payload): 20 | """""" 21 | username = payload[0] 22 | password = payload[1] 23 | 24 | try: 25 | client = FTP(self.target, timeout=5) 26 | client.login(username, password) 27 | except Exception as e: 28 | return False 29 | 30 | return True, 'USERNAME: {username} | PASSWORD: {password}'.format(username=username, 31 | password=password) 32 | 33 | -------------------------------------------------------------------------------- /minihydra/mods/ssh.py: -------------------------------------------------------------------------------- 1 | import paramiko 2 | client = paramiko.SSHClient() 3 | client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) 4 | client.connect('192.168.8.248', 22, username='root', password='password', timeout=4) 5 | stdin, stdout, stderr = client.exec_command('ls -l') 6 | for std in stdout.readlines(): 7 | print std, 8 | client.close() -------------------------------------------------------------------------------- /minihydra/mods/testmod.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: test for minihydra 6 | Created: 03/07/17 7 | """ 8 | 9 | import unittest 10 | import random 11 | import time 12 | 13 | from ..core.base import ModBase 14 | 15 | 16 | ######################################################################## 17 | class Tester(ModBase): 18 | """""" 19 | 20 | #---------------------------------------------------------------------- 21 | def attack(self, *args, **kwargs): 22 | """""" 23 | 24 | time.sleep(random.randint(2,4)) 25 | if random.randint(1,6) == 4: 26 | #self.finish() 27 | return True 28 | else: 29 | return False 30 | 31 | 32 | 33 | 34 | 35 | if __name__ == '__main__': 36 | unittest.main() -------------------------------------------------------------------------------- /py2env/bin/activate.csh: -------------------------------------------------------------------------------- 1 | # This file must be used with "source bin/activate.csh" *from csh*. 2 | # You cannot run it directly. 3 | # Created by Davide Di Blasi . 4 | 5 | alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc' 6 | 7 | # Unset irrelevant variables. 8 | deactivate nondestructive 9 | 10 | setenv VIRTUAL_ENV "/Users/v1ll4n/Project/minihydra/py2env" 11 | 12 | set _OLD_VIRTUAL_PATH="$PATH" 13 | setenv PATH "$VIRTUAL_ENV/bin:$PATH" 14 | 15 | 16 | 17 | if ("" != "") then 18 | set env_name = "" 19 | else 20 | set env_name = `basename "$VIRTUAL_ENV"` 21 | endif 22 | 23 | # Could be in a non-interactive environment, 24 | # in which case, $prompt is undefined and we wouldn't 25 | # care about the prompt anyway. 26 | if ( $?prompt ) then 27 | set _OLD_VIRTUAL_PROMPT="$prompt" 28 | set prompt = "[$env_name] $prompt" 29 | endif 30 | 31 | unset env_name 32 | 33 | alias pydoc python -m pydoc 34 | 35 | rehash 36 | 37 | -------------------------------------------------------------------------------- /py2env/bin/activate_this.py: -------------------------------------------------------------------------------- 1 | """By using execfile(this_file, dict(__file__=this_file)) you will 2 | activate this virtualenv environment. 3 | 4 | This can be used when you must use an existing Python interpreter, not 5 | the virtualenv bin/python 6 | """ 7 | 8 | try: 9 | __file__ 10 | except NameError: 11 | raise AssertionError( 12 | "You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))") 13 | import sys 14 | import os 15 | 16 | old_os_path = os.environ.get('PATH', '') 17 | os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path 18 | base = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 19 | if sys.platform == 'win32': 20 | site_packages = os.path.join(base, 'Lib', 'site-packages') 21 | else: 22 | site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages') 23 | prev_sys_path = list(sys.path) 24 | import site 25 | site.addsitedir(site_packages) 26 | sys.real_prefix = sys.prefix 27 | sys.prefix = base 28 | # Move the added items to the front of the path: 29 | new_sys_path = [] 30 | for item in list(sys.path): 31 | if item not in prev_sys_path: 32 | new_sys_path.append(item) 33 | sys.path.remove(item) 34 | sys.path[:0] = new_sys_path 35 | -------------------------------------------------------------------------------- /py2env/bin/easy_install: -------------------------------------------------------------------------------- 1 | #!/Users/v1ll4n/Project/minihydra/py2env/bin/python2.7 2 | 3 | # -*- coding: utf-8 -*- 4 | import re 5 | import sys 6 | 7 | from setuptools.command.easy_install import main 8 | 9 | if __name__ == '__main__': 10 | sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) 11 | sys.exit(main()) 12 | -------------------------------------------------------------------------------- /py2env/bin/easy_install-2.7: -------------------------------------------------------------------------------- 1 | #!/Users/v1ll4n/Project/minihydra/py2env/bin/python2.7 2 | 3 | # -*- coding: utf-8 -*- 4 | import re 5 | import sys 6 | 7 | from setuptools.command.easy_install import main 8 | 9 | if __name__ == '__main__': 10 | sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) 11 | sys.exit(main()) 12 | -------------------------------------------------------------------------------- /py2env/bin/pip: -------------------------------------------------------------------------------- 1 | #!/Users/v1ll4n/Project/minihydra/py2env/bin/python2.7 2 | 3 | # -*- coding: utf-8 -*- 4 | import re 5 | import sys 6 | 7 | from pip import main 8 | 9 | if __name__ == '__main__': 10 | sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) 11 | sys.exit(main()) 12 | -------------------------------------------------------------------------------- /py2env/bin/pip2: -------------------------------------------------------------------------------- 1 | #!/Users/v1ll4n/Project/minihydra/py2env/bin/python2.7 2 | 3 | # -*- coding: utf-8 -*- 4 | import re 5 | import sys 6 | 7 | from pip import main 8 | 9 | if __name__ == '__main__': 10 | sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) 11 | sys.exit(main()) 12 | -------------------------------------------------------------------------------- /py2env/bin/pip2.7: -------------------------------------------------------------------------------- 1 | #!/Users/v1ll4n/Project/minihydra/py2env/bin/python2.7 2 | 3 | # -*- coding: utf-8 -*- 4 | import re 5 | import sys 6 | 7 | from pip import main 8 | 9 | if __name__ == '__main__': 10 | sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) 11 | sys.exit(main()) 12 | -------------------------------------------------------------------------------- /py2env/bin/python: -------------------------------------------------------------------------------- 1 | python2.7 -------------------------------------------------------------------------------- /py2env/bin/python2: -------------------------------------------------------------------------------- 1 | python2.7 -------------------------------------------------------------------------------- /py2env/bin/python2.7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/bin/python2.7 -------------------------------------------------------------------------------- /py2env/bin/wheel: -------------------------------------------------------------------------------- 1 | #!/Users/v1ll4n/Project/minihydra/py2env/bin/python2.7 2 | 3 | # -*- coding: utf-8 -*- 4 | import re 5 | import sys 6 | 7 | from wheel.tool import main 8 | 9 | if __name__ == '__main__': 10 | sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) 11 | sys.exit(main()) 12 | -------------------------------------------------------------------------------- /py2env/include/python2.7: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/include/python2.7 -------------------------------------------------------------------------------- /py2env/lib/python2.7/UserDict.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/UserDict.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/_abcoll.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/_abcoll.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/_weakrefset.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/_weakrefset.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/abc.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/abc.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/codecs.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/codecs.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/config: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/config -------------------------------------------------------------------------------- /py2env/lib/python2.7/copy_reg.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/copy_reg.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/distutils/distutils.cfg: -------------------------------------------------------------------------------- 1 | # This is a config file local to this virtualenv installation 2 | # You may include options that will be used by all distutils commands, 3 | # and by easy_install. For instance: 4 | # 5 | # [easy_install] 6 | # find_links = http://mylocalsite 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/encodings: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/encodings -------------------------------------------------------------------------------- /py2env/lib/python2.7/fnmatch.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/fnmatch.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/genericpath.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/genericpath.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/lib-dynload: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/lib-dynload -------------------------------------------------------------------------------- /py2env/lib/python2.7/linecache.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/linecache.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/locale.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/locale.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/no-global-site-packages.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/no-global-site-packages.txt -------------------------------------------------------------------------------- /py2env/lib/python2.7/ntpath.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/ntpath.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/orig-prefix.txt: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13 -------------------------------------------------------------------------------- /py2env/lib/python2.7/os.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/os.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/posixpath.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/posixpath.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/re.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/re.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/IPy-0.83.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/IPy-0.83.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | IPy.py,sha256=w_ihmP8Pl61DoJd3x030_82T_xvRADL4LOnzmnqx7-Q,61138 2 | IPy-0.83.dist-info/DESCRIPTION.rst,sha256=ueGB8U_qtdpDBwlUfniyx4AziyilPnODo3pCUPJuqVY,9863 3 | IPy-0.83.dist-info/METADATA,sha256=hvysP8cFOMdiRPocVSVnxQDgnx0zq0j2DibKiZJbJlo,10819 4 | IPy-0.83.dist-info/RECORD,, 5 | IPy-0.83.dist-info/WHEEL,sha256=BtVfdXUcEYLcFjOkbIrCFRyXU4qszVPt-E9o3RWkSNw,93 6 | IPy-0.83.dist-info/metadata.json,sha256=IbJUQPRr4DIq8LSbSshQPXL80zYTXLFvdo4GmW3HRjQ,1060 7 | IPy-0.83.dist-info/top_level.txt,sha256=K6Xpz2nY8NofxwZIErMVIG74NsrGiQnxYk6-qiKyawg,4 8 | IPy-0.83.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 9 | IPy.pyc,, 10 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/IPy-0.83.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/IPy-0.83.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Environment :: Plugins", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Communications", "Topic :: Internet", "Topic :: System :: Networking", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3"], "download_url": "https://github.com/autocracy/python-ipy", "extensions": {"python.details": {"contacts": [{"email": "jeff AT storyinmemo.com", "name": "Jeff Ferland", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/autocracy/python-ipy"}}}, "generator": "bdist_wheel (0.29.0)", "keywords": ["ipv4", "ipv6", "netmask"], "license": "BSD License", "metadata_version": "2.0", "name": "IPy", "summary": "Class and tools for handling of IPv4 and IPv6 addresses and networks", "version": "0.83"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/IPy-0.83.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | IPy 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/appdirs-1.4.3.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/appdirs-1.4.3.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | appdirs.py,sha256=MievUEuv3l_mQISH5SF0shDk_BNhHHzYiAPrT3ITN4I,24701 2 | appdirs-1.4.3.dist-info/DESCRIPTION.rst,sha256=77Fe8OIOLSjDSNdLiL5xywMKO-AGE42rdXkqKo4Ee-k,7531 3 | appdirs-1.4.3.dist-info/METADATA,sha256=3IFw6jTfImdOqsCb2GYvVR157tL7KEzfRAszn382csk,8773 4 | appdirs-1.4.3.dist-info/RECORD,, 5 | appdirs-1.4.3.dist-info/WHEEL,sha256=o2k-Qa-RMNIJmUdIc7KU6VWR_ErNRbWNlxDIpl7lm34,110 6 | appdirs-1.4.3.dist-info/metadata.json,sha256=fL_Q-GuFJu3PJxMrwU7SdsI8RGqjIfi2AvouCSF5DSA,1359 7 | appdirs-1.4.3.dist-info/top_level.txt,sha256=nKncE8CUqZERJ6VuQWL4_bkunSPDNfn7KZqb4Tr5YEM,8 8 | appdirs-1.4.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 9 | appdirs.pyc,, 10 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/appdirs-1.4.3.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: py2-none-any 5 | Tag: py3-none-any 6 | 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/appdirs-1.4.3.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries :: Python Modules"], "extensions": {"python.details": {"contacts": [{"email": "trentm@gmail.com; github@srid.name; jr@its.to", "name": "Trent Mick; Sridhar Ratnakumar; Jeff Rouse", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "http://github.com/ActiveState/appdirs"}}}, "generator": "bdist_wheel (0.29.0)", "keywords": ["application", "directory", "log", "cache", "user"], "license": "MIT", "metadata_version": "2.0", "name": "appdirs", "summary": "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\".", "test_requires": [{"requires": []}], "version": "1.4.3"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/appdirs-1.4.3.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | appdirs 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/blessings-1.6.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/blessings-1.6.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | blessings/__init__.py,sha256=I9SKk-63upIr_QutPp6ct9xInNJTtqJaNimtzYKoV44,22203 2 | blessings/tests.py,sha256=e3d937m416_Y6LYICguGwk8oBhXr3-LA22J8iX6CvMA,8564 3 | blessings-1.6.dist-info/DESCRIPTION.rst,sha256=HSW96gAvLtGt-f2kRZzyUWzr8smde4o3TspyeZHHLAc,17884 4 | blessings-1.6.dist-info/METADATA,sha256=2WuGvmg_F02Mokm9-mEEWkdSwYmi7AUT5ofwtG9RKuU,18982 5 | blessings-1.6.dist-info/RECORD,, 6 | blessings-1.6.dist-info/WHEEL,sha256=BtVfdXUcEYLcFjOkbIrCFRyXU4qszVPt-E9o3RWkSNw,93 7 | blessings-1.6.dist-info/metadata.json,sha256=dKPsRM8-DkHVtmeWCljYcH8YZ6rdezOkbqMeEwoAd9o,1228 8 | blessings-1.6.dist-info/top_level.txt,sha256=vzAJmOe2K6vUJXLCDJIkIX05x4C-TjBDN7LcVcV-SpM,10 9 | blessings-1.6.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 10 | blessings/tests.pyc,, 11 | blessings/__init__.pyc,, 12 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/blessings-1.6.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/blessings-1.6.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Intended Audience :: Developers", "Natural Language :: English", "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: Console :: Curses", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: User Interfaces", "Topic :: Terminals"], "extensions": {"python.details": {"contacts": [{"email": "erikrose@grinchcentral.com", "name": "Erik Rose", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/erikrose/blessings"}}}, "generator": "bdist_wheel (0.29.0)", "keywords": ["terminal", "tty", "curses", "ncurses", "formatting", "style", "color", "console"], "license": "MIT", "metadata_version": "2.0", "name": "blessings", "summary": "A thin, practical wrapper around terminal coloring, styling, and positioning", "test_requires": [{"requires": ["nose"]}], "version": "1.6"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/blessings-1.6.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | blessings 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/cmd2-0.7.0.dist-info/DESCRIPTION.rst: -------------------------------------------------------------------------------- 1 | cmd2 is an enhancement to the standard library's cmd module for Python 2.7 2 | and Python 3.3+. It is pure Python code with dependencies only on the six and pyparsing modules. 3 | 4 | The latest documentation for cmd2 can be read online here: 5 | https://cmd2.readthedocs.io/ 6 | 7 | Drop-in replacement adds several features for command-prompt tools: 8 | 9 | * Searchable command history (commands: "hi", "li", "run") 10 | * Load commands from file, save to file, edit commands in file 11 | * Multi-line commands 12 | * Case-insensitive commands 13 | * Special-character shortcut commands (beyond cmd's "@" and "!") 14 | * Settable environment parameters 15 | * Parsing commands with flags 16 | * > (filename), >> (filename) redirect output to file 17 | * < (filename) gets input from file 18 | * bare >, >>, < redirect to/from paste buffer 19 | * accepts abbreviated commands when unambiguous 20 | * `py` enters interactive Python console 21 | * test apps against sample session transcript (see example/example.py) 22 | 23 | Useable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd. 24 | 25 | 26 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/cmd2-0.7.0.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/cmd2-0.7.0.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | cmd2.py,sha256=TIqq2t8RF8l5mpTpkbRSF5ZDNQo02VwW_kZF8jnc7zg,71797 2 | cmd2-0.7.0.dist-info/DESCRIPTION.rst,sha256=IX07BD3--NUituAvF6zMkZkTQWUqIZt_udDTr5QVS_w,1080 3 | cmd2-0.7.0.dist-info/METADATA,sha256=vuPyovh07SB86hkBnUf7DsJqp5J_TGyCYNcVlG4USbg,2309 4 | cmd2-0.7.0.dist-info/RECORD,, 5 | cmd2-0.7.0.dist-info/WHEEL,sha256=BtVfdXUcEYLcFjOkbIrCFRyXU4qszVPt-E9o3RWkSNw,93 6 | cmd2-0.7.0.dist-info/metadata.json,sha256=CWEJnYN5hJre1rCF-hPAG1Vjg7Zwr9LfZYv4abBDRok,1395 7 | cmd2-0.7.0.dist-info/top_level.txt,sha256=gJbOJmyrARwLhm5diXAtzlNQdxbDZ8iRJ8HJi65_5hg,5 8 | cmd2-0.7.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 9 | cmd2.pyc,, 10 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/cmd2-0.7.0.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/cmd2-0.7.0.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 5 - Production/Stable", "Environment :: Console", "Operating System :: OS Independent", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules"], "extensions": {"python.details": {"contacts": [{"email": "catherine.devlin@gmail.com", "name": "Catherine Devlin", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/python-cmd2/cmd2"}}}, "extras": [], "generator": "bdist_wheel (0.29.0)", "keywords": ["command", "prompt", "console", "cmd"], "license": "MIT", "metadata_version": "2.0", "name": "cmd2", "platform": "any", "run_requires": [{"requires": ["pyparsing (>=2.0.1)", "six"]}], "summary": "Extra features for standard library's cmd module", "test_requires": [{"requires": ["mock", "pytest"]}], "version": "0.7.0"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/cmd2-0.7.0.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | cmd2 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/colorama-0.3.7.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/colorama-0.3.7.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | colorama/__init__.py,sha256=9xByrTvk9upkL5NGV5It2Eje4-kzNLwa_1lGPWpXoNU,240 2 | colorama/ansi.py,sha256=Fi0un-QLqRm-v7o_nKiOqyC8PapBJK7DLV_q9LKtTO0,2524 3 | colorama/ansitowin32.py,sha256=gJZB35Lbdjatykd2zrUUnokMzkvcFgscyn_tNxxMFHA,9668 4 | colorama/initialise.py,sha256=cHqVJtb82OG7HUCxvQ2joG7N_CoxbIKbI_fgryZkj20,1917 5 | colorama/win32.py,sha256=_SCEoTK_GA2tU1nhbayKKac-v9Jn98lCPIFOeFMGCHQ,5365 6 | colorama/winterm.py,sha256=V7U7ojwG1q4n6PKripjEvW_htYQi5ueXSM3LUUoqqDY,6290 7 | colorama-0.3.7.dist-info/DESCRIPTION.rst,sha256=oNIWZSX7NYpppXc4oS3zaun30hW3ctttbZdcvgJ9QgI,12016 8 | colorama-0.3.7.dist-info/METADATA,sha256=NmCuuY6amEQLy991v3T9dL5UvsDPQ8PEtDdGXPflBS8,13082 9 | colorama-0.3.7.dist-info/RECORD,, 10 | colorama-0.3.7.dist-info/WHEEL,sha256=AvR0WeTpDaxT645bl5FQxUK6NPsTls2ttpcGJg3j1Xg,110 11 | colorama-0.3.7.dist-info/metadata.json,sha256=_A6qxKci3BuSgGPaKAnPRqjnRiCqDYPS4s-VuzYHQWo,1153 12 | colorama-0.3.7.dist-info/top_level.txt,sha256=_Kx6-Cni2BT1PEATPhrSRxo0d7kSgfBbHf5o7IF1ABw,9 13 | colorama-0.3.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 14 | colorama/ansi.pyc,, 15 | colorama/win32.pyc,, 16 | colorama/winterm.pyc,, 17 | colorama/ansitowin32.pyc,, 18 | colorama/initialise.pyc,, 19 | colorama/__init__.pyc,, 20 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/colorama-0.3.7.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.24.0) 3 | Root-Is-Purelib: true 4 | Tag: py2-none-any 5 | Tag: py3-none-any 6 | 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/colorama-0.3.7.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"license": "BSD", "name": "colorama", "metadata_version": "2.0", "generator": "bdist_wheel (0.24.0)", "summary": "Cross-platform colored terminal text.", "version": "0.3.7", "extensions": {"python.details": {"project_urls": {"Home": "https://github.com/tartley/colorama"}, "document_names": {"description": "DESCRIPTION.rst"}, "contacts": [{"role": "author", "email": "tartley@tartley.com", "name": "Arnon Yaari"}]}}, "keywords": ["color", "colour", "terminal", "text", "ansi", "windows", "crossplatform", "xplatform"], "classifiers": ["Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Terminals"]} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/colorama-0.3.7.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | colorama 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/colorama/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. 2 | from .initialise import init, deinit, reinit, colorama_text 3 | from .ansi import Fore, Back, Style, Cursor 4 | from .ansitowin32 import AnsiToWin32 5 | 6 | __version__ = '0.3.7' 7 | 8 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/configparser-3.5.0-py2.7-nspkg.pth: -------------------------------------------------------------------------------- 1 | import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('backports',));importlib = has_mfs and __import__('importlib.util');has_mfs and __import__('importlib.machinery');m = has_mfs and sys.modules.setdefault('backports', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('backports', [os.path.dirname(p)])));m = m or sys.modules.setdefault('backports', types.ModuleType('backports'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p) 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/configparser-3.5.0.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/configparser-3.5.0.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | configparser-3.5.0-py2.7-nspkg.pth,sha256=JpsVvKKmYIJ0uK7Fig4dQuQEc4TCDz21QAJxx2D3OCo,554 2 | configparser.py,sha256=tfAyIKy3W0agfhxtJ_yE1jlJjomgA6UR_j6SPVJ7USY,1508 3 | backports/configparser/__init__.py,sha256=mNPEQI06rWsr0mI3KvwMUxhfbejpU2ndwSQQdVhXFf8,55060 4 | backports/configparser/helpers.py,sha256=i3ZCUYknXACKE5Y_G_sxbMKLlRvaPH1rHCMq63NkoJY,5248 5 | configparser-3.5.0.dist-info/DESCRIPTION.rst,sha256=4DFlmdtp7VP2__ElnYgjqY0d6zy_E6Lsn4MgexE3Qf8,11584 6 | configparser-3.5.0.dist-info/METADATA,sha256=yvAC94M47wsjEKaqzmxe8-tSZv8hpXlfKKdg68xn2ts,12638 7 | configparser-3.5.0.dist-info/RECORD,, 8 | configparser-3.5.0.dist-info/WHEEL,sha256=BtVfdXUcEYLcFjOkbIrCFRyXU4qszVPt-E9o3RWkSNw,93 9 | configparser-3.5.0.dist-info/metadata.json,sha256=fiZh5F5wGDc0o6qrS_KmmNMJKDSmozP-uGdwZTRBqWQ,1179 10 | configparser-3.5.0.dist-info/namespace_packages.txt,sha256=cGjaLMOoBR1FK0ApojtzWVmViTtJ7JGIK_HwXiEsvtU,10 11 | configparser-3.5.0.dist-info/top_level.txt,sha256=mIs8gajd7cvEWhVluv4u6ocaHw_TJ9rOrpkZEFv-7Hc,23 12 | configparser-3.5.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 13 | configparser.pyc,, 14 | backports/configparser/helpers.pyc,, 15 | backports/configparser/__init__.pyc,, 16 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/configparser-3.5.0.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/configparser-3.5.0.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules"], "extensions": {"python.details": {"contacts": [{"email": "lukasz@langa.pl", "name": "Lukasz Langa", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "http://docs.python.org/3/library/configparser.html"}}}, "generator": "bdist_wheel (0.29.0)", "keywords": ["configparser", "ini", "parsing", "conf", "cfg", "configuration", "file"], "license": "MIT", "metadata_version": "2.0", "name": "configparser", "platform": "any", "summary": "This library brings the updated configparser from Python 3.5 to Python 2.6-3.5.", "version": "3.5.0"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/configparser-3.5.0.dist-info/namespace_packages.txt: -------------------------------------------------------------------------------- 1 | backports 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/configparser-3.5.0.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | backports 2 | configparser 3 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/_compat.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import decimal 3 | from decimal import Context 4 | 5 | if sys.version_info > (3,): 6 | long = int 7 | xrange = range 8 | else: 9 | long = long # pylint: disable=long-builtin 10 | xrange = xrange # pylint: disable=xrange-builtin 11 | 12 | # unicode / binary types 13 | if sys.version_info > (3,): 14 | text_type = str 15 | binary_type = bytes 16 | string_types = (str,) 17 | unichr = chr 18 | def maybe_decode(x): 19 | return x.decode() 20 | def maybe_encode(x): 21 | return x.encode() 22 | else: 23 | text_type = unicode # pylint: disable=unicode-builtin, undefined-variable 24 | binary_type = str 25 | string_types = ( 26 | basestring, # pylint: disable=basestring-builtin, undefined-variable 27 | ) 28 | unichr = unichr # pylint: disable=unichr-builtin 29 | def maybe_decode(x): 30 | return x 31 | def maybe_encode(x): 32 | return x 33 | 34 | 35 | def round_py2_compat(what): 36 | """ 37 | Python 2 and Python 3 use different rounding strategies in round(). This 38 | function ensures that results are python2/3 compatible and backward 39 | compatible with previous py2 releases 40 | :param what: float 41 | :return: rounded long 42 | """ 43 | d = Context( 44 | prec=len(str(long(what))), # round to integer with max precision 45 | rounding=decimal.ROUND_HALF_UP 46 | ).create_decimal(str(what)) # str(): python 2.6 compat 47 | return long(d) 48 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/hash.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | """Hashing backwards compatibility wrapper""" 17 | 18 | import hashlib 19 | 20 | 21 | hashes = {} 22 | hashes['MD5'] = hashlib.md5 23 | hashes['SHA1'] = hashlib.sha1 24 | hashes['SHA224'] = hashlib.sha224 25 | hashes['SHA256'] = hashlib.sha256 26 | hashes['SHA384'] = hashlib.sha384 27 | hashes['SHA512'] = hashlib.sha512 28 | 29 | 30 | def get(algorithm): 31 | return hashes[algorithm.upper()] 32 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/AVC.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2016 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.txtbase 17 | 18 | 19 | class AVC(dns.rdtypes.txtbase.TXTBase): 20 | 21 | """AVC record 22 | 23 | @see: U{http://www.iana.org/assignments/dns-parameters/AVC/avc-completed-template}""" 24 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/CDNSKEY.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2004-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.dnskeybase 17 | from dns.rdtypes.dnskeybase import flags_to_text_set, flags_from_text_set 18 | 19 | 20 | __all__ = ['flags_to_text_set', 'flags_from_text_set'] 21 | 22 | 23 | class CDNSKEY(dns.rdtypes.dnskeybase.DNSKEYBase): 24 | 25 | """CDNSKEY record""" 26 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/CDS.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.dsbase 17 | 18 | 19 | class CDS(dns.rdtypes.dsbase.DSBase): 20 | 21 | """CDS record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/CNAME.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.nsbase 17 | 18 | 19 | class CNAME(dns.rdtypes.nsbase.NSBase): 20 | 21 | """CNAME record 22 | 23 | Note: although CNAME is officially a singleton type, dnspython allows 24 | non-singleton CNAME rdatasets because such sets have been commonly 25 | used by BIND and other nameservers for load balancing.""" 26 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/DLV.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.dsbase 17 | 18 | 19 | class DLV(dns.rdtypes.dsbase.DSBase): 20 | 21 | """DLV record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/DNAME.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.nsbase 17 | 18 | 19 | class DNAME(dns.rdtypes.nsbase.UncompressedNS): 20 | 21 | """DNAME record""" 22 | 23 | def to_digestable(self, origin=None): 24 | return self.target.to_digestable(origin) 25 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/DNSKEY.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2004-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.dnskeybase 17 | from dns.rdtypes.dnskeybase import flags_to_text_set, flags_from_text_set 18 | 19 | 20 | __all__ = ['flags_to_text_set', 'flags_from_text_set'] 21 | 22 | 23 | class DNSKEY(dns.rdtypes.dnskeybase.DNSKEYBase): 24 | 25 | """DNSKEY record""" 26 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/DS.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.dsbase 17 | 18 | 19 | class DS(dns.rdtypes.dsbase.DSBase): 20 | 21 | """DS record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/EUI48.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2015 Red Hat, Inc. 2 | # Author: Petr Spacek 3 | # 4 | # Permission to use, copy, modify, and distribute this software and its 5 | # documentation for any purpose with or without fee is hereby granted, 6 | # provided that the above copyright notice and this permission notice 7 | # appear in all copies. 8 | # 9 | # THE SOFTWARE IS PROVIDED 'AS IS' AND RED HAT DISCLAIMS ALL WARRANTIES 10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 15 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | 17 | import dns.rdtypes.euibase 18 | 19 | 20 | class EUI48(dns.rdtypes.euibase.EUIBase): 21 | 22 | """EUI48 record 23 | 24 | @ivar fingerprint: 48-bit Extended Unique Identifier (EUI-48) 25 | @type fingerprint: string 26 | @see: rfc7043.txt""" 27 | 28 | byte_len = 6 # 0123456789ab (in hex) 29 | text_len = byte_len * 3 - 1 # 01-23-45-67-89-ab 30 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/EUI64.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2015 Red Hat, Inc. 2 | # Author: Petr Spacek 3 | # 4 | # Permission to use, copy, modify, and distribute this software and its 5 | # documentation for any purpose with or without fee is hereby granted, 6 | # provided that the above copyright notice and this permission notice 7 | # appear in all copies. 8 | # 9 | # THE SOFTWARE IS PROVIDED 'AS IS' AND RED HAT DISCLAIMS ALL WARRANTIES 10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 15 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | 17 | import dns.rdtypes.euibase 18 | 19 | 20 | class EUI64(dns.rdtypes.euibase.EUIBase): 21 | 22 | """EUI64 record 23 | 24 | @ivar fingerprint: 64-bit Extended Unique Identifier (EUI-64) 25 | @type fingerprint: string 26 | @see: rfc7043.txt""" 27 | 28 | byte_len = 8 # 0123456789abcdef (in hex) 29 | text_len = byte_len * 3 - 1 # 01-23-45-67-89-ab-cd-ef 30 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/MX.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.mxbase 17 | 18 | 19 | class MX(dns.rdtypes.mxbase.MXBase): 20 | 21 | """MX record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/NS.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.nsbase 17 | 18 | 19 | class NS(dns.rdtypes.nsbase.NSBase): 20 | 21 | """NS record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/PTR.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.nsbase 17 | 18 | 19 | class PTR(dns.rdtypes.nsbase.NSBase): 20 | 21 | """PTR record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/RT.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.mxbase 17 | 18 | 19 | class RT(dns.rdtypes.mxbase.UncompressedDowncasingMX): 20 | 21 | """RT record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/SPF.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.txtbase 17 | 18 | 19 | class SPF(dns.rdtypes.txtbase.TXTBase): 20 | 21 | """SPF record 22 | 23 | @see: RFC 4408""" 24 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/TXT.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.txtbase 17 | 18 | 19 | class TXT(dns.rdtypes.txtbase.TXTBase): 20 | 21 | """TXT record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/ANY/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | """Class ANY (generic) rdata type classes.""" 17 | 18 | __all__ = [ 19 | 'AFSDB', 20 | 'CDNSKEY', 21 | 'CDS', 22 | 'CERT', 23 | 'CNAME', 24 | 'DLV', 25 | 'DNAME', 26 | 'DNSKEY', 27 | 'DS', 28 | 'EUI48', 29 | 'EUI64', 30 | 'GPOS', 31 | 'HINFO', 32 | 'HIP', 33 | 'ISDN', 34 | 'LOC', 35 | 'MX', 36 | 'NS', 37 | 'NSEC', 38 | 'NSEC3', 39 | 'NSEC3PARAM', 40 | 'TLSA', 41 | 'PTR', 42 | 'RP', 43 | 'RRSIG', 44 | 'RT', 45 | 'SOA', 46 | 'SPF', 47 | 'SSHFP', 48 | 'TXT', 49 | 'X25', 50 | ] 51 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/IN/KX.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.mxbase 17 | 18 | 19 | class KX(dns.rdtypes.mxbase.UncompressedMX): 20 | 21 | """KX record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/IN/NSAP_PTR.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | import dns.rdtypes.nsbase 17 | 18 | 19 | class NSAP_PTR(dns.rdtypes.nsbase.UncompressedNS): 20 | 21 | """NSAP-PTR record""" 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/IN/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | """Class IN rdata type classes.""" 17 | 18 | __all__ = [ 19 | 'A', 20 | 'AAAA', 21 | 'APL', 22 | 'DHCID', 23 | 'KX', 24 | 'NAPTR', 25 | 'NSAP', 26 | 'NSAP_PTR', 27 | 'PX', 28 | 'SRV', 29 | 'WKS', 30 | ] 31 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/rdtypes/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | """DNS rdata type classes""" 17 | 18 | __all__ = [ 19 | 'ANY', 20 | 'IN', 21 | 'euibase', 22 | 'mxbase', 23 | 'nsbase', 24 | ] 25 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dns/version.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. 2 | # 3 | # Permission to use, copy, modify, and distribute this software and its 4 | # documentation for any purpose with or without fee is hereby granted, 5 | # provided that the above copyright notice and this permission notice 6 | # appear in all copies. 7 | # 8 | # THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 9 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 11 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 14 | # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | 16 | """dnspython release version information.""" 17 | 18 | MAJOR = 1 19 | MINOR = 15 20 | MICRO = 0 21 | RELEASELEVEL = 0x0f 22 | SERIAL = 0 23 | 24 | if RELEASELEVEL == 0x0f: 25 | version = '%d.%d.%d' % (MAJOR, MINOR, MICRO) 26 | elif RELEASELEVEL == 0x00: 27 | version = '%d.%d.%dx%d' % \ 28 | (MAJOR, MINOR, MICRO, SERIAL) 29 | else: 30 | version = '%d.%d.%d%x%d' % \ 31 | (MAJOR, MINOR, MICRO, RELEASELEVEL, SERIAL) 32 | 33 | hexversion = MAJOR << 24 | MINOR << 16 | MICRO << 8 | RELEASELEVEL << 4 | \ 34 | SERIAL 35 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dnspython-1.15.0.dist-info/DESCRIPTION.rst: -------------------------------------------------------------------------------- 1 | dnspython is a DNS toolkit for Python. It supports almost all 2 | record types. It can be used for queries, zone transfers, and dynamic 3 | updates. It supports TSIG authenticated messages and EDNS0. 4 | 5 | dnspython provides both high and low level access to DNS. The high 6 | level classes perform queries for data of a given name, type, and 7 | class, and return an answer set. The low level classes allow 8 | direct manipulation of DNS zones, messages, names, and records. 9 | 10 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dnspython-1.15.0.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dnspython-1.15.0.dist-info/LICENSE.txt: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (C) 2001-2003 Nominum, Inc. 4 | 5 | Permission to use, copy, modify, and distribute this software and its 6 | documentation for any purpose with or without fee is hereby granted, 7 | provided that the above copyright notice and this permission notice 8 | appear in all copies. 9 | 10 | THE SOFTWARE IS PROVIDED "AS IS" AND NOMINUM DISCLAIMS ALL WARRANTIES 11 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 13 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 16 | OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dnspython-1.15.0.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: py2-none-any 5 | Tag: py3-none-any 6 | 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dnspython-1.15.0.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: Freeware", "Operating System :: Microsoft :: Windows :: Windows 95/98/2000", "Operating System :: POSIX", "Programming Language :: Python", "Topic :: Internet :: Name Service (DNS)", "Topic :: Software Development :: Libraries :: Python Modules", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5"], "download_url": "http://www.dnspython.org/kits/1.15.0/dnspython-1.15.0.tar.gz", "extensions": {"python.details": {"contacts": [{"email": "halley@dnspython.org", "name": "Bob Halley", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst", "license": "LICENSE.txt"}, "project_urls": {"Home": "http://www.dnspython.org"}}}, "generator": "bdist_wheel (0.29.0)", "license": "BSD-like", "metadata_version": "2.0", "name": "dnspython", "provides": "dns", "summary": "DNS toolkit", "version": "1.15.0"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/dnspython-1.15.0.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | dns 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/easy_install.py: -------------------------------------------------------------------------------- 1 | """Run the EasyInstall command""" 2 | 3 | if __name__ == '__main__': 4 | from setuptools.command.easy_install import main 5 | main() 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar-0.3.6.dist-info/DESCRIPTION.rst: -------------------------------------------------------------------------------- 1 | Python Coding Toolkit for Pentester. 2 | Github: https://github.com/VillanCh/g3ar 3 | README.md: https://github.com/VillanCh/g3ar/blob/master/README.md 4 | 5 | 6 | 7 | https://github.com/VillanCh/g3ar/blob/master/HISTORY.md 8 | 9 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar-0.3.6.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar-0.3.6.dist-info/METADATA: -------------------------------------------------------------------------------- 1 | Metadata-Version: 2.0 2 | Name: g3ar 3 | Version: 0.3.6 4 | Summary: Python Coding Toolkit for Pentester. 5 | Home-page: https://github.com/VillanCh/g3ar 6 | Author: v1ll4n 7 | Author-email: v1ll4n@villanch.top 8 | License: BSD 2-Clause License 9 | Platform: UNKNOWN 10 | Requires-Dist: IPy 11 | Requires-Dist: colorama 12 | Requires-Dist: ipwhois 13 | Requires-Dist: prettytable 14 | 15 | Python Coding Toolkit for Pentester. 16 | Github: https://github.com/VillanCh/g3ar 17 | README.md: https://github.com/VillanCh/g3ar/blob/master/README.md 18 | 19 | 20 | 21 | https://github.com/VillanCh/g3ar/blob/master/HISTORY.md 22 | 23 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar-0.3.6.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar-0.3.6.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"extensions": {"python.details": {"contacts": [{"email": "v1ll4n@villanch.top", "name": "v1ll4n", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/VillanCh/g3ar"}}}, "extras": [], "generator": "bdist_wheel (0.29.0)", "license": "BSD 2-Clause License", "metadata_version": "2.0", "name": "g3ar", "run_requires": [{"requires": ["IPy", "colorama", "ipwhois", "prettytable"]}], "summary": "Python Coding Toolkit for Pentester.", "version": "0.3.6"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar-0.3.6.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | g3ar 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: G3ar entry 6 | Created: 2016/12/20 7 | """ 8 | 9 | import unittest 10 | 11 | from .threadutils.thread_pool import Pool as ThreadPool 12 | from .threadutils.contractor import Contractor 13 | from .decologger.decologger import Decologger as DecoLogger 14 | from .dict_parser.dict_parser import DictParser 15 | from .taskbulter.task_bulter import TaskBulter 16 | from .dict_parser.dict_parser_mixer import DictParserMixer 17 | #from .utils import ip_calc_utils 18 | from .utils.pyping import pyping 19 | from .utils.iter_utils import iter_mix 20 | 21 | #ThreadPool = thread_pool.Pool 22 | #Contractor = contractor.Contractor 23 | #DictParser = dict_parser.DictParser 24 | #DecoLogger = decologger.Decologger 25 | #TaskBulter = task_bulter.TaskBulter 26 | #IPv4CalcUtils = ip_calc_utils 27 | 28 | 29 | #---------------------------------------------------------------------- 30 | def ping(host, timeout=2, count=4): 31 | """""" 32 | return pyping(host, timeout, count) 33 | 34 | #---------------------------------------------------------------------- 35 | def dict_parser_mixer_func(*args): 36 | """""" 37 | for i in args: 38 | assert isinstance(i, DictParser) 39 | 40 | return iter_mix(*args) 41 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/decologger/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/g3ar/decologger/__init__.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/decologger/test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Test for decologger 6 | Created: 2016/12/18 7 | """ 8 | 9 | import unittest 10 | import traceback 11 | from .decologger import Decologger 12 | 13 | 14 | 15 | 16 | if __name__ == '__main__': 17 | unittest.main() -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/dict_parser/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Simple and Quick Parse your dictionary FOR TENTEST PROGRAMMER! 6 | Created: 2016/12/16 7 | """ 8 | 9 | from . import dict_parser 10 | from .dict_parser import * 11 | from .dict_parser_mixer import DictParser 12 | 13 | def get_dictparser(filename, 14 | session_id=DEFAULT_SESSION_ID, 15 | do_continue=False, 16 | session_data_file=SESSION_TABLE_FILE): 17 | return DictParser(filename, session_id, do_continue, session_data_file) 18 | 19 | 20 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/dict_parser/test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: TestForDictParser 6 | Created: 2016/12/16 7 | """ 8 | 9 | import unittest 10 | from .dict_parser import * 11 | 12 | 13 | 14 | 15 | if __name__ == '__main__': 16 | unittest.main() -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/taskbulter/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/g3ar/taskbulter/__init__.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/taskbulter/exceptions.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Define Many Exceptions 6 | Created: 2016/12/12 7 | """ 8 | 9 | import unittest 10 | 11 | 12 | ######################################################################## 13 | class TaskRuntimeError(Exception): 14 | """""" 15 | pass 16 | 17 | 18 | 19 | ######################################################################## 20 | class TaskCannotBeCalled(Exception): 21 | """""" 22 | pass 23 | 24 | 25 | ######################################################################## 26 | class ExistedTaskId(Exception): 27 | """""" 28 | pass 29 | 30 | 31 | 32 | 33 | if __name__ == '__main__': 34 | unittest.main() -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/taskbulter/utils_class.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Utils Classes 6 | Created: 2016/12/13 7 | """ 8 | 9 | import unittest 10 | 11 | 12 | ######################################################################## 13 | class Singleton(object): 14 | """""" 15 | #_instance = None 16 | 17 | #---------------------------------------------------------------------- 18 | def __new__(cls, *args, **kwargs): 19 | """singleton class wrapper""" 20 | if not hasattr(cls, '_instance'): 21 | origin = super(Singleton, cls) 22 | cls._instance = origin.__new__(cls, *args, **kwargs) 23 | return cls._instance 24 | 25 | 26 | 27 | if __name__ == '__main__': 28 | unittest.main() -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/threadutils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/g3ar/threadutils/__init__.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/utils/__init__.py: -------------------------------------------------------------------------------- 1 | from . import import_utils 2 | from . import inspect_utils 3 | from . import ip_calc_utils 4 | from . import print_utils 5 | from . import queue_utils 6 | from . import iter_utils -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/utils/import_utils.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Import Utils 6 | Created: 2017/1/2 7 | """ 8 | 9 | import unittest 10 | import os 11 | import sys 12 | 13 | #---------------------------------------------------------------------- 14 | def import_by_path(path, module_name, basedir='.'): 15 | """""" 16 | dirname = os.path.dirname(basedir) 17 | absdir = os.path.abspath(dirname) 18 | absdir = os.path.join(absdir, path) 19 | sys.path.append(absdir) 20 | mod = __import__(module_name) 21 | sys.path.remove(absdir) 22 | 23 | return mod 24 | 25 | if __name__ == '__main__': 26 | unittest.main() -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/utils/pyping/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Python Ping 6 | Created: 2016/12/26 7 | """ 8 | 9 | import unittest 10 | from .isalive import is_alive 11 | 12 | #---------------------------------------------------------------------- 13 | def pyping(target, timeout=2, count=4): 14 | """""" 15 | return is_alive(target) 16 | 17 | 18 | if __name__ == '__main__': 19 | unittest.main() -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/g3ar/utils/thread_utils.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: threads utils 6 | Created: 03/07/17 7 | """ 8 | 9 | import unittest 10 | import threading 11 | 12 | #---------------------------------------------------------------------- 13 | def start_new_thread(target, name=None, args=tuple(), 14 | kwargs={}, daemon=True): 15 | """""" 16 | ret = threading.Thread(target=target, args=args, 17 | kwargs=kwargs, name=name) 18 | ret.daemon = daemon 19 | ret.start() 20 | return ret 21 | 22 | 23 | 24 | if __name__ == '__main__': 25 | unittest.main() -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipaddr-2.1.11.dist-info/DESCRIPTION.rst: -------------------------------------------------------------------------------- 1 | UNKNOWN 2 | 3 | 4 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipaddr-2.1.11.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipaddr-2.1.11.dist-info/METADATA: -------------------------------------------------------------------------------- 1 | Metadata-Version: 2.0 2 | Name: ipaddr 3 | Version: 2.1.11 4 | Summary: UNKNOWN 5 | Home-page: http://code.google.com/p/ipaddr-py/ 6 | Author: Google 7 | Author-email: ipaddr-py-dev@googlegroups.com 8 | License: Apache License, Version 2.0 9 | Platform: UNKNOWN 10 | Classifier: Development Status :: 5 - Production/Stable 11 | Classifier: Intended Audience :: Developers 12 | Classifier: License :: OSI Approved :: Apache Software License 13 | Classifier: Operating System :: OS Independent 14 | Classifier: Topic :: Internet 15 | Classifier: Topic :: Software Development :: Libraries 16 | Classifier: Topic :: System :: Networking 17 | 18 | UNKNOWN 19 | 20 | 21 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipaddr-2.1.11.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | ipaddr.py,sha256=pdyMJo1GH2gDBvr-fU0jz8WDoocXmi0ppaTfx6dQ8nI,59578 2 | ipaddr-2.1.11.dist-info/DESCRIPTION.rst,sha256=OCTuuN6LcWulhHS3d5rfjdsQtW22n7HENFRh6jC6ego,10 3 | ipaddr-2.1.11.dist-info/METADATA,sha256=3ezjX6rbSkQ-coDGPcPWoSp9clYl5IKHbnpQM8wyQUg,578 4 | ipaddr-2.1.11.dist-info/RECORD,, 5 | ipaddr-2.1.11.dist-info/WHEEL,sha256=BtVfdXUcEYLcFjOkbIrCFRyXU4qszVPt-E9o3RWkSNw,93 6 | ipaddr-2.1.11.dist-info/metadata.json,sha256=sR16hRyXzH67w0F0l-rdm0QDfN9gK26o7AdphU39-PY,708 7 | ipaddr-2.1.11.dist-info/top_level.txt,sha256=xD6Kh91SkaBL5Ll6W3OsU3tsyOHTt2hK5KvfeIX3T3Q,7 8 | ipaddr-2.1.11.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 9 | ipaddr.pyc,, 10 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipaddr-2.1.11.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipaddr-2.1.11.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", "Topic :: Software Development :: Libraries", "Topic :: System :: Networking"], "extensions": {"python.details": {"contacts": [{"email": "ipaddr-py-dev@googlegroups.com", "name": "Google", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "http://code.google.com/p/ipaddr-py/"}}}, "generator": "bdist_wheel (0.29.0)", "license": "Apache License, Version 2.0", "metadata_version": "2.0", "name": "ipaddr", "summary": "UNKNOWN", "version": "2.1.11"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipaddr-2.1.11.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | ipaddr 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipwhois-0.15.1.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipwhois-0.15.1.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipwhois-0.15.1.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"extensions": {"python.details": {"contacts": [{"email": "secynic@gmail.com", "name": "Philip Hane", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/secynic/ipwhois"}}}, "extras": [], "generator": "bdist_wheel (0.29.0)", "license": "Copyright (c) 2013-2017 Philip Hane", "metadata_version": "2.0", "name": "ipwhois", "run_requires": [{"requires": ["dnspython", "ipaddr"]}], "summary": "Retrieve and parse whois data for IPv4 and IPv6 addresses.", "version": "0.15.1"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/ipwhois-0.15.1.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | ipwhois 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/packaging-16.8.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/packaging-16.8.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: py2-none-any 5 | Tag: py3-none-any 6 | 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/packaging-16.8.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4"], "extensions": {"python.details": {"contacts": [{"email": "donald@stufft.io", "name": "Donald Stufft and individual contributors", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/pypa/packaging"}}}, "extras": [], "generator": "bdist_wheel (0.29.0)", "license": "BSD or Apache License, Version 2.0", "metadata_version": "2.0", "name": "packaging", "run_requires": [{"requires": ["pyparsing", "six"]}], "summary": "Core utilities for Python packages", "version": "16.8"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/packaging-16.8.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | packaging 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/packaging/__about__.py: -------------------------------------------------------------------------------- 1 | # This file is dual licensed under the terms of the Apache License, Version 2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository 3 | # for complete details. 4 | from __future__ import absolute_import, division, print_function 5 | 6 | __all__ = [ 7 | "__title__", "__summary__", "__uri__", "__version__", "__author__", 8 | "__email__", "__license__", "__copyright__", 9 | ] 10 | 11 | __title__ = "packaging" 12 | __summary__ = "Core utilities for Python packages" 13 | __uri__ = "https://github.com/pypa/packaging" 14 | 15 | __version__ = "16.8" 16 | 17 | __author__ = "Donald Stufft and individual contributors" 18 | __email__ = "donald@stufft.io" 19 | 20 | __license__ = "BSD or Apache License, Version 2.0" 21 | __copyright__ = "Copyright 2014-2016 %s" % __author__ 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/packaging/__init__.py: -------------------------------------------------------------------------------- 1 | # This file is dual licensed under the terms of the Apache License, Version 2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository 3 | # for complete details. 4 | from __future__ import absolute_import, division, print_function 5 | 6 | from .__about__ import ( 7 | __author__, __copyright__, __email__, __license__, __summary__, __title__, 8 | __uri__, __version__ 9 | ) 10 | 11 | __all__ = [ 12 | "__title__", "__summary__", "__uri__", "__version__", "__author__", 13 | "__email__", "__license__", "__copyright__", 14 | ] 15 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/packaging/_compat.py: -------------------------------------------------------------------------------- 1 | # This file is dual licensed under the terms of the Apache License, Version 2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository 3 | # for complete details. 4 | from __future__ import absolute_import, division, print_function 5 | 6 | import sys 7 | 8 | 9 | PY2 = sys.version_info[0] == 2 10 | PY3 = sys.version_info[0] == 3 11 | 12 | # flake8: noqa 13 | 14 | if PY3: 15 | string_types = str, 16 | else: 17 | string_types = basestring, 18 | 19 | 20 | def with_metaclass(meta, *bases): 21 | """ 22 | Create a base class with a metaclass. 23 | """ 24 | # This requires a bit of explanation: the basic idea is to make a dummy 25 | # metaclass for one level of class instantiation that replaces itself with 26 | # the actual metaclass. 27 | class metaclass(meta): 28 | def __new__(cls, name, this_bases, d): 29 | return meta(name, bases, d) 30 | return type.__new__(metaclass, 'temporary_class', (), {}) 31 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/packaging/utils.py: -------------------------------------------------------------------------------- 1 | # This file is dual licensed under the terms of the Apache License, Version 2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository 3 | # for complete details. 4 | from __future__ import absolute_import, division, print_function 5 | 6 | import re 7 | 8 | 9 | _canonicalize_regex = re.compile(r"[-_.]+") 10 | 11 | 12 | def canonicalize_name(name): 13 | # This is taken from PEP 503. 14 | return _canonicalize_regex.sub("-", name).lower() 15 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip-9.0.1.dist-info/DESCRIPTION.rst: -------------------------------------------------------------------------------- 1 | pip 2 | === 3 | 4 | The `PyPA recommended 5 | `_ 6 | tool for installing Python packages. 7 | 8 | * `Installation `_ 9 | * `Documentation `_ 10 | * `Changelog `_ 11 | * `Github Page `_ 12 | * `Issue Tracking `_ 13 | * `User mailing list `_ 14 | * `Dev mailing list `_ 15 | * User IRC: #pypa on Freenode. 16 | * Dev IRC: #pypa-dev on Freenode. 17 | 18 | 19 | .. image:: https://img.shields.io/pypi/v/pip.svg 20 | :target: https://pypi.python.org/pypi/pip 21 | 22 | .. image:: https://img.shields.io/travis/pypa/pip/master.svg 23 | :target: http://travis-ci.org/pypa/pip 24 | 25 | .. image:: https://img.shields.io/appveyor/ci/pypa/pip.svg 26 | :target: https://ci.appveyor.com/project/pypa/pip/history 27 | 28 | .. image:: https://readthedocs.org/projects/pip/badge/?version=stable 29 | :target: https://pip.pypa.io/en/stable 30 | 31 | Code of Conduct 32 | --------------- 33 | 34 | Everyone interacting in the pip project's codebases, issue trackers, chat 35 | rooms, and mailing lists is expected to follow the `PyPA Code of Conduct`_. 36 | 37 | .. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/ 38 | 39 | 40 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip-9.0.1.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip-9.0.1.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: py2-none-any 5 | Tag: py3-none-any 6 | 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip-9.0.1.dist-info/entry_points.txt: -------------------------------------------------------------------------------- 1 | [console_scripts] 2 | pip = pip:main 3 | pip3 = pip:main 4 | pip3.5 = pip:main 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip-9.0.1.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Build Tools", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: PyPy"], "extensions": {"python.commands": {"wrap_console": {"pip": "pip:main", "pip3": "pip:main", "pip3.5": "pip:main"}}, "python.details": {"contacts": [{"email": "python-virtualenv@groups.google.com", "name": "The pip developers", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://pip.pypa.io/"}}, "python.exports": {"console_scripts": {"pip": "pip:main", "pip3": "pip:main", "pip3.5": "pip:main"}}}, "extras": ["testing"], "generator": "bdist_wheel (0.29.0)", "keywords": ["easy_install", "distutils", "setuptools", "egg", "virtualenv"], "license": "MIT", "metadata_version": "2.0", "name": "pip", "requires_python": ">=2.6,!=3.0.*,!=3.1.*,!=3.2.*", "run_requires": [{"extra": "testing", "requires": ["mock", "pretend", "pytest", "scripttest (>=1.3)", "virtualenv (>=1.10)"]}], "summary": "The PyPA recommended tool for installing Python packages.", "test_requires": [{"requires": ["mock", "pretend", "pytest", "scripttest (>=1.3)", "virtualenv (>=1.10)"]}], "version": "9.0.1"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip-9.0.1.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/__main__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | import os 4 | import sys 5 | 6 | # If we are running from a wheel, add the wheel to sys.path 7 | # This allows the usage python pip-*.whl/pip install pip-*.whl 8 | if __package__ == '': 9 | # __file__ is pip-*.whl/pip/__main__.py 10 | # first dirname call strips of '/__main__.py', second strips off '/pip' 11 | # Resulting path is the name of the wheel itself 12 | # Add that to sys.path so we can import pip 13 | path = os.path.dirname(os.path.dirname(__file__)) 14 | sys.path.insert(0, path) 15 | 16 | import pip # noqa 17 | 18 | if __name__ == '__main__': 19 | sys.exit(pip.main()) 20 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/cachecontrol/__init__.py: -------------------------------------------------------------------------------- 1 | """CacheControl import Interface. 2 | 3 | Make it easy to import from cachecontrol without long namespaces. 4 | """ 5 | __author__ = 'Eric Larson' 6 | __email__ = 'eric@ionrock.org' 7 | __version__ = '0.11.7' 8 | 9 | from .wrapper import CacheControl 10 | from .adapter import CacheControlAdapter 11 | from .controller import CacheController 12 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/cachecontrol/cache.py: -------------------------------------------------------------------------------- 1 | """ 2 | The cache object API for implementing caches. The default is a thread 3 | safe in-memory dictionary. 4 | """ 5 | from threading import Lock 6 | 7 | 8 | class BaseCache(object): 9 | 10 | def get(self, key): 11 | raise NotImplemented() 12 | 13 | def set(self, key, value): 14 | raise NotImplemented() 15 | 16 | def delete(self, key): 17 | raise NotImplemented() 18 | 19 | def close(self): 20 | pass 21 | 22 | 23 | class DictCache(BaseCache): 24 | 25 | def __init__(self, init_dict=None): 26 | self.lock = Lock() 27 | self.data = init_dict or {} 28 | 29 | def get(self, key): 30 | return self.data.get(key, None) 31 | 32 | def set(self, key, value): 33 | with self.lock: 34 | self.data.update({key: value}) 35 | 36 | def delete(self, key): 37 | with self.lock: 38 | if key in self.data: 39 | self.data.pop(key) 40 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/cachecontrol/caches/__init__.py: -------------------------------------------------------------------------------- 1 | from textwrap import dedent 2 | 3 | try: 4 | from .file_cache import FileCache 5 | except ImportError: 6 | notice = dedent(''' 7 | NOTE: In order to use the FileCache you must have 8 | lockfile installed. You can install it via pip: 9 | pip install lockfile 10 | ''') 11 | print(notice) 12 | 13 | 14 | try: 15 | import redis 16 | from .redis_cache import RedisCache 17 | except ImportError: 18 | pass 19 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py: -------------------------------------------------------------------------------- 1 | from __future__ import division 2 | 3 | from datetime import datetime 4 | 5 | 6 | def total_seconds(td): 7 | """Python 2.6 compatability""" 8 | if hasattr(td, 'total_seconds'): 9 | return td.total_seconds() 10 | 11 | ms = td.microseconds 12 | secs = (td.seconds + td.days * 24 * 3600) 13 | return (ms + secs * 10**6) / 10**6 14 | 15 | 16 | class RedisCache(object): 17 | 18 | def __init__(self, conn): 19 | self.conn = conn 20 | 21 | def get(self, key): 22 | return self.conn.get(key) 23 | 24 | def set(self, key, value, expires=None): 25 | if not expires: 26 | self.conn.set(key, value) 27 | else: 28 | expires = expires - datetime.now() 29 | self.conn.setex(key, total_seconds(expires), value) 30 | 31 | def delete(self, key): 32 | self.conn.delete(key) 33 | 34 | def clear(self): 35 | """Helper for clearing all the keys in a database. Use with 36 | caution!""" 37 | for key in self.conn.keys(): 38 | self.conn.delete(key) 39 | 40 | def close(self): 41 | self.conn.disconnect() 42 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/cachecontrol/compat.py: -------------------------------------------------------------------------------- 1 | try: 2 | from urllib.parse import urljoin 3 | except ImportError: 4 | from urlparse import urljoin 5 | 6 | 7 | try: 8 | import cPickle as pickle 9 | except ImportError: 10 | import pickle 11 | 12 | 13 | from pip._vendor.requests.packages.urllib3.response import HTTPResponse 14 | from pip._vendor.requests.packages.urllib3.util import is_fp_closed 15 | 16 | # Replicate some six behaviour 17 | try: 18 | text_type = (unicode,) 19 | except NameError: 20 | text_type = (str,) 21 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/cachecontrol/wrapper.py: -------------------------------------------------------------------------------- 1 | from .adapter import CacheControlAdapter 2 | from .cache import DictCache 3 | 4 | 5 | def CacheControl(sess, 6 | cache=None, 7 | cache_etags=True, 8 | serializer=None, 9 | heuristic=None): 10 | 11 | cache = cache or DictCache() 12 | adapter = CacheControlAdapter( 13 | cache, 14 | cache_etags=cache_etags, 15 | serializer=serializer, 16 | heuristic=heuristic, 17 | ) 18 | sess.mount('http://', adapter) 19 | sess.mount('https://', adapter) 20 | 21 | return sess 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/colorama/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. 2 | from .initialise import init, deinit, reinit, colorama_text 3 | from .ansi import Fore, Back, Style, Cursor 4 | from .ansitowin32 import AnsiToWin32 5 | 6 | __version__ = '0.3.7' 7 | 8 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/distlib/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright (C) 2012-2016 Vinay Sajip. 4 | # Licensed to the Python Software Foundation under a contributor agreement. 5 | # See LICENSE.txt and CONTRIBUTORS.txt. 6 | # 7 | import logging 8 | 9 | __version__ = '0.2.4' 10 | 11 | class DistlibException(Exception): 12 | pass 13 | 14 | try: 15 | from logging import NullHandler 16 | except ImportError: # pragma: no cover 17 | class NullHandler(logging.Handler): 18 | def handle(self, record): pass 19 | def emit(self, record): pass 20 | def createLock(self): self.lock = None 21 | 22 | logger = logging.getLogger(__name__) 23 | logger.addHandler(NullHandler()) 24 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/__init__.py: -------------------------------------------------------------------------------- 1 | """Modules copied from Python 3 standard libraries, for internal use only. 2 | 3 | Individual classes and functions are found in d2._backport.misc. Intended 4 | usage is to always import things missing from 3.1 from that module: the 5 | built-in/stdlib objects will be used if found. 6 | """ 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/misc.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright (C) 2012 The Python Software Foundation. 4 | # See LICENSE.txt and CONTRIBUTORS.txt. 5 | # 6 | """Backports for individual classes and functions.""" 7 | 8 | import os 9 | import sys 10 | 11 | __all__ = ['cache_from_source', 'callable', 'fsencode'] 12 | 13 | 14 | try: 15 | from imp import cache_from_source 16 | except ImportError: 17 | def cache_from_source(py_file, debug=__debug__): 18 | ext = debug and 'c' or 'o' 19 | return py_file + ext 20 | 21 | 22 | try: 23 | callable = callable 24 | except NameError: 25 | from collections import Callable 26 | 27 | def callable(obj): 28 | return isinstance(obj, Callable) 29 | 30 | 31 | try: 32 | fsencode = os.fsencode 33 | except AttributeError: 34 | def fsencode(filename): 35 | if isinstance(filename, bytes): 36 | return filename 37 | elif isinstance(filename, str): 38 | return filename.encode(sys.getfilesystemencoding()) 39 | else: 40 | raise TypeError("expect bytes or str, not %s" % 41 | type(filename).__name__) 42 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/distlib/t32.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/pip/_vendor/distlib/t32.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/distlib/t64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/pip/_vendor/distlib/t64.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/distlib/w32.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/pip/_vendor/distlib/w32.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/distlib/w64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/pip/_vendor/distlib/w64.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | HTML parsing library based on the WHATWG "HTML5" 3 | specification. The parser is designed to be compatible with existing 4 | HTML found in the wild and implements well-defined error recovery that 5 | is largely compatible with modern desktop web browsers. 6 | 7 | Example usage: 8 | 9 | import html5lib 10 | f = open("my_document.html") 11 | tree = html5lib.parse(f) 12 | """ 13 | 14 | from __future__ import absolute_import, division, unicode_literals 15 | 16 | from .html5parser import HTMLParser, parse, parseFragment 17 | from .treebuilders import getTreeBuilder 18 | from .treewalkers import getTreeWalker 19 | from .serializer import serialize 20 | 21 | __all__ = ["HTMLParser", "parse", "parseFragment", "getTreeBuilder", 22 | "getTreeWalker", "serialize"] 23 | 24 | # this has to be at the top level, see how setup.py parses this 25 | __version__ = "1.0b10" 26 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/_trie/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import, division, unicode_literals 2 | 3 | from .py import Trie as PyTrie 4 | 5 | Trie = PyTrie 6 | 7 | # pylint:disable=wrong-import-position 8 | try: 9 | from .datrie import Trie as DATrie 10 | except ImportError: 11 | pass 12 | else: 13 | Trie = DATrie 14 | # pylint:enable=wrong-import-position 15 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/_trie/_base.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import, division, unicode_literals 2 | 3 | from collections import Mapping 4 | 5 | 6 | class Trie(Mapping): 7 | """Abstract base class for tries""" 8 | 9 | def keys(self, prefix=None): 10 | # pylint:disable=arguments-differ 11 | keys = super(Trie, self).keys() 12 | 13 | if prefix is None: 14 | return set(keys) 15 | 16 | # Python 2.6: no set comprehensions 17 | return set([x for x in keys if x.startswith(prefix)]) 18 | 19 | def has_keys_with_prefix(self, prefix): 20 | for key in self.keys(): 21 | if key.startswith(prefix): 22 | return True 23 | 24 | return False 25 | 26 | def longest_prefix(self, prefix): 27 | if prefix in self: 28 | return prefix 29 | 30 | for i in range(1, len(prefix) + 1): 31 | if prefix[:-i] in self: 32 | return prefix[:-i] 33 | 34 | raise KeyError(prefix) 35 | 36 | def longest_prefix_item(self, prefix): 37 | lprefix = self.longest_prefix(prefix) 38 | return (lprefix, self[lprefix]) 39 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/_trie/datrie.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import, division, unicode_literals 2 | 3 | from datrie import Trie as DATrie 4 | from pip._vendor.six import text_type 5 | 6 | from ._base import Trie as ABCTrie 7 | 8 | 9 | class Trie(ABCTrie): 10 | def __init__(self, data): 11 | chars = set() 12 | for key in data.keys(): 13 | if not isinstance(key, text_type): 14 | raise TypeError("All keys must be strings") 15 | for char in key: 16 | chars.add(char) 17 | 18 | self._data = DATrie("".join(chars)) 19 | for key, value in data.items(): 20 | self._data[key] = value 21 | 22 | def __contains__(self, key): 23 | return key in self._data 24 | 25 | def __len__(self): 26 | return len(self._data) 27 | 28 | def __iter__(self): 29 | raise NotImplementedError() 30 | 31 | def __getitem__(self, key): 32 | return self._data[key] 33 | 34 | def keys(self, prefix=None): 35 | return self._data.keys(prefix) 36 | 37 | def has_keys_with_prefix(self, prefix): 38 | return self._data.has_keys_with_prefix(prefix) 39 | 40 | def longest_prefix(self, prefix): 41 | return self._data.longest_prefix(prefix) 42 | 43 | def longest_prefix_item(self, prefix): 44 | return self._data.longest_prefix_item(prefix) 45 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/filters/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/filters/__init__.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import, division, unicode_literals 2 | 3 | from . import base 4 | 5 | try: 6 | from collections import OrderedDict 7 | except ImportError: 8 | from ordereddict import OrderedDict 9 | 10 | 11 | class Filter(base.Filter): 12 | def __iter__(self): 13 | for token in base.Filter.__iter__(self): 14 | if token["type"] in ("StartTag", "EmptyTag"): 15 | attrs = OrderedDict() 16 | for name, value in sorted(token["data"].items(), 17 | key=lambda x: x[0]): 18 | attrs[name] = value 19 | token["data"] = attrs 20 | yield token 21 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/filters/base.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import, division, unicode_literals 2 | 3 | 4 | class Filter(object): 5 | def __init__(self, source): 6 | self.source = source 7 | 8 | def __iter__(self): 9 | return iter(self.source) 10 | 11 | def __getattr__(self, name): 12 | return getattr(self.source, name) 13 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/filters/whitespace.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import, division, unicode_literals 2 | 3 | import re 4 | 5 | from . import base 6 | from ..constants import rcdataElements, spaceCharacters 7 | spaceCharacters = "".join(spaceCharacters) 8 | 9 | SPACES_REGEX = re.compile("[%s]+" % spaceCharacters) 10 | 11 | 12 | class Filter(base.Filter): 13 | 14 | spacePreserveElements = frozenset(["pre", "textarea"] + list(rcdataElements)) 15 | 16 | def __iter__(self): 17 | preserve = 0 18 | for token in base.Filter.__iter__(self): 19 | type = token["type"] 20 | if type == "StartTag" \ 21 | and (preserve or token["name"] in self.spacePreserveElements): 22 | preserve += 1 23 | 24 | elif type == "EndTag" and preserve: 25 | preserve -= 1 26 | 27 | elif not preserve and type == "SpaceCharacters" and token["data"]: 28 | # Test on token["data"] above to not introduce spaces where there were not 29 | token["data"] = " " 30 | 31 | elif not preserve and type == "Characters": 32 | token["data"] = collapse_spaces(token["data"]) 33 | 34 | yield token 35 | 36 | 37 | def collapse_spaces(text): 38 | return SPACES_REGEX.sub(' ', text) 39 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import, division, unicode_literals 2 | 3 | from . import sax 4 | 5 | __all__ = ["sax"] 6 | 7 | try: 8 | from . import genshi # noqa 9 | except ImportError: 10 | pass 11 | else: 12 | __all__.append("genshi") 13 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/packaging/__about__.py: -------------------------------------------------------------------------------- 1 | # This file is dual licensed under the terms of the Apache License, Version 2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository 3 | # for complete details. 4 | from __future__ import absolute_import, division, print_function 5 | 6 | __all__ = [ 7 | "__title__", "__summary__", "__uri__", "__version__", "__author__", 8 | "__email__", "__license__", "__copyright__", 9 | ] 10 | 11 | __title__ = "packaging" 12 | __summary__ = "Core utilities for Python packages" 13 | __uri__ = "https://github.com/pypa/packaging" 14 | 15 | __version__ = "16.8" 16 | 17 | __author__ = "Donald Stufft and individual contributors" 18 | __email__ = "donald@stufft.io" 19 | 20 | __license__ = "BSD or Apache License, Version 2.0" 21 | __copyright__ = "Copyright 2014-2016 %s" % __author__ 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/packaging/__init__.py: -------------------------------------------------------------------------------- 1 | # This file is dual licensed under the terms of the Apache License, Version 2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository 3 | # for complete details. 4 | from __future__ import absolute_import, division, print_function 5 | 6 | from .__about__ import ( 7 | __author__, __copyright__, __email__, __license__, __summary__, __title__, 8 | __uri__, __version__ 9 | ) 10 | 11 | __all__ = [ 12 | "__title__", "__summary__", "__uri__", "__version__", "__author__", 13 | "__email__", "__license__", "__copyright__", 14 | ] 15 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/packaging/_compat.py: -------------------------------------------------------------------------------- 1 | # This file is dual licensed under the terms of the Apache License, Version 2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository 3 | # for complete details. 4 | from __future__ import absolute_import, division, print_function 5 | 6 | import sys 7 | 8 | 9 | PY2 = sys.version_info[0] == 2 10 | PY3 = sys.version_info[0] == 3 11 | 12 | # flake8: noqa 13 | 14 | if PY3: 15 | string_types = str, 16 | else: 17 | string_types = basestring, 18 | 19 | 20 | def with_metaclass(meta, *bases): 21 | """ 22 | Create a base class with a metaclass. 23 | """ 24 | # This requires a bit of explanation: the basic idea is to make a dummy 25 | # metaclass for one level of class instantiation that replaces itself with 26 | # the actual metaclass. 27 | class metaclass(meta): 28 | def __new__(cls, name, this_bases, d): 29 | return meta(name, bases, d) 30 | return type.__new__(metaclass, 'temporary_class', (), {}) 31 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/packaging/utils.py: -------------------------------------------------------------------------------- 1 | # This file is dual licensed under the terms of the Apache License, Version 2 | # 2.0, and the BSD License. See the LICENSE file in the root of this repository 3 | # for complete details. 4 | from __future__ import absolute_import, division, print_function 5 | 6 | import re 7 | 8 | 9 | _canonicalize_regex = re.compile(r"[-_.]+") 10 | 11 | 12 | def canonicalize_name(name): 13 | # This is taken from PEP 503. 14 | return _canonicalize_regex.sub("-", name).lower() 15 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/progress/spinner.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Copyright (c) 2012 Giorgos Verigakis 4 | # 5 | # Permission to use, copy, modify, and distribute this software for any 6 | # purpose with or without fee is hereby granted, provided that the above 7 | # copyright notice and this permission notice appear in all copies. 8 | # 9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | 17 | from . import Infinite 18 | from .helpers import WriteMixin 19 | 20 | 21 | class Spinner(WriteMixin, Infinite): 22 | message = '' 23 | phases = ('-', '\\', '|', '/') 24 | hide_cursor = True 25 | 26 | def update(self): 27 | i = self.index % len(self.phases) 28 | self.write(self.phases[i]) 29 | 30 | 31 | class PieSpinner(Spinner): 32 | phases = [u'◷', u'◶', u'◵', u'◴'] 33 | 34 | 35 | class MoonSpinner(Spinner): 36 | phases = [u'◑', u'◒', u'◐', u'◓'] 37 | 38 | 39 | class LineSpinner(Spinner): 40 | phases = [u'⎺', u'⎻', u'⎼', u'⎽', u'⎼', u'⎻'] 41 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/re-vendor.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | import pip 4 | import glob 5 | import shutil 6 | 7 | here = os.path.abspath(os.path.dirname(__file__)) 8 | 9 | def usage(): 10 | print("Usage: re-vendor.py [clean|vendor]") 11 | sys.exit(1) 12 | 13 | def clean(): 14 | for fn in os.listdir(here): 15 | dirname = os.path.join(here, fn) 16 | if os.path.isdir(dirname): 17 | shutil.rmtree(dirname) 18 | # six is a single file, not a package 19 | os.unlink(os.path.join(here, 'six.py')) 20 | 21 | def vendor(): 22 | pip.main(['install', '-t', here, '-r', 'vendor.txt']) 23 | for dirname in glob.glob('*.egg-info'): 24 | shutil.rmtree(dirname) 25 | 26 | if __name__ == '__main__': 27 | if len(sys.argv) != 2: 28 | usage() 29 | if sys.argv[1] == 'clean': 30 | clean() 31 | elif sys.argv[1] == 'vendor': 32 | vendor() 33 | else: 34 | usage() 35 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/certs.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | """ 5 | requests.certs 6 | ~~~~~~~~~~~~~~ 7 | 8 | This module returns the preferred default CA certificate bundle. 9 | 10 | If you are packaging Requests, e.g., for a Linux distribution or a managed 11 | environment, you can change the definition of where() to return a separately 12 | packaged CA bundle. 13 | """ 14 | import os.path 15 | 16 | try: 17 | from certifi import where 18 | except ImportError: 19 | def where(): 20 | """Return the preferred certificate bundle.""" 21 | # vendored bundle inside Requests 22 | return os.path.join(os.path.dirname(__file__), 'cacert.pem') 23 | 24 | if __name__ == '__main__': 25 | print(where()) 26 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/hooks.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | """ 4 | requests.hooks 5 | ~~~~~~~~~~~~~~ 6 | 7 | This module provides the capabilities for the Requests hooks system. 8 | 9 | Available hooks: 10 | 11 | ``response``: 12 | The response generated from a Request. 13 | """ 14 | HOOKS = ['response'] 15 | 16 | 17 | def default_hooks(): 18 | return dict((event, []) for event in HOOKS) 19 | 20 | # TODO: response is the only one 21 | 22 | 23 | def dispatch_hook(key, hooks, hook_data, **kwargs): 24 | """Dispatches a hook dictionary on a given piece of data.""" 25 | hooks = hooks or dict() 26 | hooks = hooks.get(key) 27 | if hooks: 28 | if hasattr(hooks, '__call__'): 29 | hooks = [hooks] 30 | for hook in hooks: 31 | _hook_data = hook(hook_data, **kwargs) 32 | if _hook_data is not None: 33 | hook_data = _hook_data 34 | return hook_data 35 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Debian and other distributions "unbundle" requests' vendored dependencies, and 3 | rewrite all imports to use the global versions of ``urllib3`` and ``chardet``. 4 | The problem with this is that not only requests itself imports those 5 | dependencies, but third-party code outside of the distros' control too. 6 | 7 | In reaction to these problems, the distro maintainers replaced 8 | ``requests.packages`` with a magical "stub module" that imports the correct 9 | modules. The implementations were varying in quality and all had severe 10 | problems. For example, a symlink (or hardlink) that links the correct modules 11 | into place introduces problems regarding object identity, since you now have 12 | two modules in `sys.modules` with the same API, but different identities:: 13 | 14 | requests.packages.urllib3 is not urllib3 15 | 16 | With version ``2.5.2``, requests started to maintain its own stub, so that 17 | distro-specific breakage would be reduced to a minimum, even though the whole 18 | issue is not requests' fault in the first place. See 19 | https://github.com/kennethreitz/requests/pull/2375 for the corresponding pull 20 | request. 21 | ''' 22 | 23 | from __future__ import absolute_import 24 | import sys 25 | 26 | try: 27 | from . import urllib3 28 | except ImportError: 29 | import urllib3 30 | sys.modules['%s.urllib3' % __name__] = urllib3 31 | 32 | try: 33 | from . import chardet 34 | except ImportError: 35 | import chardet 36 | sys.modules['%s.chardet' % __name__] = chardet 37 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/__init__.py: -------------------------------------------------------------------------------- 1 | ######################## BEGIN LICENSE BLOCK ######################## 2 | # This library is free software; you can redistribute it and/or 3 | # modify it under the terms of the GNU Lesser General Public 4 | # License as published by the Free Software Foundation; either 5 | # version 2.1 of the License, or (at your option) any later version. 6 | # 7 | # This library is distributed in the hope that it will be useful, 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 | # Lesser General Public License for more details. 11 | # 12 | # You should have received a copy of the GNU Lesser General Public 13 | # License along with this library; if not, write to the Free Software 14 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 15 | # 02110-1301 USA 16 | ######################### END LICENSE BLOCK ######################### 17 | 18 | __version__ = "2.3.0" 19 | from sys import version_info 20 | 21 | 22 | def detect(aBuf): 23 | if ((version_info < (3, 0) and isinstance(aBuf, unicode)) or 24 | (version_info >= (3, 0) and not isinstance(aBuf, bytes))): 25 | raise ValueError('Expected a bytes object, not a unicode object') 26 | 27 | from . import universaldetector 28 | u = universaldetector.UniversalDetector() 29 | u.reset() 30 | u.feed(aBuf) 31 | u.close() 32 | return u.result 33 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/compat.py: -------------------------------------------------------------------------------- 1 | ######################## BEGIN LICENSE BLOCK ######################## 2 | # Contributor(s): 3 | # Ian Cordasco - port to Python 4 | # 5 | # This library is free software; you can redistribute it and/or 6 | # modify it under the terms of the GNU Lesser General Public 7 | # License as published by the Free Software Foundation; either 8 | # version 2.1 of the License, or (at your option) any later version. 9 | # 10 | # This library is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | # Lesser General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU Lesser General Public 16 | # License along with this library; if not, write to the Free Software 17 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 18 | # 02110-1301 USA 19 | ######################### END LICENSE BLOCK ######################### 20 | 21 | import sys 22 | 23 | 24 | if sys.version_info < (3, 0): 25 | base_str = (str, unicode) 26 | else: 27 | base_str = (bytes, str) 28 | 29 | 30 | def wrap_ord(a): 31 | if sys.version_info < (3, 0) and isinstance(a, base_str): 32 | return ord(a) 33 | else: 34 | return a 35 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/constants.py: -------------------------------------------------------------------------------- 1 | ######################## BEGIN LICENSE BLOCK ######################## 2 | # The Original Code is Mozilla Universal charset detector code. 3 | # 4 | # The Initial Developer of the Original Code is 5 | # Netscape Communications Corporation. 6 | # Portions created by the Initial Developer are Copyright (C) 2001 7 | # the Initial Developer. All Rights Reserved. 8 | # 9 | # Contributor(s): 10 | # Mark Pilgrim - port to Python 11 | # Shy Shalom - original C code 12 | # 13 | # This library is free software; you can redistribute it and/or 14 | # modify it under the terms of the GNU Lesser General Public 15 | # License as published by the Free Software Foundation; either 16 | # version 2.1 of the License, or (at your option) any later version. 17 | # 18 | # This library is distributed in the hope that it will be useful, 19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | # Lesser General Public License for more details. 22 | # 23 | # You should have received a copy of the GNU Lesser General Public 24 | # License along with this library; if not, write to the Free Software 25 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 26 | # 02110-1301 USA 27 | ######################### END LICENSE BLOCK ######################### 28 | 29 | _debug = 0 30 | 31 | eDetecting = 0 32 | eFoundIt = 1 33 | eNotMe = 2 34 | 35 | eStart = 0 36 | eError = 1 37 | eItsMe = 2 38 | 39 | SHORTCUT_THRESHOLD = 0.95 40 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/contrib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/contrib/__init__.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/packages/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | from . import ssl_match_hostname 4 | 5 | __all__ = ('ssl_match_hostname', ) 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py: -------------------------------------------------------------------------------- 1 | try: 2 | # Python 3.2+ 3 | from ssl import CertificateError, match_hostname 4 | except ImportError: 5 | try: 6 | # Backport of the function from a pypi module 7 | from backports.ssl_match_hostname import CertificateError, match_hostname 8 | except ImportError: 9 | # Our vendored copy 10 | from ._implementation import CertificateError, match_hostname 11 | 12 | # Not needed, but documenting what we provide. 13 | __all__ = ('CertificateError', 'match_hostname') 14 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | # For backwards compatibility, provide imports that used to be here. 3 | from .connection import is_connection_dropped 4 | from .request import make_headers 5 | from .response import is_fp_closed 6 | from .ssl_ import ( 7 | SSLContext, 8 | HAS_SNI, 9 | IS_PYOPENSSL, 10 | assert_fingerprint, 11 | resolve_cert_reqs, 12 | resolve_ssl_version, 13 | ssl_wrap_socket, 14 | ) 15 | from .timeout import ( 16 | current_time, 17 | Timeout, 18 | ) 19 | 20 | from .retry import Retry 21 | from .url import ( 22 | get_host, 23 | parse_url, 24 | split_first, 25 | Url, 26 | ) 27 | 28 | __all__ = ( 29 | 'HAS_SNI', 30 | 'IS_PYOPENSSL', 31 | 'SSLContext', 32 | 'Retry', 33 | 'Timeout', 34 | 'Url', 35 | 'assert_fingerprint', 36 | 'current_time', 37 | 'is_connection_dropped', 38 | 'is_fp_closed', 39 | 'get_host', 40 | 'parse_url', 41 | 'make_headers', 42 | 'resolve_cert_reqs', 43 | 'resolve_ssl_version', 44 | 'split_first', 45 | 'ssl_wrap_socket', 46 | ) 47 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/commands/check.py: -------------------------------------------------------------------------------- 1 | import logging 2 | 3 | from pip.basecommand import Command 4 | from pip.operations.check import check_requirements 5 | from pip.utils import get_installed_distributions 6 | 7 | 8 | logger = logging.getLogger(__name__) 9 | 10 | 11 | class CheckCommand(Command): 12 | """Verify installed packages have compatible dependencies.""" 13 | name = 'check' 14 | usage = """ 15 | %prog [options]""" 16 | summary = 'Verify installed packages have compatible dependencies.' 17 | 18 | def run(self, options, args): 19 | dists = get_installed_distributions(local_only=False, skip=()) 20 | missing_reqs_dict, incompatible_reqs_dict = check_requirements(dists) 21 | 22 | for dist in dists: 23 | key = '%s==%s' % (dist.project_name, dist.version) 24 | 25 | for requirement in missing_reqs_dict.get(key, []): 26 | logger.info( 27 | "%s %s requires %s, which is not installed.", 28 | dist.project_name, dist.version, requirement.project_name) 29 | 30 | for requirement, actual in incompatible_reqs_dict.get(key, []): 31 | logger.info( 32 | "%s %s has requirement %s, but you have %s %s.", 33 | dist.project_name, dist.version, requirement, 34 | actual.project_name, actual.version) 35 | 36 | if missing_reqs_dict or incompatible_reqs_dict: 37 | return 1 38 | else: 39 | logger.info("No broken requirements found.") 40 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/commands/help.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | from pip.basecommand import Command, SUCCESS 4 | from pip.exceptions import CommandError 5 | 6 | 7 | class HelpCommand(Command): 8 | """Show help for commands""" 9 | name = 'help' 10 | usage = """ 11 | %prog """ 12 | summary = 'Show help for commands.' 13 | 14 | def run(self, options, args): 15 | from pip.commands import commands_dict, get_similar_commands 16 | 17 | try: 18 | # 'pip help' with no args is handled by pip.__init__.parseopt() 19 | cmd_name = args[0] # the command we need help for 20 | except IndexError: 21 | return SUCCESS 22 | 23 | if cmd_name not in commands_dict: 24 | guess = get_similar_commands(cmd_name) 25 | 26 | msg = ['unknown command "%s"' % cmd_name] 27 | if guess: 28 | msg.append('maybe you meant "%s"' % guess) 29 | 30 | raise CommandError(' - '.join(msg)) 31 | 32 | command = commands_dict[cmd_name]() 33 | command.parser.print_help() 34 | 35 | return SUCCESS 36 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/models/__init__.py: -------------------------------------------------------------------------------- 1 | from pip.models.index import Index, PyPI 2 | 3 | 4 | __all__ = ["Index", "PyPI"] 5 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/models/index.py: -------------------------------------------------------------------------------- 1 | from pip._vendor.six.moves.urllib import parse as urllib_parse 2 | 3 | 4 | class Index(object): 5 | def __init__(self, url): 6 | self.url = url 7 | self.netloc = urllib_parse.urlsplit(url).netloc 8 | self.simple_url = self.url_to_path('simple') 9 | self.pypi_url = self.url_to_path('pypi') 10 | self.pip_json_url = self.url_to_path('pypi/pip/json') 11 | 12 | def url_to_path(self, path): 13 | return urllib_parse.urljoin(self.url, path) 14 | 15 | 16 | PyPI = Index('https://pypi.python.org/') 17 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/operations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/pip/operations/__init__.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/req/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | from .req_install import InstallRequirement 4 | from .req_set import RequirementSet, Requirements 5 | from .req_file import parse_requirements 6 | 7 | __all__ = [ 8 | "RequirementSet", "Requirements", "InstallRequirement", 9 | "parse_requirements", 10 | ] 11 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/status_codes.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | SUCCESS = 0 4 | ERROR = 1 5 | UNKNOWN_ERROR = 2 6 | VIRTUALENV_NOT_FOUND = 3 7 | PREVIOUS_BUILD_DIR_ERROR = 4 8 | NO_MATCHES_FOUND = 23 9 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/utils/build.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | import os.path 4 | import tempfile 5 | 6 | from pip.utils import rmtree 7 | 8 | 9 | class BuildDirectory(object): 10 | 11 | def __init__(self, name=None, delete=None): 12 | # If we were not given an explicit directory, and we were not given an 13 | # explicit delete option, then we'll default to deleting. 14 | if name is None and delete is None: 15 | delete = True 16 | 17 | if name is None: 18 | # We realpath here because some systems have their default tmpdir 19 | # symlinked to another directory. This tends to confuse build 20 | # scripts, so we canonicalize the path by traversing potential 21 | # symlinks here. 22 | name = os.path.realpath(tempfile.mkdtemp(prefix="pip-build-")) 23 | # If we were not given an explicit directory, and we were not given 24 | # an explicit delete option, then we'll default to deleting. 25 | if delete is None: 26 | delete = True 27 | 28 | self.name = name 29 | self.delete = delete 30 | 31 | def __repr__(self): 32 | return "<{} {!r}>".format(self.__class__.__name__, self.name) 33 | 34 | def __enter__(self): 35 | return self.name 36 | 37 | def __exit__(self, exc, value, tb): 38 | self.cleanup() 39 | 40 | def cleanup(self): 41 | if self.delete: 42 | rmtree(self.name) 43 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/utils/encoding.py: -------------------------------------------------------------------------------- 1 | import codecs 2 | import locale 3 | import re 4 | 5 | 6 | BOMS = [ 7 | (codecs.BOM_UTF8, 'utf8'), 8 | (codecs.BOM_UTF16, 'utf16'), 9 | (codecs.BOM_UTF16_BE, 'utf16-be'), 10 | (codecs.BOM_UTF16_LE, 'utf16-le'), 11 | (codecs.BOM_UTF32, 'utf32'), 12 | (codecs.BOM_UTF32_BE, 'utf32-be'), 13 | (codecs.BOM_UTF32_LE, 'utf32-le'), 14 | ] 15 | 16 | ENCODING_RE = re.compile(b'coding[:=]\s*([-\w.]+)') 17 | 18 | 19 | def auto_decode(data): 20 | """Check a bytes string for a BOM to correctly detect the encoding 21 | 22 | Fallback to locale.getpreferredencoding(False) like open() on Python3""" 23 | for bom, encoding in BOMS: 24 | if data.startswith(bom): 25 | return data[len(bom):].decode(encoding) 26 | # Lets check the first two lines as in PEP263 27 | for line in data.split(b'\n')[:2]: 28 | if line[0:1] == b'#' and ENCODING_RE.search(line): 29 | encoding = ENCODING_RE.search(line).groups()[0].decode('ascii') 30 | return data.decode(encoding) 31 | return data.decode(locale.getpreferredencoding(False)) 32 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/utils/filesystem.py: -------------------------------------------------------------------------------- 1 | import os 2 | import os.path 3 | 4 | from pip.compat import get_path_uid 5 | 6 | 7 | def check_path_owner(path): 8 | # If we don't have a way to check the effective uid of this process, then 9 | # we'll just assume that we own the directory. 10 | if not hasattr(os, "geteuid"): 11 | return True 12 | 13 | previous = None 14 | while path != previous: 15 | if os.path.lexists(path): 16 | # Check if path is writable by current user. 17 | if os.geteuid() == 0: 18 | # Special handling for root user in order to handle properly 19 | # cases where users use sudo without -H flag. 20 | try: 21 | path_uid = get_path_uid(path) 22 | except OSError: 23 | return False 24 | return path_uid == 0 25 | else: 26 | return os.access(path, os.W_OK) 27 | else: 28 | previous, path = path, os.path.dirname(path) 29 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pip/utils/setuptools_build.py: -------------------------------------------------------------------------------- 1 | # Shim to wrap setup.py invocation with setuptools 2 | SETUPTOOLS_SHIM = ( 3 | "import setuptools, tokenize;__file__=%r;" 4 | "f=getattr(tokenize, 'open', open)(__file__);" 5 | "code=f.read().replace('\\r\\n', '\\n');" 6 | "f.close();" 7 | "exec(compile(code, __file__, 'exec'))" 8 | ) 9 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/prettytable-0.7.2.dist-info/DESCRIPTION.rst: -------------------------------------------------------------------------------- 1 | UNKNOWN 2 | 3 | 4 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/prettytable-0.7.2.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/prettytable-0.7.2.dist-info/METADATA: -------------------------------------------------------------------------------- 1 | Metadata-Version: 2.0 2 | Name: prettytable 3 | Version: 0.7.2 4 | Summary: A simple Python library for easily displaying tabular data in a visually appealing ASCII table format 5 | Home-page: http://code.google.com/p/prettytable 6 | Author: Luke Maurits 7 | Author-email: luke@maurits.id.au 8 | License: BSD (3 clause) 9 | Platform: UNKNOWN 10 | Classifier: Programming Language :: Python 11 | Classifier: Programming Language :: Python :: 2.4 12 | Classifier: Programming Language :: Python :: 2.5 13 | Classifier: Programming Language :: Python :: 2.6 14 | Classifier: Programming Language :: Python :: 2.7 15 | Classifier: Programming Language :: Python :: 3 16 | Classifier: License :: OSI Approved :: BSD License 17 | Classifier: Topic :: Text Processing 18 | 19 | UNKNOWN 20 | 21 | 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/prettytable-0.7.2.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | prettytable.py,sha256=fbMCGSVlSL5EitcRVr_2iIdzrI80AY1Ow7fZKElIYjE,54204 2 | prettytable-0.7.2.dist-info/DESCRIPTION.rst,sha256=OCTuuN6LcWulhHS3d5rfjdsQtW22n7HENFRh6jC6ego,10 3 | prettytable-0.7.2.dist-info/METADATA,sha256=3nFGviL5zVH8vud_akSCI4C5bq6Y45fkRYF12dLAe60,700 4 | prettytable-0.7.2.dist-info/RECORD,, 5 | prettytable-0.7.2.dist-info/WHEEL,sha256=BtVfdXUcEYLcFjOkbIrCFRyXU4qszVPt-E9o3RWkSNw,93 6 | prettytable-0.7.2.dist-info/metadata.json,sha256=Ms-3Tkgc2NUwDas9hzNc7oQRG7HfEOcwI6vju92VYJo,821 7 | prettytable-0.7.2.dist-info/top_level.txt,sha256=UooJrNm6ias54LTjladXtdbjC1Nt9sgd_1t_24UXBTQ,12 8 | prettytable-0.7.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 9 | prettytable.pyc,, 10 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/prettytable-0.7.2.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/prettytable-0.7.2.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Programming Language :: Python", "Programming Language :: Python :: 2.4", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "License :: OSI Approved :: BSD License", "Topic :: Text Processing"], "extensions": {"python.details": {"contacts": [{"email": "luke@maurits.id.au", "name": "Luke Maurits", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "http://code.google.com/p/prettytable"}}}, "generator": "bdist_wheel (0.29.0)", "license": "BSD (3 clause)", "metadata_version": "2.0", "name": "prettytable", "summary": "A simple Python library for easily displaying tabular data in a visually appealing ASCII table format", "version": "0.7.2"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/prettytable-0.7.2.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | prettytable 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/progressive-0.3.3.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/progressive-0.3.3.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/progressive-0.3.3.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 3 - Alpha", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: User Interfaces", "Topic :: Terminals"], "extensions": {"python.details": {"contacts": [{"name": "Hamza Faran", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/hfaran/progressive"}}}, "extras": [], "generator": "bdist_wheel (0.29.0)", "license": "MIT License", "metadata_version": "2.0", "name": "progressive", "run_requires": [{"requires": ["blessings (>=1.5.1)"]}], "summary": "Terminal progress bars for Python with blessings", "version": "0.3.3"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/progressive-0.3.3.dist-info/pbr.json: -------------------------------------------------------------------------------- 1 | {"is_release": false, "git_version": "a84aa30"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/progressive-0.3.3.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | progressive 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/progressive/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "0.3.3" 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/progressive/exceptions.py: -------------------------------------------------------------------------------- 1 | class ProgressiveException(Exception): 2 | """Base class for exceptions raised by ``progressive``""" 3 | 4 | 5 | class ColorUnsupportedError(ProgressiveException): 6 | """Color is not supported by terminal""" 7 | 8 | 9 | class WidthOverflowError(ProgressiveException): 10 | """Terminal is not wide enough for the bar attempting to be written""" 11 | 12 | 13 | class LengthOverflowError(ProgressiveException): 14 | """Terminal is not long enough to display hierarchy""" 15 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/progressive/pretty.py: -------------------------------------------------------------------------------- 1 | # http://upload.wikimedia.org/wikipedia/en/1/15/Xterm_256color_chart.svg 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/progressive/util.py: -------------------------------------------------------------------------------- 1 | import math 2 | import copy 3 | from itertools import chain 4 | 5 | 6 | def floor(x): 7 | """Returns the floor of ``x`` 8 | :returns: floor of ``x`` 9 | :rtype: int 10 | """ 11 | return int(math.floor(x)) 12 | 13 | 14 | def ensure(expr, exc, *args, **kwargs): 15 | """ 16 | :raises ``exc``: With ``*args`` and ``**kwargs`` if not ``expr`` 17 | """ 18 | if not expr: 19 | raise exc(*args, **kwargs) 20 | 21 | 22 | def u(s): 23 | """Cast ``s`` as unicode string 24 | 25 | This is a convenience function to make up for the fact 26 | that Python3 does not have a unicode() cast (for obvious reasons) 27 | 28 | :rtype: unicode 29 | :returns: Equivalent of unicode(s) (at least I hope so) 30 | """ 31 | return u'{}'.format(s) 32 | 33 | 34 | def merge_dicts(dicts, deepcopy=False): 35 | """Merges dicts 36 | 37 | In case of key conflicts, the value kept will be from the latter 38 | dictionary in the list of dictionaries 39 | 40 | :param dicts: [dict, ...] 41 | :param deepcopy: deepcopy items within dicts 42 | """ 43 | assert isinstance(dicts, list) and all(isinstance(d, dict) for d in dicts) 44 | return dict(chain(*[copy.deepcopy(d).items() if deepcopy else d.items() 45 | for d in dicts])) 46 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/DESCRIPTION.rst: -------------------------------------------------------------------------------- 1 | UNKNOWN 2 | 3 | 4 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/METADATA: -------------------------------------------------------------------------------- 1 | Metadata-Version: 2.0 2 | Name: pyparsing 3 | Version: 2.2.0 4 | Summary: Python parsing module 5 | Home-page: http://pyparsing.wikispaces.com/ 6 | Author: Paul McGuire 7 | Author-email: ptmcg@users.sourceforge.net 8 | License: MIT License 9 | Download-URL: http://sourceforge.net/project/showfiles.php?group_id=97203 10 | Platform: UNKNOWN 11 | Classifier: Development Status :: 5 - Production/Stable 12 | Classifier: Intended Audience :: Developers 13 | Classifier: Intended Audience :: Information Technology 14 | Classifier: License :: OSI Approved :: MIT License 15 | Classifier: Operating System :: OS Independent 16 | Classifier: Programming Language :: Python 17 | Classifier: Programming Language :: Python :: 2.6 18 | Classifier: Programming Language :: Python :: 2.7 19 | Classifier: Programming Language :: Python :: 3 20 | Classifier: Programming Language :: Python :: 3.3 21 | Classifier: Programming Language :: Python :: 3.4 22 | Classifier: Programming Language :: Python :: 3.5 23 | 24 | UNKNOWN 25 | 26 | 27 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | pyparsing.py,sha256=YEDmnO3UoLk2q6dIa49_nrTjbgC1mN0FuRdcJaRGseM,231039 2 | pyparsing-2.2.0.dist-info/DESCRIPTION.rst,sha256=OCTuuN6LcWulhHS3d5rfjdsQtW22n7HENFRh6jC6ego,10 3 | pyparsing-2.2.0.dist-info/METADATA,sha256=mBVhF4ZiSecfhDYhwKAqb2P4Q8NqJSBK5oaIMQGg_lE,910 4 | pyparsing-2.2.0.dist-info/RECORD,, 5 | pyparsing-2.2.0.dist-info/WHEEL,sha256=9Z5Xm-eel1bTS7e6ogYiKz0zmPEqDwIypurdHN1hR40,116 6 | pyparsing-2.2.0.dist-info/metadata.json,sha256=wVMJLR6CVc6mYnWQIPc_CvJNpe0VaY0GQYS-mfWdUU8,1000 7 | pyparsing-2.2.0.dist-info/top_level.txt,sha256=eUOjGzJVhlQ3WS2rFAy2mN3LX_7FKTM5GSJ04jfnLmU,10 8 | pyparsing-2.2.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 9 | pyparsing.pyc,, 10 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: py2-none-any 5 | Tag: py3-none-any 6 | 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5"], "download_url": "http://sourceforge.net/project/showfiles.php?group_id=97203", "extensions": {"python.details": {"contacts": [{"email": "ptmcg@users.sourceforge.net", "name": "Paul McGuire", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "http://pyparsing.wikispaces.com/"}}}, "generator": "bdist_wheel (0.29.0)", "license": "MIT License", "metadata_version": "2.0", "name": "pyparsing", "summary": "Python parsing module", "version": "2.2.0"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | pyparsing 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools-34.3.1.dist-info/DESCRIPTION.rst: -------------------------------------------------------------------------------- 1 | .. image:: https://readthedocs.org/projects/setuptools/badge/?version=latest 2 | :target: https://setuptools.readthedocs.io 3 | 4 | See the `Installation Instructions 5 | `_ in the Python Packaging 6 | User's Guide for instructions on installing, upgrading, and uninstalling 7 | Setuptools. 8 | 9 | The project is `maintained at GitHub `_. 10 | 11 | Questions and comments should be directed to the `distutils-sig 12 | mailing list `_. 13 | Bug reports and especially tested patches may be 14 | submitted directly to the `bug tracker 15 | `_. 16 | 17 | 18 | Code of Conduct 19 | --------------- 20 | 21 | Everyone interacting in the setuptools project's codebases, issue trackers, 22 | chat rooms, and mailing lists is expected to follow the 23 | `PyPA Code of Conduct `_. 24 | 25 | 26 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools-34.3.1.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools-34.3.1.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: py2-none-any 5 | Tag: py3-none-any 6 | 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools-34.3.1.dist-info/dependency_links.txt: -------------------------------------------------------------------------------- 1 | https://files.pythonhosted.org/packages/source/c/certifi/certifi-2016.9.26.tar.gz#md5=baa81e951a29958563689d868ef1064d 2 | https://files.pythonhosted.org/packages/source/w/wincertstore/wincertstore-0.2.zip#md5=ae728f2f007185648d0c7a8679b361e2 3 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools-34.3.1.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | easy_install 2 | pkg_resources 3 | setuptools 4 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools-34.3.1.dist-info/zip-safe: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/cli-32.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/setuptools/cli-32.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/cli-64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/setuptools/cli-64.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/cli.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/setuptools/cli.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/command/__init__.py: -------------------------------------------------------------------------------- 1 | __all__ = [ 2 | 'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop', 3 | 'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts', 4 | 'sdist', 'setopt', 'test', 'install_egg_info', 'install_scripts', 5 | 'register', 'bdist_wininst', 'upload_docs', 'upload', 'build_clib', 6 | ] 7 | 8 | from distutils.command.bdist import bdist 9 | import sys 10 | 11 | from setuptools.command import install_scripts 12 | 13 | if 'egg' not in bdist.format_commands: 14 | bdist.format_command['egg'] = ('bdist_egg', "Python .egg file") 15 | bdist.format_commands.append('egg') 16 | 17 | del bdist, sys 18 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/command/bdist_wininst.py: -------------------------------------------------------------------------------- 1 | import distutils.command.bdist_wininst as orig 2 | 3 | 4 | class bdist_wininst(orig.bdist_wininst): 5 | def reinitialize_command(self, command, reinit_subcommands=0): 6 | """ 7 | Supplement reinitialize_command to work around 8 | http://bugs.python.org/issue20819 9 | """ 10 | cmd = self.distribution.reinitialize_command( 11 | command, reinit_subcommands) 12 | if command in ('install', 'install_lib'): 13 | cmd.install_lib = None 14 | return cmd 15 | 16 | def run(self): 17 | self._is_running = True 18 | try: 19 | orig.bdist_wininst.run(self) 20 | finally: 21 | self._is_running = False 22 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/command/launcher manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/command/register.py: -------------------------------------------------------------------------------- 1 | import distutils.command.register as orig 2 | 3 | 4 | class register(orig.register): 5 | __doc__ = orig.register.__doc__ 6 | 7 | def run(self): 8 | # Make sure that we are using valid current name/version info 9 | self.run_command('egg_info') 10 | orig.register.run(self) 11 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/command/saveopts.py: -------------------------------------------------------------------------------- 1 | from setuptools.command.setopt import edit_config, option_base 2 | 3 | 4 | class saveopts(option_base): 5 | """Save command-line options to a file""" 6 | 7 | description = "save supplied options to setup.cfg or other config file" 8 | 9 | def run(self): 10 | dist = self.distribution 11 | settings = {} 12 | 13 | for cmd in dist.command_options: 14 | 15 | if cmd == 'saveopts': 16 | continue # don't save our own options! 17 | 18 | for opt, (src, val) in dist.get_option_dict(cmd).items(): 19 | if src == "command line": 20 | settings.setdefault(cmd, {})[opt] = val 21 | 22 | edit_config(self.filename, settings, self.dry_run) 23 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/command/upload.py: -------------------------------------------------------------------------------- 1 | import getpass 2 | from distutils.command import upload as orig 3 | 4 | 5 | class upload(orig.upload): 6 | """ 7 | Override default upload behavior to obtain password 8 | in a variety of different ways. 9 | """ 10 | 11 | def finalize_options(self): 12 | orig.upload.finalize_options(self) 13 | self.username = ( 14 | self.username or 15 | getpass.getuser() 16 | ) 17 | # Attempt to obtain password. Short circuit evaluation at the first 18 | # sign of success. 19 | self.password = ( 20 | self.password or 21 | self._load_password_from_keyring() or 22 | self._prompt_for_password() 23 | ) 24 | 25 | def _load_password_from_keyring(self): 26 | """ 27 | Attempt to load password from keyring. Suppress Exceptions. 28 | """ 29 | try: 30 | keyring = __import__('keyring') 31 | return keyring.get_password(self.repository, self.username) 32 | except Exception: 33 | pass 34 | 35 | def _prompt_for_password(self): 36 | """ 37 | Prompt for a password on the tty. Suppress Exceptions. 38 | """ 39 | try: 40 | return getpass.getpass() 41 | except (Exception, KeyboardInterrupt): 42 | pass 43 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/dep_util.py: -------------------------------------------------------------------------------- 1 | from distutils.dep_util import newer_group 2 | 3 | # yes, this is was almost entirely copy-pasted from 4 | # 'newer_pairwise()', this is just another convenience 5 | # function. 6 | def newer_pairwise_group(sources_groups, targets): 7 | """Walk both arguments in parallel, testing if each source group is newer 8 | than its corresponding target. Returns a pair of lists (sources_groups, 9 | targets) where sources is newer than target, according to the semantics 10 | of 'newer_group()'. 11 | """ 12 | if len(sources_groups) != len(targets): 13 | raise ValueError("'sources_group' and 'targets' must be the same length") 14 | 15 | # build a pair of lists (sources_groups, targets) where source is newer 16 | n_sources = [] 17 | n_targets = [] 18 | for i in range(len(sources_groups)): 19 | if newer_group(sources_groups[i], targets[i]): 20 | n_sources.append(sources_groups[i]) 21 | n_targets.append(targets[i]) 22 | 23 | return n_sources, n_targets 24 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/gui-32.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/setuptools/gui-32.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/gui-64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/setuptools/gui-64.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/gui.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/setuptools/gui.exe -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/launch.py: -------------------------------------------------------------------------------- 1 | """ 2 | Launch the Python script on the command line after 3 | setuptools is bootstrapped via import. 4 | """ 5 | 6 | # Note that setuptools gets imported implicitly by the 7 | # invocation of this script using python -m setuptools.launch 8 | 9 | import tokenize 10 | import sys 11 | 12 | 13 | def run(): 14 | """ 15 | Run the script in sys.argv[1] as if it had 16 | been invoked naturally. 17 | """ 18 | __builtins__ 19 | script_name = sys.argv[1] 20 | namespace = dict( 21 | __file__=script_name, 22 | __name__='__main__', 23 | __doc__=None, 24 | ) 25 | sys.argv[:] = sys.argv[1:] 26 | 27 | open_ = getattr(tokenize, 'open', open) 28 | script = open_(script_name).read() 29 | norm_script = script.replace('\\r\\n', '\\n') 30 | code = compile(norm_script, script_name, 'exec') 31 | exec(code, namespace) 32 | 33 | 34 | if __name__ == '__main__': 35 | run() 36 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/py26compat.py: -------------------------------------------------------------------------------- 1 | """ 2 | Compatibility Support for Python 2.6 and earlier 3 | """ 4 | 5 | import sys 6 | 7 | try: 8 | from urllib.parse import splittag 9 | except ImportError: 10 | from urllib import splittag 11 | 12 | 13 | def strip_fragment(url): 14 | """ 15 | In `Python 8280 `_, Python 2.7 and 16 | later was patched to disregard the fragment when making URL requests. 17 | Do the same for Python 2.6 and earlier. 18 | """ 19 | url, fragment = splittag(url) 20 | return url 21 | 22 | 23 | if sys.version_info >= (2, 7): 24 | strip_fragment = lambda x: x 25 | 26 | try: 27 | from importlib import import_module 28 | except ImportError: 29 | 30 | def import_module(module_name): 31 | return __import__(module_name, fromlist=['__name__']) 32 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/py27compat.py: -------------------------------------------------------------------------------- 1 | """ 2 | Compatibility Support for Python 2.7 and earlier 3 | """ 4 | 5 | import sys 6 | import platform 7 | 8 | 9 | def get_all_headers(message, key): 10 | """ 11 | Given an HTTPMessage, return all headers matching a given key. 12 | """ 13 | return message.get_all(key) 14 | 15 | 16 | if sys.version_info < (3,): 17 | 18 | def get_all_headers(message, key): 19 | return message.getheaders(key) 20 | 21 | 22 | linux_py2_ascii = ( 23 | platform.system() == 'Linux' and 24 | sys.version_info < (3,) 25 | ) 26 | 27 | rmtree_safe = str if linux_py2_ascii else lambda x: x 28 | """Workaround for http://bugs.python.org/issue24672""" 29 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/py33compat.py: -------------------------------------------------------------------------------- 1 | import dis 2 | import array 3 | import collections 4 | 5 | import six 6 | 7 | 8 | OpArg = collections.namedtuple('OpArg', 'opcode arg') 9 | 10 | 11 | class Bytecode_compat(object): 12 | def __init__(self, code): 13 | self.code = code 14 | 15 | def __iter__(self): 16 | """Yield '(op,arg)' pair for each operation in code object 'code'""" 17 | 18 | bytes = array.array('b', self.code.co_code) 19 | eof = len(self.code.co_code) 20 | 21 | ptr = 0 22 | extended_arg = 0 23 | 24 | while ptr < eof: 25 | 26 | op = bytes[ptr] 27 | 28 | if op >= dis.HAVE_ARGUMENT: 29 | 30 | arg = bytes[ptr + 1] + bytes[ptr + 2] * 256 + extended_arg 31 | ptr += 3 32 | 33 | if op == dis.EXTENDED_ARG: 34 | long_type = six.integer_types[-1] 35 | extended_arg = arg * long_type(65536) 36 | continue 37 | 38 | else: 39 | arg = None 40 | ptr += 1 41 | 42 | yield OpArg(op, arg) 43 | 44 | 45 | Bytecode = getattr(dis, 'Bytecode', Bytecode_compat) 46 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/script (dev).tmpl: -------------------------------------------------------------------------------- 1 | # EASY-INSTALL-DEV-SCRIPT: %(spec)r,%(script_name)r 2 | __requires__ = %(spec)r 3 | __import__('pkg_resources').require(%(spec)r) 4 | __file__ = %(dev_path)r 5 | exec(compile(open(__file__).read(), __file__, 'exec')) 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/script.tmpl: -------------------------------------------------------------------------------- 1 | # EASY-INSTALL-SCRIPT: %(spec)r,%(script_name)r 2 | __requires__ = %(spec)r 3 | __import__('pkg_resources').run_script(%(spec)r, %(script_name)r) 4 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/unicode_utils.py: -------------------------------------------------------------------------------- 1 | import unicodedata 2 | import sys 3 | 4 | import six 5 | 6 | 7 | # HFS Plus uses decomposed UTF-8 8 | def decompose(path): 9 | if isinstance(path, six.text_type): 10 | return unicodedata.normalize('NFD', path) 11 | try: 12 | path = path.decode('utf-8') 13 | path = unicodedata.normalize('NFD', path) 14 | path = path.encode('utf-8') 15 | except UnicodeError: 16 | pass # Not UTF-8 17 | return path 18 | 19 | 20 | def filesys_decode(path): 21 | """ 22 | Ensure that the given path is decoded, 23 | NONE when no expected encoding works 24 | """ 25 | 26 | if isinstance(path, six.text_type): 27 | return path 28 | 29 | fs_enc = sys.getfilesystemencoding() or 'utf-8' 30 | candidates = fs_enc, 'utf-8' 31 | 32 | for enc in candidates: 33 | try: 34 | return path.decode(enc) 35 | except UnicodeDecodeError: 36 | continue 37 | 38 | 39 | def try_encode(string, enc): 40 | "turn unicode encoding into a functional routine" 41 | try: 42 | return string.encode(enc) 43 | except UnicodeEncodeError: 44 | return None 45 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/version.py: -------------------------------------------------------------------------------- 1 | import pkg_resources 2 | 3 | try: 4 | __version__ = pkg_resources.get_distribution('setuptools').version 5 | except Exception: 6 | __version__ = 'unknown' 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/setuptools/windows_support.py: -------------------------------------------------------------------------------- 1 | import platform 2 | import ctypes 3 | 4 | 5 | def windows_only(func): 6 | if platform.system() != 'Windows': 7 | return lambda *args, **kwargs: None 8 | return func 9 | 10 | 11 | @windows_only 12 | def hide_file(path): 13 | """ 14 | Set the hidden attribute on a file or directory. 15 | 16 | From http://stackoverflow.com/questions/19622133/ 17 | 18 | `path` must be text. 19 | """ 20 | __import__('ctypes.wintypes') 21 | SetFileAttributes = ctypes.windll.kernel32.SetFileAttributesW 22 | SetFileAttributes.argtypes = ctypes.wintypes.LPWSTR, ctypes.wintypes.DWORD 23 | SetFileAttributes.restype = ctypes.wintypes.BOOL 24 | 25 | FILE_ATTRIBUTE_HIDDEN = 0x02 26 | 27 | ret = SetFileAttributes(path, FILE_ATTRIBUTE_HIDDEN) 28 | if not ret: 29 | raise ctypes.WinError() 30 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/six-1.10.0.dist-info/DESCRIPTION.rst: -------------------------------------------------------------------------------- 1 | Six is a Python 2 and 3 compatibility library. It provides utility functions 2 | for smoothing over the differences between the Python versions with the goal of 3 | writing Python code that is compatible on both Python versions. See the 4 | documentation for more information on what is provided. 5 | 6 | Six supports every Python version since 2.6. It is contained in only one Python 7 | file, so it can be easily copied into your project. (The copyright and license 8 | notice must be retained.) 9 | 10 | Online documentation is at https://pythonhosted.org/six/. 11 | 12 | Bugs can be reported to https://bitbucket.org/gutworth/six. The code can also 13 | be found there. 14 | 15 | For questions about six or porting in general, email the python-porting mailing 16 | list: https://mail.python.org/mailman/listinfo/python-porting 17 | 18 | 19 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/six-1.10.0.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/six-1.10.0.dist-info/METADATA: -------------------------------------------------------------------------------- 1 | Metadata-Version: 2.0 2 | Name: six 3 | Version: 1.10.0 4 | Summary: Python 2 and 3 compatibility utilities 5 | Home-page: http://pypi.python.org/pypi/six/ 6 | Author: Benjamin Peterson 7 | Author-email: benjamin@python.org 8 | License: MIT 9 | Platform: UNKNOWN 10 | Classifier: Programming Language :: Python :: 2 11 | Classifier: Programming Language :: Python :: 3 12 | Classifier: Intended Audience :: Developers 13 | Classifier: License :: OSI Approved :: MIT License 14 | Classifier: Topic :: Software Development :: Libraries 15 | Classifier: Topic :: Utilities 16 | 17 | Six is a Python 2 and 3 compatibility library. It provides utility functions 18 | for smoothing over the differences between the Python versions with the goal of 19 | writing Python code that is compatible on both Python versions. See the 20 | documentation for more information on what is provided. 21 | 22 | Six supports every Python version since 2.6. It is contained in only one Python 23 | file, so it can be easily copied into your project. (The copyright and license 24 | notice must be retained.) 25 | 26 | Online documentation is at https://pythonhosted.org/six/. 27 | 28 | Bugs can be reported to https://bitbucket.org/gutworth/six. The code can also 29 | be found there. 30 | 31 | For questions about six or porting in general, email the python-porting mailing 32 | list: https://mail.python.org/mailman/listinfo/python-porting 33 | 34 | 35 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/six-1.10.0.dist-info/RECORD: -------------------------------------------------------------------------------- 1 | six.py,sha256=A6hdJZVjI3t_geebZ9BzUvwRrIXo0lfwzQlM2LcKyas,30098 2 | six-1.10.0.dist-info/DESCRIPTION.rst,sha256=QWBtSTT2zzabwJv1NQbTfClSX13m-Qc6tqU4TRL1RLs,774 3 | six-1.10.0.dist-info/METADATA,sha256=5HceJsUnHof2IRamlCKO2MwNjve1eSP4rLzVQDfwpCQ,1283 4 | six-1.10.0.dist-info/RECORD,, 5 | six-1.10.0.dist-info/WHEEL,sha256=GrqQvamwgBV4nLoJe0vhYRSWzWsx7xjlt74FT0SWYfE,110 6 | six-1.10.0.dist-info/metadata.json,sha256=jtOeeTBubYDChl_5Ql5ZPlKoHgg6rdqRIjOz1e5Ek2U,658 7 | six-1.10.0.dist-info/top_level.txt,sha256=_iVH_iYEtEXnD8nYGQYpYFUvkUW9sEO1GYbkeKSAais,4 8 | six-1.10.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 9 | six.pyc,, 10 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/six-1.10.0.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.26.0) 3 | Root-Is-Purelib: true 4 | Tag: py2-none-any 5 | Tag: py3-none-any 6 | 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/six-1.10.0.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"generator": "bdist_wheel (0.26.0)", "summary": "Python 2 and 3 compatibility utilities", "classifiers": ["Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Libraries", "Topic :: Utilities"], "extensions": {"python.details": {"project_urls": {"Home": "http://pypi.python.org/pypi/six/"}, "contacts": [{"email": "benjamin@python.org", "name": "Benjamin Peterson", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}}}, "license": "MIT", "metadata_version": "2.0", "name": "six", "version": "1.10.0"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/six-1.10.0.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | six 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/tests/__init__.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tests/conftest.py: -------------------------------------------------------------------------------- 1 | import pytest 2 | 3 | from tinydb.middlewares import CachingMiddleware 4 | from tinydb.storages import MemoryStorage 5 | from tinydb import TinyDB 6 | 7 | 8 | @pytest.fixture 9 | def db(): 10 | db_ = TinyDB(storage=MemoryStorage) 11 | db_.purge_tables() 12 | db_.insert_multiple({'int': 1, 'char': c} for c in 'abc') 13 | return db_ 14 | 15 | 16 | @pytest.fixture 17 | def storage(): 18 | _storage = CachingMiddleware(MemoryStorage) 19 | return _storage() # Initialize MemoryStorage 20 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tests/test_operations.py: -------------------------------------------------------------------------------- 1 | from tinydb import where 2 | from tinydb.operations import delete, increment, decrement 3 | 4 | 5 | def test_delete(db): 6 | db.update(delete('int'), where('char') == 'a') 7 | assert 'int' not in db.get(where('char') == 'a') 8 | 9 | 10 | def test_increment(db): 11 | db.update(increment('int'), where('char') == 'a') 12 | assert db.get(where('char') == 'a')['int'] == 2 13 | 14 | 15 | def test_decrement(db): 16 | db.update(decrement('int'), where('char') == 'a') 17 | assert db.get(where('char') == 'a')['int'] == 0 18 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tinydb-3.2.2.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tinydb-3.2.2.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: cp27-none-any 5 | 6 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tinydb-3.2.2.dist-info/metadata.json: -------------------------------------------------------------------------------- 1 | {"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Topic :: Database", "Topic :: Database :: Database Engines/Servers", "Topic :: Utilities", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: PyPy", "Operating System :: OS Independent"], "extensions": {"python.details": {"contacts": [{"email": "markus@m-siemens.de", "name": "Markus Siemens", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "https://github.com/msiemens/tinydb"}}}, "generator": "bdist_wheel (0.29.0)", "keywords": ["database", "nosql"], "license": "MIT", "metadata_version": "2.0", "name": "tinydb", "summary": "TinyDB is a tiny, document oriented database optimized for your happiness :)", "version": "3.2.2"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tinydb-3.2.2.dist-info/pbr.json: -------------------------------------------------------------------------------- 1 | {"is_release": false, "git_version": "a4de57f"} -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tinydb-3.2.2.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | tests 2 | tinydb 3 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tinydb-3.2.2.dist-info/zip-safe: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tinydb/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | TinyDB is a tiny, document oriented database optimized for your happiness :) 3 | 4 | TinyDB stores differrent types of python data types using a configurable 5 | backend. It has support for handy querying and tables. 6 | 7 | .. codeauthor:: Markus Siemens 8 | 9 | Usage example: 10 | 11 | >>> from tinydb import TinyDB, where 12 | >>> from tinydb.storages import MemoryStorage 13 | >>> db = TinyDB(storage=MemoryStorage) 14 | >>> db.insert({'data': 5}) # Insert into '_default' table 15 | >>> db.search(where('data') == 5) 16 | [{'data': 5, '_id': 1}] 17 | >>> # Now let's create a new table 18 | >>> tbl = db.table('our_table') 19 | >>> for i in range(10): 20 | ... tbl.insert({'data': i}) 21 | ... 22 | >>> len(tbl.search(where('data') < 5)) 23 | 5 24 | """ 25 | 26 | from tinydb.queries import Query, where 27 | from tinydb.storages import Storage, JSONStorage 28 | from tinydb.database import TinyDB 29 | 30 | __all__ = ('TinyDB', 'Storage', 'JSONStorage', 'Query', 'where') 31 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/tinydb/operations.py: -------------------------------------------------------------------------------- 1 | def delete(field): 2 | """ 3 | Delete a given field from the element. 4 | """ 5 | def transform(element): 6 | del element[field] 7 | 8 | return transform 9 | 10 | 11 | def increment(field): 12 | """ 13 | Increment a given field in the element. 14 | """ 15 | def transform(element): 16 | element[field] += 1 17 | 18 | return transform 19 | 20 | 21 | def decrement(field): 22 | """ 23 | Decrement a given field in the element. 24 | """ 25 | def transform(element): 26 | element[field] -= 1 27 | 28 | return transform 29 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel-0.29.0.dist-info/INSTALLER: -------------------------------------------------------------------------------- 1 | pip 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel-0.29.0.dist-info/LICENSE.txt: -------------------------------------------------------------------------------- 1 | "wheel" copyright (c) 2012-2014 Daniel Holth and 2 | contributors. 3 | 4 | The MIT License 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a 7 | copy of this software and associated documentation files (the "Software"), 8 | to deal in the Software without restriction, including without limitation 9 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 | and/or sell copies of the Software, and to permit persons to whom the 11 | Software is furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included 14 | in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel-0.29.0.dist-info/WHEEL: -------------------------------------------------------------------------------- 1 | Wheel-Version: 1.0 2 | Generator: bdist_wheel (0.29.0) 3 | Root-Is-Purelib: true 4 | Tag: py2-none-any 5 | Tag: py3-none-any 6 | 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel-0.29.0.dist-info/entry_points.txt: -------------------------------------------------------------------------------- 1 | [console_scripts] 2 | wheel = wheel.tool:main 3 | 4 | [distutils.commands] 5 | bdist_wheel = wheel.bdist_wheel:bdist_wheel -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel-0.29.0.dist-info/top_level.txt: -------------------------------------------------------------------------------- 1 | wheel 2 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/__init__.py: -------------------------------------------------------------------------------- 1 | # __variables__ with double-quoted values will be available in setup.py: 2 | __version__ = "0.29.0" 3 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/__main__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Wheel command line tool (enable python -m wheel syntax) 3 | """ 4 | 5 | import sys 6 | 7 | def main(): # needed for console script 8 | if __package__ == '': 9 | # To be able to run 'python wheel-0.9.whl/wheel': 10 | import os.path 11 | path = os.path.dirname(os.path.dirname(__file__)) 12 | sys.path[0:0] = [path] 13 | import wheel.tool 14 | sys.exit(wheel.tool.main()) 15 | 16 | if __name__ == "__main__": 17 | sys.exit(main()) 18 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/decorator.py: -------------------------------------------------------------------------------- 1 | # from Pyramid 2 | 3 | 4 | class reify(object): 5 | """Put the result of a method which uses this (non-data) 6 | descriptor decorator in the instance dict after the first call, 7 | effectively replacing the decorator with an instance variable. 8 | """ 9 | 10 | def __init__(self, wrapped): 11 | self.wrapped = wrapped 12 | self.__doc__ = wrapped.__doc__ 13 | 14 | def __get__(self, inst, objtype=None): 15 | if inst is None: 16 | return self 17 | val = self.wrapped(inst) 18 | setattr(inst, self.wrapped.__name__, val) 19 | return val 20 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/paths.py: -------------------------------------------------------------------------------- 1 | """ 2 | Installation paths. 3 | 4 | Map the .data/ subdirectory names to install paths. 5 | """ 6 | 7 | import os.path 8 | import sys 9 | import distutils.dist as dist 10 | import distutils.command.install as install 11 | 12 | def get_install_command(name): 13 | # late binding due to potential monkeypatching 14 | d = dist.Distribution({'name':name}) 15 | i = install.install(d) 16 | i.finalize_options() 17 | return i 18 | 19 | def get_install_paths(name): 20 | """ 21 | Return the (distutils) install paths for the named dist. 22 | 23 | A dict with ('purelib', 'platlib', 'headers', 'scripts', 'data') keys. 24 | """ 25 | paths = {} 26 | 27 | i = get_install_command(name) 28 | 29 | for key in install.SCHEME_KEYS: 30 | paths[key] = getattr(i, 'install_' + key) 31 | 32 | # pip uses a similar path as an alternative to the system's (read-only) 33 | # include directory: 34 | if hasattr(sys, 'real_prefix'): # virtualenv 35 | paths['headers'] = os.path.join(sys.prefix, 36 | 'include', 37 | 'site', 38 | 'python' + sys.version[:3], 39 | name) 40 | 41 | return paths 42 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/pkginfo.py: -------------------------------------------------------------------------------- 1 | """Tools for reading and writing PKG-INFO / METADATA without caring 2 | about the encoding.""" 3 | 4 | from email.parser import Parser 5 | 6 | try: 7 | unicode 8 | _PY3 = False 9 | except NameError: 10 | _PY3 = True 11 | 12 | if not _PY3: 13 | from email.generator import Generator 14 | 15 | def read_pkg_info_bytes(bytestr): 16 | return Parser().parsestr(bytestr) 17 | 18 | def read_pkg_info(path): 19 | with open(path, "r") as headers: 20 | message = Parser().parse(headers) 21 | return message 22 | 23 | def write_pkg_info(path, message): 24 | with open(path, 'w') as metadata: 25 | Generator(metadata, maxheaderlen=0).flatten(message) 26 | 27 | else: 28 | from email.generator import BytesGenerator 29 | def read_pkg_info_bytes(bytestr): 30 | headers = bytestr.decode(encoding="ascii", errors="surrogateescape") 31 | message = Parser().parsestr(headers) 32 | return message 33 | 34 | def read_pkg_info(path): 35 | with open(path, "r", 36 | encoding="ascii", 37 | errors="surrogateescape") as headers: 38 | message = Parser().parse(headers) 39 | return message 40 | 41 | def write_pkg_info(path, message): 42 | with open(path, "wb") as out: 43 | BytesGenerator(out, maxheaderlen=0).flatten(message) 44 | 45 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/__init__.py: -------------------------------------------------------------------------------- 1 | # -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/complex-dist/complexdist/__init__.py: -------------------------------------------------------------------------------- 1 | def main(): 2 | return 3 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/complex-dist/setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup 2 | 3 | try: 4 | unicode 5 | def u8(s): 6 | return s.decode('unicode-escape') 7 | except NameError: 8 | def u8(s): 9 | return s 10 | 11 | setup(name='complex-dist', 12 | version='0.1', 13 | description=u8('Another testing distribution \N{SNOWMAN}'), 14 | long_description=u8('Another testing distribution \N{SNOWMAN}'), 15 | author="Illustrious Author", 16 | author_email="illustrious@example.org", 17 | url="http://example.org/exemplary", 18 | packages=['complexdist'], 19 | setup_requires=["wheel", "setuptools"], 20 | install_requires=["quux", "splort"], 21 | extras_require={'simple':['simple.dist']}, 22 | tests_require=["foo", "bar>=10.0.0"], 23 | entry_points={ 24 | 'console_scripts': [ 25 | 'complex-dist=complexdist:main', 26 | 'complex-dist2=complexdist:main', 27 | ], 28 | }, 29 | ) 30 | 31 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/headers.dist/header.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/wheel/test/headers.dist/header.h -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/headers.dist/headersdist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/wheel/test/headers.dist/headersdist.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/headers.dist/setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup 2 | 3 | try: 4 | unicode 5 | def u8(s): 6 | return s.decode('unicode-escape').encode('utf-8') 7 | except NameError: 8 | def u8(s): 9 | return s.encode('utf-8') 10 | 11 | setup(name='headers.dist', 12 | version='0.1', 13 | description=u8('A distribution with headers'), 14 | headers=['header.h'] 15 | ) 16 | 17 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/simple.dist/setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup 2 | 3 | try: 4 | unicode 5 | def u8(s): 6 | return s.decode('unicode-escape').encode('utf-8') 7 | except NameError: 8 | def u8(s): 9 | return s.encode('utf-8') 10 | 11 | setup(name='simple.dist', 12 | version='0.1', 13 | description=u8('A testing distribution \N{SNOWMAN}'), 14 | packages=['simpledist'], 15 | extras_require={'voting': ['beaglevote']}, 16 | ) 17 | 18 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/simple.dist/simpledist/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/wheel/test/simple.dist/simpledist/__init__.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/test-1.0-py2.py3-none-win32.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VillanCh/minihydra/ea710ba156609fbedab93e6c12e32e6e5324202e/py2env/lib/python2.7/site-packages/wheel/test/test-1.0-py2.py3-none-win32.whl -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/test_paths.py: -------------------------------------------------------------------------------- 1 | import wheel.paths 2 | from distutils.command.install import SCHEME_KEYS 3 | 4 | def test_path(): 5 | d = wheel.paths.get_install_paths('wheel') 6 | assert len(d) == len(SCHEME_KEYS) 7 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/test_signatures.py: -------------------------------------------------------------------------------- 1 | from wheel import signatures 2 | from wheel.signatures import djbec, ed25519py 3 | from wheel.util import binary 4 | 5 | def test_getlib(): 6 | signatures.get_ed25519ll() 7 | 8 | def test_djbec(): 9 | djbec.dsa_test() 10 | djbec.dh_test() 11 | 12 | def test_ed25519py(): 13 | kp0 = ed25519py.crypto_sign_keypair(binary(' '*32)) 14 | kp = ed25519py.crypto_sign_keypair() 15 | 16 | signed = ed25519py.crypto_sign(binary('test'), kp.sk) 17 | 18 | ed25519py.crypto_sign_open(signed, kp.vk) 19 | 20 | try: 21 | ed25519py.crypto_sign_open(signed, kp0.vk) 22 | except ValueError: 23 | pass 24 | else: 25 | raise Exception("Expected ValueError") 26 | 27 | try: 28 | ed25519py.crypto_sign_keypair(binary(' '*33)) 29 | except ValueError: 30 | pass 31 | else: 32 | raise Exception("Expected ValueError") 33 | 34 | try: 35 | ed25519py.crypto_sign(binary(''), binary(' ')*31) 36 | except ValueError: 37 | pass 38 | else: 39 | raise Exception("Expected ValueError") 40 | 41 | try: 42 | ed25519py.crypto_sign_open(binary(''), binary(' ')*31) 43 | except ValueError: 44 | pass 45 | else: 46 | raise Exception("Expected ValueError") 47 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/site-packages/wheel/test/test_tool.py: -------------------------------------------------------------------------------- 1 | from .. import tool 2 | 3 | def test_keygen(): 4 | def get_keyring(): 5 | WheelKeys, keyring = tool.get_keyring() 6 | 7 | class WheelKeysTest(WheelKeys): 8 | def save(self): 9 | pass 10 | 11 | class keyringTest: 12 | @classmethod 13 | def get_keyring(cls): 14 | class keyringTest2: 15 | pw = None 16 | def set_password(self, a, b, c): 17 | self.pw = c 18 | def get_password(self, a, b): 19 | return self.pw 20 | 21 | return keyringTest2() 22 | 23 | return WheelKeysTest, keyringTest 24 | 25 | tool.keygen(get_keyring=get_keyring) 26 | -------------------------------------------------------------------------------- /py2env/lib/python2.7/sre.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/sre.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/sre_compile.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/sre_compile.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/sre_constants.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/sre_constants.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/sre_parse.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/sre_parse.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/stat.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/stat.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/types.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/types.py -------------------------------------------------------------------------------- /py2env/lib/python2.7/warnings.py: -------------------------------------------------------------------------------- 1 | /Users/v1ll4n/.pyenv/versions/2.7.13/lib/python2.7/warnings.py -------------------------------------------------------------------------------- /py2env/pip-selfcheck.json: -------------------------------------------------------------------------------- 1 | {"last_check":"2017-03-09T16:36:47Z","pypi_version":"9.0.1"} -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | appdirs==1.4.3 2 | blessings==1.6 3 | cmd2==0.7.0 4 | colorama==0.3.7 5 | configparser==3.5.0 6 | dnspython==1.15.0 7 | g3ar==0.3.6 8 | ipaddr==2.1.11 9 | ipwhois==0.15.1 10 | IPy==0.83 11 | packaging==16.8 12 | prettytable==0.7.2 13 | progressive==0.3.3 14 | pyparsing==2.2.0 15 | six==1.10.0 16 | tinydb==3.2.2 17 | -------------------------------------------------------------------------------- /sessions_dat: -------------------------------------------------------------------------------- 1 | (dp0 2 | S'default' 3 | p1 4 | I0 5 | sS'108025ba2dc233ee0b2793c2d8f8fd4b' 6 | p2 7 | I1616 8 | sS'3eab947906a0146c42c90d265b64a3a5' 9 | p3 10 | I56370 11 | s. -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #coding:utf-8 3 | """ 4 | Author: -- 5 | Purpose: Setup install minihydra 6 | Created: 04/15/17 7 | """ 8 | 9 | from setuptools import setup, find_packages 10 | 11 | packages = find_packages() 12 | 13 | requires = ['g3ar', 'configparser'] 14 | 15 | version = '0.5.0' 16 | 17 | # 18 | # README.md 19 | # 20 | try: 21 | readme = None 22 | with copen('README.md', encoding='utf-8') as f: 23 | readme = f.read() 24 | except: 25 | readme = 'MiniHydra Frame - Fuzz and Burst EVERYTHING!' + \ 26 | '\nGithub: https://github.com/VillanCh/minihydra' + \ 27 | '\nREADME.md: https://github.com/VillanCh/minihydra/blob/master/README.md\n\n' 28 | #history = 'https://github.com/VillanCh/g3ar/blob/master/HISTORY.md' 29 | 30 | setup( 31 | name = 'minihydra', 32 | version = version, 33 | description = 'Minihydra frame - burst and fuzz everything!', 34 | long_description = readme, 35 | author = 'v1ll4n', 36 | author_email = 'v1ll4n@villanch.top', 37 | url = 'https://github.com/VillanCh/minihydra', 38 | packages = packages, 39 | package_data = { 40 | '':['README.md', 'tests.py'], 41 | './minihydra/':['minihydra.conf',], 42 | './minihydra/dicts/':['default_un.txt', 'default_pd.txt'], 43 | }, 44 | package_dir = { 45 | 'minihydra':'minihydra' 46 | }, 47 | include_package_data = True, 48 | install_requires = requires, 49 | license = 'BSD 2-Clause License', 50 | zip_safe = False 51 | ) --------------------------------------------------------------------------------