Saravanan666/pypi-org huggingface dataset:
Package: ip2asn
ObjectiveA python class to searchip2asninformation for matches.InstallationUsing pip:pip3 install ip2asnOr manually:git clone git@github.com:hardaker/ip2asn.git
cd ip2asn
python3 setup.py build
python3 setup.py installExample Usagesetupcurl-oip2asn-v4-u32.tsv.gzhttps://iptoasn.com/data/ip2asn-v4-u32.tsv.gz
gunzipip2asn-v4-u32.tsv.gzcommand lineSearching for an address# ip2asn -f ip2asn-v4-u32.tsv 8.8.8.8Address:8.8.8.8Numericip:134744072ASN:15169Owner:GOOGLE-GoogleLLCCountry:USip_range:[134744064,134744319]Searching for an ASN# ip2asn -f ip2asn-v4-u32.tsv -a 15169ASN:15169Owner:GOOGLE-GoogleLLCCountry:USip_range:[134743040,134743295]ASN:15169Owner:GOOGLE-GoogleLLCCountry:USip_range:[134744064,134744319]ASN:15169Owner:GOOGLE-GoogleLLC
...(googlehasalotofregistrations)CodingSearching by IP addressimport ip2asn
i2a = ip2asn.IP2ASN("ip2asn-v4-u32.tsv")
result = i2a.lookup_address("93.184.216.34")

import pprint
pprint.pprint(result)Produces:{'ASN': '15133',
 'country': 'US',
 'ip_numeric': 1572395042,
 'ip_range': [1572394752, 1572396543],
 'ip_text': '93.184.216.34',
 'owner': 'EDGECAST - MCI Communications Services, Inc. d/b/a Verizon Business'}Searching by ASNimportip2asni2a=ip2asn.IP2ASN("ip2asn-v4-u32.tsv")results=i2a.lookup_asn(15169,limit=2)# limit is optionalimportpprintpprint.pprint(results)``****Produces:**```text[{'ASN':'15169','country':'US','ip_range':[134743040,134743295],'owner':'GOOGLE - Google LLC'},{'ASN':'15169','country':'US','ip_range':[134744064,134744319],'owner':'GOOGLE - Google LLC'}]AuthorWes Hardaker, USC/ISI
Package: ip2country
AboutLookup country code (iso 3166) by IP address.Install$pipinstallip2countryOr$pythonsetup.pyinstallHow to useFirst: Implement IStore InterfaceYou must implement IStore interface in ip2country/interfaces.py.There is a sample implementation in example/store.
This implementation is stored all records on the system memory.Second: Store the recordsstore=Store()parser=Parser(store)withopen(RECORD_FILE)asfp:parser.do(fp)See examples/lookup.py:load for more detail.Third: Lookup the IPAddressstore=Store()record=store.lookup(IP_ADDRESS)ifrecordisNone:print('Record not found')else:print('{0}is allocated to{1}'.format(IP_ADDRESS,record.cc))See examples/lookup.py:main for more detail.Run the tests$toxLicenseip2country is licensed under the MIT LICENSE.  See ./LICENSE.rst.
Package: ip2domains
ip2domainsScans IP addresses and finds domains. Domain names are extracted from SSL certificates. This method does not guarantee 100% finding of all domains. You can also use the method of obtaining a domain name through a reverse DNS lookup, but 99% of domains do not contain a PTR record.The reason for developing this tool was that many Internet services provide unreliable results:Installation:pipinstallip2domainsUsage:# help$ip2domains-h# Scan domains# KLM is sucks. Don't use these f*gots. Give me back my money, assholes!$echo171.21.120.0/22|ip2domains--no-banner# List unique domains$echo171.21.120.0/22|ip2domains--no-banner|jq-r'.domains[]'|sort|uniq# Remember that not all domains listed in the certificate actually use this IP$dig+shortaf-klm.com171.21.122.81

