Saravanan666/pypi-org huggingface dataset:
Package: whmcspy
# WHMCSpyWHMCSpy is a Python interface to the WHMCS REST API.[![PyPI version](https://badge.fury.io/py/whmcspy.svg)](https://badge.fury.io/py/whmcspy)[![Documentation Status](https://readthedocs.org/projects/whmcspy/badge/?version=latest)](https://whmcspy.readthedocs.io/en/latest/?badge=latest)## UsageCreate a WHMCS interface with the API URL and credentials and use it tocall the API.```pythonimport whmcspywhmcs = whmcspy.WHMCS('https://example.com/whmcs/includes/api.php','identifier','secret')whmcs.accept_order(2)```In general API methods can be called as methods in the WHMCS class. Foravailable API methods see the [WHMCS API reference](https://developers.whmcs.com/api-reference/).Note that the casing of the methods differ from the API actions. While theAPI actions are CamelCased the methods are snake_cased.### Calling unimplemented actionsNot all API actions are implemented as Python methods (they will beimplemented as required, of course pull-requests are accepted). In order tocall actions that are not yet implemented [call()] can be used. Example:```pythonresponse = whmcs.call('SomeAction',param=value,list_param=[element,element2,])```See the [call()] documentation for more info.Some actions return batches of results. To iterate over all results multiplerequests need to be done. For this a convenience method is added:[paginated_call()]This method is a generator which yields batches. Using keywords additionalparams are accepted. Example:```pythonfor response in whmcs.paginated_call('GetOrders'):for order in response['orders']['order']:print(order)```[call()]: https://whmcspy.readthedocs.io/en/latest/whmcspy.html#whmcspy.api.WHMCS.call[paginated_call()]: https://whmcspy.readthedocs.io/en/latest/whmcspy.html#whmcspy.api.WHMCS.paginated_call
Package: whmcs-restapi
whmcs-restapiExample local_settings.py:# Global configurations
WHMCS_URL = "http://yourdomain.com/includes/api.php"
API_USER = "apiuser"
API_PASS = "pass"
RESPONSE_TYPE = "json" # do not change. just JSON supported.News0.0.1
—Release date: 8/29/2018client CRUD operations implementedall responses are application/json typeddropped XML response type support.“XML is a giant step to no direction at all” Eric Naggum
Package: who-added-this-tag
Tool for tracking down who added specific tag.Will work fine for tags used on a small scale.As it will download objects with Overpass Turbo and then use editing API to retrieve old versions of each object, it is acceptable to be used only for tags that have few instances.Do not try to run it for saybuilding=houseBut for investigating who added tag appearing 1017 times? Should be fine.It can be useful tonotify editors about tagging discussioneasily track down who was adding specific tag which is unclear/dubious/problematicPackageimport who_added_this_tag

config = {
    'key': 'related:wikipedia',
    'value': None, # may be None - in such case it looks for all values of key
    'area_identifier_key': None, # may be None, in such case search is worldwide, 'ISO3166-1' is a good identifier
    'area_identifier_value': 'PL', # ignored if area_identifier_key is None
    'list_all_edits': True,
    'list_all_edits_made_by_this_users': [], # ignored with list_all_edits set to True
}
who_added_this_tag.statistics.process_case(config)Run testspython3 -m unittest
Package: whoarder
whoarderconverts your Kindle’sMy Clippings.txtfile to a more pleasant, sortable, filterable HTML file:Installation & RequirementsTo install, justpip install whoarder(link to PyPI page). Requirements are:Python ≥3.3 (so far I only tested with 3.3 and 3.4 on Linux, tests and patches to increase compatibility very welcome)Thejinja2andchardet2modules (automatically handled assetup.pydependencies)Only tested on aMy Clippings.txtfile produced by a Kindle Paperwhite (ok/ko reports for other devices and test data welcome throughGitHub).Kindle Fire & Kindle Fire HD are not supported, since they do note create theMy Clippings.txtfile. If you know where to dig that data for those versions, patches welcome.UsageCommand-line:Runwhoarder /path/to/My Clippings.txt [destination]. Ifdestinationis omitted, the output HTML will be written in the same place (overwriting any pre-existing HTML).As module:from clippings import Clippings
clippings = Clippings(args.source, args.destination)  # contains a 'clippings' dict containing the information
clippings.export_to_html()  # exports as HTMLTests:Test data andunittest-based unit tests are in thetestsfolder.Similar SoftwareWeb servicesClippings ConverterClipperOffline(PHP)kindle-split-by-bookLicense and contactLicensed under the MIT license, 2013-2016 (seeLICENSE),ronan@jouchet.fr/@ronjouch
Package: whoare
A WhoIs parserJust awhoisparserAvailable countries:.ar: ArgentinaSamplefromwhoare.whoareimportWhoArewa=WhoAre()wa.load('fernet.com.ar')# optional torify=True to run "torify whois ..."wa.domain.base_name'fernet'wa.domain.zone'com.ar'wa.domain.full_name()'fernet.com.ar'wa.domain.registereddatetime.datetime(2020,5,7,10,44,4,210977)wa.domain.expiredatetime.datetime(2021,5,7,0,0)wa.registrant.name'XXXX jose XXXXX'wa.registrant.legal_uid'20XXXXXXXX9'wa.dnss[0].name'ns2.sedoparking.com'wa.dnss[1].name'ns1.sedoparking.com'Get new domainsArgentinafromdatetimeimportdatefromwhoare.zone_parsers.ar.news_from_blockchainimportNewDomainsnd=NewDomains()nd.data_path=''# hereresults=nd.get_from_date(date(2020,3,28)){'zonas':{'com.ar':['3cconstrucciones.com.ar','4kids.com.ar'],'ar':['andamios.ar','apuesta.ar','camaras.ar'],'tur.ar':['villacarlospaz.tur.ar']},'errors':{}}
Package: whocan
WhocanLibrary for defining and determining access.UsageYAML usagestatements:-effect:allowactions:-workspace:Create*-workspace:Delete*-workspace:Get*-workspace:List*-workspace:Update*resources:-workspace:individual-${username}importpathlibimportwhocanpolicy=whocan.Policy.load(pathlib.Path('path-to-file.yaml'))policy.is_allowed(resource='workspaces:individual-my-username',action='workspace:DeletePage',arguments={'username':'my-username'},)# Truepolicy.is_allowed(resource='workspaces:individual-a-different-user',action='workspace:DeletePage',arguments={'username':'my-username'},)# FalsePure python usageimportwhocanstatement=whocan.Statement(resources=['workspaces:individual-${username}'],actions=['workspace:Create*','workspace:Delete*','workspace:Get*','workspace:List*','workspace:Update*',],effect='allow',)policy=whocan.Policy(statements=[statement])policy.is_allowed(resource='workspaces:individual-my-username',action='workspace:DeletePage',arguments={'username':'my-username'},)# Truepolicy.is_allowed(resource='workspaces:individual-a-different-user',action='workspace:DeletePage',arguments={'username':'my-username'},)# False
Package: whocovid19db
WHO Covid-19 DatabaseExport theWHO Covid-19 Databaseto a Pandas DataFrame.Installation$ pip install whocovid19dbUsagefrom whocovid19db import Exporter

# Create a new instance:
exp = Exporter()

# Export 5 documents from 2021/Oct/29 to 2021/Oct/30:
df = exp.get_df(date_interval=(20211029, 20211030), count=5)
Package: who_dev
who_devTesting Authenticataion for repoze.who v2 WSGI ApplicationsThis plugin is intented for quickly configuring test users for
development purposes. Its use is not recommended in production systems.Installingpip install who_devInstalling the mainline development branchThe plugin is hosted ina git branch hosted at github.com. To get the latest source
code, run:git clone git@github.com:m-martinez/who_dev.gitThen run the command below:pip install -e who_dev/Configuringrepoze.whoin a INI fileYou can configure yourrepoze.whobased authentication via a*.inifile,
and then load such settings in your application.Say we have a file calledwho.iniwith the following contents:[general]
request_classifier = repoze.who.classifiers:default_request_classifier
challenge_decider = repoze.who.classifiers:default_challenge_decider