$dig+shortbluebiz.com52.166.78.97
Package: ip2geo
ip2geoGet geolocation information from IP address or hostname. Uses: ‘ip-api.com’,
‘freegeoip.net’, ‘ipinfo.io’ or ‘coding.tools’. Can also do a local lookup usingDB-IP.comIP to City LiteMMDB Database.Simple example:$ ip2geo 8.8.8.8
8.8.8.8 - United States (US), California (CA), Mountain View - GoogleLocal lookup:$ ip2geo 8.8.8.8 -d dbip-city-lite.mmdb
8.8.8.8 - United States (US), New Jersey, NewarkPlease note the following:http://ip-api.com/(default) has a 45 requests per minute restrictionThe script by default will sleep 1.5s between each request when doing multiple
lookups using an input file. This is done to comply to the restrictions on
‘ip-api.com’. The sleep time can be changed using the ‘-s’ switch.NotesWorks on Python 2 and Python 3Uses only Python standard library for remote lookupInstallInstall using pip:pip install ip2geoorDownload and set executable permission on the script file:chmod +x ip2geo.pyorDownload and run using the python interpreter:python ip2geo.pyFor local lookup the maxminddb module is needed:pip install maxminddbUsageUsage: ip2geo.py [ip|hostname] [options]

get geolocation from IP address or hostname, can use: 'ip-api.com',
'freegeoip.net', 'ipinfo.io', 'coding.tools' or 'db-ip.com' ip to city lite
database for local lookup

Options:
    --version         show program's version number and exit
    -h, --help        show this help message and exit
    -g API            geolocation api to use: 'ipapi', 'freegeoip', 'ipinfo' or
                      'coding'(default: ipapi)
    -s SLEEP          time to sleep between http requests (default: 1.5)
    -t TIMEOUT        timeout in seconds to wait for reply (default: 5)
    -d DATABASE_FILE  local lookup using db-ip.com ip to city lite database
                      mmdb: https://db-ip.com/db/download/ip-to-city-lite, the
                      maxminddb module must be installed:
                      https://github.com/maxmind/MaxMind-DB-Reader-python
    -i INPUT_FILE     use ips/hostnames from input file (one ip/hostname per
                      line)
    -o OUTPUT_FILE    save geolocation information to fileExamplesGet geolocation from IP or hostname:$ ip2geo google.comGet geolocation using ‘coding.tools’ api:$ ip2geo google.com -g codingUses an input file containing multiple ips/hostnames (one per line):$ ip2geo -i ips.txtSave output to file:$ ip2geo -i ips.txt -o geo_info.txt
Package: ip2geotools-locator
ip2geotools-locatorAn extension of the ip2geotools package that refines the estimation of the location of different geolocation databases using statistical methods.Free software: MIT licenseDocumentation:https://ip2geotools-locator.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.4.1 (2019-03-17)Pylint file createdHotfix of Clustering method1.4.0 (2019-03-17)Logging refactorNone values excludedCLI ChangedErrors fixedStable Version1.3.0 (2019-03-04)Clustering calculation improved1.2.0 (2019-02-19)Clustering calculation method, CLI1.1.3 (2019-02-18)Enviroment cleanup, pipenv added, tox removed1.1.2 (2018-12-14)Default settings added1.0.2 (2018-12-13)Ipstack DB, Security issues fixed, Beta version1.0.1 (2018-11-13)Build errors fixed1.0.0 (2018-11-13)First release on PyPI.0.1.0 (2018-10-30)Application created
Package: ip2instance
Overviewip2instance iterates through multiple AWS accounts, assuming IAM Roles in each
account using the STS AssumeRole function and fetches information about
instances in those accounts.PrerequisitesThat ip2instance be run on an AWS ec2 instance with an IAM role which has
rights to assume other rolesThat the list of other roles in various foreign AWS accountshave the permission to Describe instancesallow the role applied to the ec2 instance running ip2instance to assume
the target roleInstructions on setting up these roles can be found here :https://github.com/mozilla/security/tree/master/operations/aws-security-auditorConfigurationThe ip2instance configuration file is located at/etc/ip2instance.yaml. To
configure ip2instance create this file and populate it with yourrole_session_nameandrolesrole_session_nameTherole_session_nameis an “identifier for the assumed role session. The
session name is included as part of the AssumedRoleUser” according to theAWS DocumentationrolesThe roles is a list ofARNsof all IAM Roles in foreign AWS accounts which
ip2instance should assume when searching for instances.Example ConfigurationHere is an example configuration for two foreign AWS accountsrole_session_name: ip2instance
roles:
- arn:aws:iam::123456789012:role/security-audit-role-SecurityAuditRole-12XHTR13TAWGH  # 293989542403 Finance
- arn:aws:iam::345678901234:role/security-audit-role-SecurityAuditRole-FLGUX9CF36X6   # 345678901234 Client Frontend Development TeamUsageip2instance > instance-list.txtHow to BuildHere’s how to build this into an RPM on aRHEL 6 derivativesudo yum install http://ftp.linux.ncsu.edu/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo yum install rubygems ruby-devel gcc python-setuptools rpm-build
sudo easy_install pip
sudo gem install fpm
git clone https://github.com/gene1wood/ip2instance.git

cd ip2instance # This is required
fpm -s python -t rpm --workdir ../ ./setup.py
Package: ip2loc-server
IP2LOCA tiny web server for ipv4 to geo location conversionSystem PrerequisitesSQLiteis available
(SQLite is included by default inthese systems.)Only Python3 supported,>= 3.6is preferred.Quick StartInstallation & Runpipinstall--userip2loc-server
ip2locNow you have already started the server.
Trycurllocalhost:8080/ip2loc?ip=216.58.221.228# {"ip": "216.58.221.228", "country_code": "NL", "country_name": "Netherlands", "region_name": "Noord-Holland", "city_name": "Amsterdam", "latitude": 52.37403, "longitude": 4.88969}curllocalhost:8080/url2loc?url=www.google.com# {"ip": "216.58.221.228", "country_code": "NL", "country_name": "Netherlands", "region_name": "Noord-Holland", "city_name": "Amsterdam", "latitude": 52.37403, "longitude": 4.88969}curllocalhost:8080/url2loc?url=https://www.google.com# {"ip": "216.58.221.228", "country_code": "NL", "country_name": "Netherlands", "region_name": "Noord-Holland", "city_name": "Amsterdam", "latitude": 52.37403, "longitude": 4.88969}to test the server is working well. Runip2loc -hfor more helps.Server PortBy default the server listens to port8080, you could ONLY modify this in the configure file.
(Arguments specified listening ports are not supported)In addition multiple ports could be configured as# multiple listening port examplePORTS=(8080,8081,8082,)PathsI deliberately do not list the data, configure and log paths in this README file,
for the reason that the default paths are all relative paths which are not easy to be described clearly.To find these useful path info, runip2loc--showpathTrack the Latest DataAll the data used in this project is fromhttps://lite.ip2location.com/database/ip-country-region-city-latitude-longitude.For the reason that the data on this site are updated monthly, you need track the latest data manually.Download "IPV4CSV" and remember the current version of dataRunip2loc --loaddata --dataver="current version" --csv="CSV/DATA/PATH/NAME.CSV"orip2loc --loaddata --dataver="current version" --zip="ZIP/DATA/PATH/NAME.ZIP"How This WorksBriefly: Binary search of ordered ip dataSeehttps://lite.ip2location.com/database/ip-country-region-city-latitude-longitudefor details of data structure.Contact Mezhenninglang@163.com
Package: ip2vulns
ip2vulnsAn IP to vulnerabilities utility.
This tool is able to retrieve information related to given IP(s).
This tool takes advantage ofShodan InternetDB API.For CVE information, this tool retrieve CVE information fromNIST NVD.DisclaimerBy using this, you also agree to the term of use of the APIs used.NIST NVD - Term of UseShodan InternetDB - Term of ServicesInstallationUsing the following pip command to install:pip install ip2vulnsUsageusage: ip2vulns [-h] [-i INTERNETDB [INTERNETDB ...]] [-s CVSS] [-o OUT] [--ho] [-v]

IP 2 vulneribility tools

options:
  -h, --help            show this help message and exit
  -i INTERNETDB [INTERNETDB ...], --internetdb INTERNETDB [INTERNETDB ...]
                        Query information from https://internetdb.shodan.io/
                        support multiple ip and cidr, separate using space, e.g. -i 8.8.8.8 51.83.59.99 192.168.0.0/24
                        if no database if specified, use ./databases/internetdb.db
  -s CVSS, --cvss CVSS  Enable cvss score filter, required a number
                        If 0 is given, targets found with no CVE information will be filtered out. And all CVEs will be checked.
                        When 0 is given, the process can be slow if huge amount of CVEs are founded. Not Recommend to pass 0 in.
  -o OUT, --out OUT     Define output file, default print to stdout
                        Available option: stdout (default), csv, json
                        For csv: please specify filename
                        For json: a directory out_json will be created
  --ho                  Output hostnames only for scan result.
                        This option DOES NOT apply to -d/--database option
  -v, --version         Print current versionFeaturesThe scan operation will be splitted into several groups. Each group contains maximum 256 IPs.Output to fileWhen no-o/--outoption is provided, results are printed to stdout.When output to csv file, please specify the filename.