[identifiers]
plugins =
  auth_tkt

[authenticators]
plugins =
  auth_tkt
  dev_auth

[challengers]
plugins =
    form;browser

[mdproviders]
plugins =
  dev_properties
  dev_groups

[plugin:form]
use = repoze.who.plugins.form:make_plugin
rememberer_name = auth_tkt

[plugin:auth_tkt]
use = repoze.who.plugins.auth_tkt:make_plugin
secret = s3kr1t

[plugin:dev_auth]
use = who_dev:JSONAuthenticatorPlugin
data = {
  "someuser":  {
    "password": "abc123",
    "properties": {
      "first_name": "Some",
      "last_name": "User",
      "email": "someuser@localhost"
    },
    "groups": ["members", "editors"]
  }
}

[plugin:dev_properties]
use = who_dev:JSONPropertiesPlugin
source_key = properties

[plugin:dev_groups]
use = who_dev:JSONPropertiesPlugin
source_key = groupsFramework-specific documentationYou may want to check the following framework-specific documents to learn tips
on how to implementrepoze.whoin the framework you are using:Pyramid:pyramid_who.Pylons:Authentication and Authorization with repoze.who.TurboGears 2:Authentication and Authorization in TurboGears 2(repoze.whois the default authentication library).ConfigurationJSONAuthenticatorPluginThis plugin uses a JSON object as a database, where each key in the object is
the userid and the value is another object with specific details about the user, which
can then be used along ithJSONPropertiesPluginto retrieve specific details about
the user.Each record for a user must at a minimum contain apasswordentry so that
the user can authenticate, for example:data={
  "someuser": {"password": "abc123"},
  "otheruser": {"password": "xyz789"}
}SettingDefaultDescriptiondataRequiredA JSON object contaiing records for each
test userid.JSONPropertiesPluginThis plugin uses the specific key in the authenticator data to lookup
specific details about a user.SettingDefaultDescriptionsource_keyRequiredSets the remote user data to the value
located atsource_keyfor the currently
authenticated userid.Changelog0.0.2 (2016-06-22)Converted to actual module so setup.py packages correctly0.0.1 (2015-10-19)The initial release.
Package: whodis
WhoDisParses the contents of a source code directory and determines the programming languages in use.Languages Supported:GoJavaJavaScriptPythonRubyUsageInstall from PyPI:pipinstallwhodisImport the module and create a new instance of WhoDis:fromwhodisimportWhoDisblah=WhoDis()WhoDis objects have a single method, parse(), which takes a single filepath (string) parameter:blah.parse("/some/valid/path/with/source/code")After parsing a valid path with at least one file in a supported language, the object will have four attributes:# language - The dominant programming language in the source path.# String.# Possible string values are "go", "java", "js", "py", "rb".blah.language>>>"py"# all_languages - All languages present in the source path.# List of strings.# Possible list values are "go", "java", "js", "py", "rb".blah.all_languages>>>["rb","js"]# files - All non-filtered files in the source path.# List of strings.blah.files>>>["__init__.py","main.py","README.md","LICENSE.md","requirements.txt"]# files_by_language - All non-filtered files in the source path broken down by language.# Dictionary with strings for keys and lists of strings for values.# Possible key names are "go", "java", "js", "py", "rb".blah.files_by_language>>>{"rb":["application_controller.rb","model.rb"],"js":["app.js"]}FAQs1. How does WhoDis work?WhoDis is very naive. It will recursively find all files in a path, filter out certain directories (e.g. .git, build/packaging, virtual environments, etc.), look at the file extensions of the files returned, and group them by extension (e.g. .py). WhoDis then looks at which language has the most files and considers it the dominant language for the source code in the path.2. What gets filtered out? Why filter?Please look at the *_filters.py files, which should be quite easy to understand. The files getting filtered are in directories that are commonly associated with things like version control, building/packaging, and virtual environments. The reason for filtering is 1) to speed up WhoDis (e.g. a big .git can slow us down a lot), and 2) these directories usually contain files that are irrelevant/redundant to determining the programming languages being used. In short, filtered files shouldn't influence WhoDis' parsing.3. Why only support Go, Java, JavaScript, Python, and Ruby?I wrote WhoDis for use with another project that interacts with AWS Lambda. These languages are all natively supported by Lambda. Feel free to open a PR if you'd like additional language support!
Package: whoid-api
WhoIDЧто это?whoid.ru - это единая система авторизации для проектов учеников школы 1561НачалоИмпортируйте класс WhoID из whoid_apifrom whoid_api import WhoIDИспользованиеЧтобы работать с API - получите ключ на сайте whoid.ru, а затем создайте объект класса WhoID, передав в него ключfinder = WhoID("ВАШ ТОКЕН")Чтобы найти пользователя по его электронной почте и паролю - у объекта класса WhoID вызовите методcheck_user()передав в него сначала электронную почту, а затем парольuser = finder.check_user('mail@example.com', 'QWERTY123')Если все будет хорошо и такой пользователь реально существует - вы получите ответ в видеJSON{'class': '3Б', 'name': 'Иванов Иван Иванович', 'phone': '88005553535'}РазработчикTelegram:@sl1pper_hiПочта:admin@banjosurf.ru
Package: whoi-gitver
gitvergitver is a simple script that generates a string to describe the version status of a git repository.Formatgitver presumes that the git repository is using tags to track version releases and that those tags adhere to the semantic versioning format of vMAJOR.MINOR.PATCH.It will generate a string that includes the git project name, branch name, tagged version number, and status of the working copy.Clean working copy examplegitver_master_v0.0.1Some number n commits beyond a tagged versiongitver_master_v0.0.1-2-98a7gb37
Where the number of commits and the latest commit hash are appendedLocalIf the working copy is out of sync with the origin remote, then -local will be appended to the end of the stringDirtyIf the working copy has changes that have not been committed or files that have not been added to version control, then -dirty will be appended to the end of the string.
Package: whois11
Whois11"Whois11" is a whois client tool. --- made with Python.RequirementPython 3.5 --- Tested underAnacondadistribution.InstallationInstall Whois11 with pip command.pipinstallwhois11Usageimportwhois11print(whois11.whois('example.com'))LicenseGNU General Public License v3.0
Package: whois-api
OverviewThe client library forWhois APIin Python language.The minimum Python version is 3.7.Installationpip install whois-apiExamplesFull API documentation availablehereCreate a new clientfrom whoisapi import *