For example,ip2vulns -i 1.1.1.1 -o 1.1.1.1.csv, the output file will be1.1.1.1.csv.When output to json file, a directoryout_jsonwill be created. Results will be stored using<ip>.json.
For example,ip2vulns -i 1.1.1.1 -o json, then a directoryout_jsonwill be created. And the output filename will be1.1.1.1.json.Local CVE DatabaseAnother project namedpy-cvedbis used in this project.It is highly recommended check out that project and init a local database first before using this.NIST NVD Key (Optional, but recommend)By setting environment variableNVD_KEYfor lower delay of NIST NVD api.Request a key
Package: ip6words
# ip6words [![Pypi Version][pypi-version-badge]][pypi-version-link] [![Dependency CI][dependency-ci-badge]][dependency-ci-link] [![Apache 2 License][license-badge]][license-link]Converts IPv6 addresses to and from a user friendly format using words.#### Usage<p align="center"><img src="https://raw.githubusercontent.com/lstn/ip6words/master/usage.gif" alt="Gif usage examples"></p>```bash# Script entry point "ip6words" can be used instead of manually launching the script through python if the package was installed.$ ip6words ::the8$ ip6words -hUsage:python ip6words.py ([-h] | [-d] | [-u] | [-e]) (<ip6words-address-to-convert> | <ipv6-to-convert>)[-h] ~ This dialog[-u] ~ The usage dialog[-d] ~ Delete the dilled (pickled) word list in order to regenerate it before executing[-e] ~ Explode the results instead of compressing them```#### Install```bashpip install ip6words```#### Requirements- Python 3.3+ (NOT tested at all on Python 2)- nltk <sub>(*will download these packages on first run that doesn't use dill, download them yourself beforehand if you'd like to choose the download directory*)</sub>+ words - <sub>*optional* ~ see note #3</sub>+ brown - <sub>*optional* ~ see note #3</sub>+ abc - <sub>*optional* ~ see note #3</sub>+ inaugural - <sub>*optional* ~ see note #3</sub>+ genesis - <sub>*optional* ~ see note #3</sub>- dill#### Notes1. This is designed to have the same words always point to the same IP and vice versa. The only thing thatwould alter this would be a change in the base nltk data, causing a shift in the frequency of words.2. Included with this tool is a dilled (or pickled) word list. If you wish to re-generate that dill youmust delete the file or run using the \[-d] argument.3. In practice, this means you will actually never have to download the nltk packages yourself if you neveruse the \[-d] argument and thus always load the wordlist from the dill.[pypi-version-badge]:	https://badge.fury.io/py/ip6words.svg[pypi-version-link]:	https://pypi.python.org/pypi/ip6words/[dependency-ci-badge]:	https://dependencyci.com/github/lstn/ip6words/badge[dependency-ci-link]:	https://dependencyci.com/github/lstn/ip6words[license-badge]:		https://img.shields.io/badge/license-Apache%202-blue.svg[license-link]:			https://raw.githubusercontent.com/lstn/ip6words/master/LICENSE
Package: ipa2unicode
OverviewThis package converts text encoded using the legacy SIL IPA93 font to
unicode.It contains one function, convert_to_unicode(), which relies on a
dictionary mapping IPA93 glyph codes to their corresponding unicode
code point(s). This is useful if, for example, you are working with a
resource like the [MOSS Aphasia MAPPD dataset]
(https://www.mappd.org/about.html).The package also exposes the dictionary itself, sil_to_unicode_dict,
in case it is more convenient to use that directly. Lastly, this
package contains a list of all the unicode diacritics
(ipa_diacritics_unicode), which may be useful for removing diacritics
from the input in a post-processing step.NotesThe IPA93 glyph access codes (and descriptions in the comments) were
copied from the file Ipa93.pdf, which can be found in the [IPA93 fonts
zip archive]
(https://scripts.sil.org/cms/scripts/render_download.php?format=file&media_id=silipa93-2.00.zip&filename=silipa93.zip).Glyph access code 202 "minute space" does not have an obvious
unicode equivalent and is not handled in this package.The interpretation of glyph access codes 232, 134, 216, 128, 133,
217 in this package is based on [ipa-braille-final.pdf]
(http://brailleauthority.org/ipa/ipa-braille-final.pdf) and understood
to represent various tone bars (seehttp://www.internationalphoneticalphabet.org/ipa-charts/tones-and-accents/as well as comments in the code).UsageThe following code snippet illustrates the usage of the function
convert_to_unicode, which takes a string of SIL IPA93 glyph access
codes and returns an equivalent unicode string. In this example, we
assume the input excel file MAPPD.xlsx contains a structured data set
in which the IPA93 data lives in a column called "Phonetic_response."
We send each data point in this column to convert_to_unicode(), store
the result in a new column called "New_phonetic_response," and write
the new data set to a file called "MAPPD.new.xlsx":import pandas as pd

mappd_df = pd.read_excel('MAPPD.xlsx')
# The input to convert_to_unicode() is a string so handle null values
# appropriately first.
mappd_df['New_phonetic_response'] = mappd_df.Phonetic_response.fillna('')
mappd_df.New_phonetic_response = mappd_df.New_phonetic_response.map(lambda x: convert_to_unicode(x))
mappd_df.to_excel('MAPPD.new.xlsx', index=False)
Package: ipaconnector
IPA ConnectorIPA Connector is script that allows to perform standard user/group add/delete/update operations on Red Hat IDM/FreeIPA. \It requires to have .json file provided with changes specified to be made in IPA.See examples attests/sample_X.jsonRequirementsIPA Connector requires python3.6 to be installed.If you want to use Kerberos authentication, install also python package: requests_kerberosInstallationoptionalvirtualenv venv -ppython3; source venv/bin/activate;optionalpip install requests_kerberospip install ipaconnectorUsageDefault usageThis will try to connect to ipa.server.net using your current username and will ask you for password.ipa-connector ipa.server.net path/to/file.jsonAdjust log level and change useripa-connector ipa.server.net path/to/file.json --log-level 2 -u ipauserUse Kerberos to log inrun kinit firstipa-connector ipa.server.net path/to/file.json -kLog levelValueLog level5ERROR4WARN3INFO2DEBUG1ALL
Package: ip-address
IP-AddressA Python module to fetch your public IP address.Table of ContentsInstallationUsageGetContributingLicenseInstallationYou can install theip-addressmodule using pip:pipinstallip-addressUsageGetYou can use this module to retrieve your public IP address. Here's a basic example:importip_addressasipaddress=ip.get()print("Your public IP address is:",address)ContributingContributions to this project are welcome. If you have any improvements or bug fixes, please submit a pull request.LicenseThis project is licensed under the MIT License.
Package: ipaddresses
Shows your private and public IP addresses.Description and featuresDescriptionShows your private and public IP addresses.Although the code is OS independent, I’m only able to test it in console (Windows Cmd) and Windows GUI.Features:Shows the private and public IP addresses.Installation, usage and optionsInstallation$pipinstallipaddressesUsage$ipaddressesOptions$ipaddresses-husage:ipaddresses[-option]optionalarguments:-g,--guistartGUI(GraphicalUserInterface)-h,--helpshowhelpmessage-l,--licenseshowlicense-p,--pausepauseaftershowingIPaddresses-V,--versionshowversionNoargumentsshowsprivateandpublicIPaddresses.Resources and contributingResourcesRepository PyPIDocumentation PyPIRepository GithubDocumentation Read the DocsContributingIf Other repository above is Github or compatible, follow these guidelines for contributing:Fork therepository.Make a branch of master and commit your changes to it.Ensure that your name is added to the end of the AUTHORS.rst file using the format:Name <email@domain.com>Submit a Pull Request to the master branch.Copyright 2009-2015 Joao Carlos Roseta Matos. Licensed under the GNU General Public License v2 or later (GPLv2+).
Package: ipaddresstools
Python Script: ipaddresstoolsDocumentaionWritten By: Benjamin P. TrachtenbergContact Information:e_ben_75-python@yahoo.comIf you have any questions e-mail meLinkedIn:Ben TrachtenbergDocker Hub:Docker HubPyPi Page foripaddresstoolsRequirementsNothing Specific, I would suggest Python 3.6 and above.InstallationFrom source "setup.py install"From pip "pip install ipaddresstools"LanguagesPythonAboutThis is a library used to verify, and correct ipv4 address's, and subnets.  I wrote it before a good library was out there for network engineers.Functions included in v1.0.0ucast_ip_mask(ip_addr_and_mask, return_tuple=True)ucast_ip(ip_addr, return_tuple=True)mcast_ip_mask(ip_addr_and_mask, return_tuple=True)mcast_ip(ip_addr, return_tuple=True)cidr_check(cidr, return_cidr=True)get_neighbor_ip(ip_addr, cidr="30")whole_subnet_maker (ip_addr, cidr)Functions Added in v1.1.0number_check(check, return_number=True)Functions Added in v1.1.1subnet_range(ip_net, cidr)all_subnets_possible(ip_net, cidr)Functions Added in v1.1.2all_subnets_longer_prefix(ip_net, cidr)all_subnets_shorter_prefix(ip_net, cidr, include_default=False)all_subnets_possible(ip_net, cidr) = AllSubnetsPossibleLongerPrefix(strIpNet,strCidr)Functions Added in v1.2.1ip_mask(ip_addr_and_mask, return_tuple=True):ip(ip_addr, return_tuple=True):Functions Added to v1.2.3mask_conversion = __mask_conversionFunctions Added to v1.2.4all_ip_address_in_subnet(ip_net, cidr)Functions Added to v1.2.5random_cidr_mask(lowest_mask=16)random_ucast_ip()random_mcast_ip()random_ucast_ip_mask(lowest_mask=16)random_mcast_ip_mask(lowest_mask=16)
Package: ipaddr-range
ipaddr_rangeThis code provides a simple implementation of generating a list of IP addresses of IPv4 and IPv6 versions.UsageThe code defines three classes:IPAddressRange: This is a data class that holds the start and end IP addresses.IPv4AddressRangeandIPv6AddressRange: These classes inherit fromIPAddressRangeand represent IP ranges for IPv4 and IPv6 addresses respectively.IPAddressGenerator: This is an abstract class that provides an interface for generating IP addresses.IPv4AddressGeneratorandIPv6AddressGenerator: These classes inherit fromIPAddressGeneratorand provide the implementation for generating IPv4 and IPv6 addresses respectively.To generate a list of IP addresses, you need to create an instance ofIPv4AddressGeneratororIPv6AddressGeneratorand then call the generate method with the start and end IP addresses.The generate method returns an object of typeIPAddressRange, which can be used to traverse through the generated IP addresses.Exampleif__name__=='__main__':start_ip,end_ip='192.168.2.1','192.168.2.10'generator=IPv4AddressGenerator()ip_range=generator.generate(start_ip,end_ip)foripinip_range:logging.info(ip)This code generates a list of IP addresses of the IPv4 version and logs the generated IP addresses.
Package: ipa-deploy
Command line tool to deploy IPA package to iOS device.It was written with nodejs before, now it's re-written with python3.InstallationPlease make sure your Python is v3.7 or above.python3--version
python3-mpipinstallipa-deployOr, clone from GitHub:gitclonehttps://github.com/floatinghotpot/ipa-deploy.gitcdipa-deploy
python3-mpipinstall-e.How To Useipa-deploy<path_to_ipa_file>Example:ipa-deploymyapp.ipaHow It WorksHere are the steps that the tool actualy runs:# unzip the IPA file to tmp foldermkdir./tmp
unzip<path_to_ipa_file>-d./tmp# run ios-deploy to install the app into iOS deviceios-deploy-b./tmp/Payload/*.app# clean up the tmp folderrm-r./tmpDependencyIt will callios-deploy, so make sure it's installed first.If not installed, install  it with Homebrew:brewinstallios-deployCreditsA simple tool created by Raymond Xie, to install IPA package with command line.Any comments are welcome.