client = Client(api_key='Your API key')Make basic requests# Get parsed whois record as a model instance.
whois = client.data('whoisxmlapi.com')
# Get particular field of the whois record
print(whois.created_date_raw)

# Get raw API response
resp_str = client.raw_data('whoisxmlapi.com')Additional optionsYou can specify a custom parameters for particular requestparams = RequestParameters(ignore_raw_texts=1, da=2)

whois = client.data('whoisxmlapi.com', params)
print(whois.domain_availability_raw)

# Also you can modify default values of parameters:
client.parameters.output_format = 'xml'
print(client.raw_data('whoisxmlapi.com'))Changelog1.2.0 (2023-07-31)Fix datetime parsing1.1.4 (2023-07-31)Fix datetime parsingAdd postal_code_str field1.1.3 (2023-07-31)Bump requestsDrop Python 3.6 support1.1.2 (2022-11-08)Bump urllib31.1.1 (2021-11-19)Added postal address error handling1.1.0 (2021-04-21)Minor fixesError class ‘UnparableApiResponse’ was renamed to ‘UnparsableApiResponseError’1.0.0 (2021-04-12)First release
Package: whoisdomain
whoisdomainA Python package for retrieving WHOIS information of DOMAIN'S ONLY.Python 2.x IS NOT supported.Currently no additional python packages need to be installed.NotesThis package will not support querying ip CIDR ranges or AS informationThis was a copy of the original DanyCork 'whois'.Significantly refactored in 2023.The output is still compatible with DanyCork 'whois'VersioningI will start versioning at 1.x.xthe second item will be YYYYMMDD,the third item will start from 1 and be only used if more than one update will have to be done in one day.Versions1.x.xwill keep the output compatible with Danny Cork until 2024-02-03 (February 2024)ReleasesReleases are avalable at:PypiPypi releases can be installed with:pip install whoisdomainFeaturesSee:FeaturesDependenciesplease install also the command line "whois" of your distribution as this library parses the output of the "whois" cli command of your operating systemNotes for Mac usersit has been observed that the default cli whois on Mac is showing each forward step in its output, this makes parsing the result very unreliable.using a brew install whois will give in general better results.Docker releaseSeeDockerUsage exampleSeeUsagewhoisdomainthe cliwhoisdomainis  documented inwhoisdomain-cliccTLD & TLD supportMosttld'sare now autodetected via IANA root db, see the Analizer directory
andmake suggest.see the file:tld_regexprfor python use:whoisdomain.validTlds()for cli usewhoisdomain -SSupportPython 3.x is supported for x >= 9Python 2.x IS NOT supported.Author'sSee:AuthorsUpdatesseeUpdatesfor a full history of changes.Only the latest update is mentioned here1.20230906.1introduce parsing based on functionsallow contextual search in splitted data and plain dataallow contextual search based on earlier resultfix a few tld to return the proper registrant string (not nic handle)1.20230913.1if you have installedtld(pip install tld) you can enable withPublicSuffix=True to process untill you reach the pseudo tld.the public_suffix info is added if available (and if requested)example case is: ./test2.py -dwww.dublin.airport.aero--withPublicSuffix1.20230913.3fix re.NOFLAGS, it is not compatible with 3.9, it appears in 3.111.20230917.1prepare work on pylintswitch to logging: all verbose is currently log.debug(); to show set LOGLEVEL=DEBUG before calling, see Makefile: make testexperimental: add extractServers: bool default False; when true we will try to extract the "redirect info chain" on rcf1036/whois and jwhois for linux/darwinadd missing option to query(), test in production environment done1.20231102.1fix from kazet for .pl tld.1.20231115.1New tld's and removal of a few tlds no longer supported at ianaabb, bw, bn, crown, crs, fj (does not work), gp (does not work), weir, realtor, post, mw, pf (a strange one), iq (gives timout), mm, int, hm (does not work)1.20240129.1add various second level .uk for which i can create tests; comments in the tld_regexpr.py; a few have no example or whois server to test with2024-01-23add switch not to ignore leading www in the domain request
Package: whoiser
Descriptionwhois information for given IP addressesInstallationpip install whoiserUsageFrom command line:python -m whoiser --path PATHOptionShortTypeDefaultDescription--path-pString-Path to list of IPsExamplepython -m whoiser -p addr.txt > result.txt################################################################################

whoiser by 5f0
whois information for given IP addresses

Current working directory: path/to/whoiser

Datetime: 01/01/1970 10:11:12

################################################################################

+----------------+------------------+-------------------------------+----------------------+-----------------------+
|     Query      |      CIDR        |             Range             |     Network Name     |      Contact Name     |
+----------------+------------------+-------------------------------+----------------------+-----------------------+
|  20.81.111.85  | 20.33.0.0/16 (+) |   20.33.0.0 - 20.128.255.255  |         MSFT         | Microsoft Corporation |
| 74.125.225.229 | 74.125.0.0/16    |  74.125.0.0 - 74.125.255.255  |         GOOGLE       |       Google LLC      |
| 185.60.216.35  | 185.60.216.0/22  | 185.60.216.0 - 185.60.219.255 | IE-FACEBOOK-20140612 |        meta-mnt       |
+----------------+------------------+-------------------------------+----------------------+-----------------------+

################################################################################

Execution Time: 46.01186 secLicenseMIT
Package: whois-format
whois-formatWhois client wrapper producing a terse, single-line format.Why?When dealing with security threats, an important aspect to analyze and
track is the attacker's infrastructure
(ref.Diamond Model).WHOISprovides a distributed database
containing registered domain information, and an associated protocol for
querying this information.One issue with WHOIS data is that as a directory record format, it can
contain a lot of information - sometimes many dozens of lines of output,
with some being repeated, and in the modern day, much of this being
boilerplate redacted information due to WHOIS privacy. Additionally,
not every registry's record format is the same, so the lack of consistency
can be difficult to deal with. As an analyst, when looking up domain name
information, this can be tedious. In some cases, you may spend a good amount
of time copying, pasting and formatting data from WHOIS records.FeaturesThis tool attempts to ease this by presenting WHOIS information in a brief
format:Domain information in a terse, consistent single-line layout.Suitable for grep(1) and for arranging on a page in a readable columnar
format.Information output is only key fields useful for typical purposes: domain
name, registration date, registrar, nameservers, registrant name (or
organization), and registrant email.The output format is optimized for plain text use, and fields are separated
using two spaces, with multiple value fields separated with a comma and
space. This format is intended for reading, not parsing.A default sleep time of 15 seconds is implemented as a blunt pause so that
lookups don't trigger thresholds on WHOIS servers, which can result in
blocklisting or further data redaction. When looking up multiple domains,
this version of the tool pauses to collect information on all domains
before outputting any data (this needs to be improved). This threshold
can be adjusted using the-soption.whois-format uses thepython-whoislibrary to query WHOIS.SetupIt's recommended to usepipxfor easy setup and
isolation:pipx install whois-formatExamplesLooking up a single input domain. The same syntax supports passing additional
domains on the command line:$ whois-format -d iana.org
IANA.ORG  1995-06-05  CSC Corporate Domains, Inc.  iana-servers.net, icann.org  REDACTED FOR PRIVACY  domainabuse@cscglobal.comQuerying for a list of domains from a newline-separated file:$ whois-format -f tests/sample_domains.txt 
IANA.ORG       1995-06-05  CSC Corporate Domains, Inc.  icann.org, iana-servers.net   REDACTED FOR PRIVACY     domainabuse@cscglobal.com
ICANN.ORG      1998-09-14  GoDaddy.com, LLC             icann.org, icann-servers.net  REDACTED FOR PRIVACY     abuse@godaddy.com
SLACKWARE.COM  1995-12-26  Network Solutions, LLC       cwo.com                       Slackware Linux Project  abuse@web.com, volkerdi@gmail.com, domain.operations@web.com
Package: whois-history
The client library forWhois History APIin Python language.The minimum Python version is 3.6.Installationpip install whois-historyExamplesFull API documentation availablehereCreate a new clientfrom whoishistory import ApiClient

client = ApiClient('Your API key')Make basic requests# Check how many records available. It doesn't deduct credits.
print(client.preview('whoisxmlapi.com'))

# Get actual list of records.
resp = client.purchase('whoisxmlapi.com')

for r in resp:
    print(r.registrar_name)Additional optionsYou can specify search options for these methods.import datetime

d = datetime.date(2017, 1, 1)

print(client.preview('whoisxmlapi.com'),
      sinceDate=d,
      createdDateFrom=d,
      createdDateTo=d,
      updatedDateFrom=d,
      updatedDateTo=d,
      expiredDateFrom=d,
      expiredDateTo=d,
)Changelog1.0.0 (2020-05-01)First release
Package: whoishome
WhoIsHomeA simple Python CLI dashboard which usesnmapto help you keep track of who's on your network (made beautiful with the python libraryrich).Install nmap.Install using pip:pip install whoishomeAdd MAC addresses:whoishome --add Jack=DE:FA:CE:D1:23:45Learn more about how to use it:whoishome --helpRun it:whoishome --subnet 192.168.0.1/24