Saravanan666/pypi-org huggingface dataset:
Package: httpfind
Search network for HTTP servers using a regular expression filter.Usehttpfindto obtain the IP addresses of specified devices on a
network. HTTP requests for a user specified page are sent in parallel.
Responses are compared against a user specified regular expression
pattern. Qualified results are returned as a list. The module is readily
imported for use in other projects, and it also includes a convenient
command line interface.InstallationpipinstallhttpfindExamplesBasic import exampleimporthttpfindresult=httpfind.survey(network='192.168.0.0/24',pattern='(A|a)ccess (P|p)oint',path='login.php',log=False)# Results printed as full URLsprint(result)# Results printed as IP addressesprint([x.hostnameforxinresult])Yields['http://192.168.0.190/login.php','http://192.168.0.191/login.php','http://192.168.0.192/login.php']['192.168.0.190','192.168.0.191','192.168.0.192']Command line example$>httpfind-husage:httpfind[-h][-pPATH][-fPATTERN][-l]networkSearch'network'forhostswitharesponseto'path'thatmatches'filter'positionalarguments:networkIPaddresswithoptionalmask,e.g.192.168.0.0/24optionalarguments:-h,--helpshowthishelpmessageandexit-pPATH,--pathPATHURLpathathost,e.g.index.html-fPATTERN,--filterPATTERNRegularexpressionpatternforfilter-l,--logEnablelogging$>httpfind192.168.0.0/24-f"Access Point"-plogin.phpScanning,pleasewait...Found3matchesforAccessPointon192.168.0.0/24192.168.0.190192.168.0.191192.168.0.192Parametersdef survey(network=None,path='',pattern='',log=False):network- IP address and subnet mask compatible withipaddress
librarypath- Path portion of a URL as defined byurl(un)splitpattern- A regular expression pattern compatible withre.compilelog- boolean to control logging levelConsequently, the network can be defined in either subnet mask
(x.x.x.x/255.255.255.0) or CIDR notation (x.x.x.x/24). Presently,httpfindonly scans networks of upto 256 addresses as shown in most of
the examples. Of course, a single IP address may be specified either by
x.x.x.x or x.x.x.x/32.There are numerous resources for regular expressions, such as theintroductionprovided
by the Python Software Foundation. For the simple cases, using the
default or ‘’ will match any pages while a word such as ‘Access’ will
match if it’s found in the returned HTML provided it’s the same case.PerformanceAsdiscoverhueutilizes the excellentaiohttppackage, requests
are sent simultaneously rather than iteratively. More accurately, the
requests are sent randomly over a 2.5s interval so as to not spike
traffic. The timeout is set for 5.0s, so typical execution time is about
8.0s.ContributionsWelcome athttps://github.com/Overboard/httpfindStatusReleased.
Package: httpfs
What can you do with it?WithPython File System 2, you can do:>>> import fs
>>> with fs.open_fs('https://www.google.com') as f:
...     print(f.readbytes('index.html'))
b'<!doctype ....'Have fun!WhyIt enablesmobanto use any files over http(s) as its
template or data file:$moban-t'https://raw.githubusercontent.com/moremoban/pypi-mobans/dev/templates/_version.py.jj2'\-c'https://raw.githubusercontent.com/moremoban/pypi-mobans/dev/config/data.yml'\-o_version.pyInstallationYou can install httpfs via pip:$pipinstallhttpfsor clone it and install it:$gitclonehttps://github.com/moremoban/httpfs.git$cdhttpfs$pythonsetup.pyinstallChange log0.0.1 - 1.5.2020first releasewhat a feat!
Package: httpfs-py
httpfsTODOUsageExample:$ httpfs https://archive.org/download/league-of-legends-rads-patch-system-2010-2019{/RADS_LZX_Split{a..d}{a..z},-part-2/RADS_LZX_Split{e..h}{a..z},-part-3/RADS_LZX_Split{i{a..z},j{a..j}}}
Got 244 parts.
https://archive.org/download/league-of-legends-rads-patch-system-2010-2019/RADS_LZX_Splitaa 10.0G
...
https://archive.org/download/league-of-legends-rads-patch-system-2010-2019-part-3/RADS_LZX_Splitjj 2.8G
/tmp/tmpm4e040txIn another terminal:$ ls -lh /tmp/tmpm4e040tx
total 2.4T
-r--r--r-- 0 root root 2.4T Jan  1  1970 RADS_LZX_Split

$ wimmount /tmp/tmpm4e040tx/RADS_LZX_Split 14 /mnt/RADS-live

$ ls -l /mnt/RADS-live
total 0
drwxrwxrwx 1 vladimir vladimir 0 Mar 17  2021 live

$ ls -l /mnt/RADS-live/live/projects/league_client/releases/0.0.0.240/files
total 57386
-rwxrwxrwx 1 vladimir vladimir   198248 Mar 10  2020 BugSplatRc.dll
-rwxrwxrwx 1 vladimir vladimir   713320 Mar 10  2020 chrome_elf.dll
-rwxrwxrwx 1 vladimir vladimir  1237608 Mar 10  2020 ffmpeg.dll
-rwxrwxrwx 1 vladimir vladimir    24680 Mar 10  2020 jpatch.exe
-rwxrwxrwx 1 vladimir vladimir 23552616 Mar 10  2020 LeagueClient.exe
-rwxrwxrwx 1 vladimir vladimir  3538536 Mar 10  2020 LeagueClientUx.exe
-rwxrwxrwx 1 vladimir vladimir   812136 Mar 10  2020 LeagueClientUxRender.exe
-rwxrwxrwx 1 vladimir vladimir 93511784 Jul 30  2020 libcef.dll
-rwxrwxrwx 1 vladimir vladimir   117864 Mar 10  2020 libEGL.dll
-rwxrwxrwx 1 vladimir vladimir  4730984 Mar 10  2020 libGLESv2.dll
-rwxrwxrwx 1 vladimir vladimir  2433536 Mar 10  2020 rc-win.uni

$ head -c 128 /mnt/RADS-live/live/projects/league_client/releases/0.0.0.240/files/LeagueClient.exe | xxd
00000000: 4d5a 9000 0300 0000 0400 0000 ffff 0000  MZ..............
00000010: b800 0000 0000 0000 4000 0000 0000 0000  ........@.......
00000020: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000030: 0000 0000 0000 0000 0000 0000 b001 0000  ................
00000040: 0e1f ba0e 00b4 09cd 21b8 014c cd21 5468  ........!..L.!Th
00000050: 6973 2070 726f 6772 616d 2063 616e 6e6f  is program canno
00000060: 7420 6265 2072 756e 2069 6e20 444f 5320  t be run in DOS 
00000070: 6d6f 6465 2e0d 0d0a 2400 0000 0000 0000  mode....$.......Installpip3 install httpfs-py
Package: http-here
## 1. Install> **pip install http-here**Then get a cli command named `http-here`.## 2. UsageCLI command **http-here**，How to use it：> **http-here [port]**Or `hint --help` to get documents.```shell$ http-here --helpUsage: http-here [OPTIONS] [PORT]Options:--host TEXT  The binding host of server.--help       Show this message and exit.```
Package: http-hoba-auth
PYTHON HTTP ORIGIN-BOUND AUTHENTICATION SCHEMEProvides utilities for handling HOBA authentication header exchange. See RFC7486 for details.NOTE: At the time of writing this module, the only two signature algorithm codes defined by IANA are RSA-SHA256 and RSA-SHA1 (see RFC section9.3). However, this module was initially written as part of a HOBA implementation for the ethereum/bitcoin secp256k1 signature algorithm. The value "42" is arbitrarily selected for this algorithm, but it by no means pretends to be authoritative.UsageThe module isverysimple. Refer to the test to see how it works. You'll want to read the RFC too.
Package: httpie
HTTPie for Terminal: human-friendly CLI HTTP client for the API eraHTTPie (pronouncedaitch-tee-tee-pie) is a command-line HTTP client.
Its goal is to make CLI interaction with web services as human-friendly as possible.
HTTPie is designed for testing, debugging, and generally interacting with APIs & HTTP servers.
Thehttp&httpscommands allow for creating and sending arbitrary HTTP requests.
They use simple and natural syntax and provide formatted and colorized output.We lost 54k GitHub starsPlease note we recently accidentally made this repo private for a moment, and GitHub deleted our community that took a decade to build. Read the full story here:https://httpie.io/blog/stardustGetting startedInstallation instructions →Full documentation →FeaturesExpressive and intuitive syntaxFormatted and colorized terminal outputBuilt-in JSON supportForms and file uploadsHTTPS, proxies, and authenticationArbitrary request dataCustom headersPersistent sessionswget-like downloadsSee all features →ExamplesHello World:httpshttpie.io/helloCustomHTTP method,HTTP headersandJSONdata:httpPUTpie.dev/putX-API-Token:123name=JohnBuild and print a request without sending it usingoffline mode:http--offlinepie.dev/posthello=offlineUseGitHub APIto post a comment on anIssuewithauthentication:http-aUSERNAMEPOSThttps://api.github.com/repos/httpie/httpie/issues/83/commentsbody='HTTPie is awesome! :heart:'See more examples →Community & supportVisit theHTTPie websitefor full documentation and useful links.Join ourDiscord serveris to ask questions, discuss features, and for general API chat.Tweet at@httpieon Twitter.UseStackOverflowto ask questions and include ahttpietag.CreateGitHub Issuesfor bug reports and feature requests.Subscribe to theHTTPie newsletterfor occasional updates.ContributingHave a look through existingIssuesandPull Requeststhat you could help with. If you'd like to request a feature or report a bug, pleasecreate a GitHub Issueusing one of the templates provided.See contribution guide →
Package: httpie-adobeio
AdobeIO plugin forHTTPiethat provides support forAdobe IO service account authentication.Installation$pipinstallhttpie-adobeioYou should now seeadobeiounder--auth-typein$ http--helpoutput.ConfigurationThe plugin will look for a configuration file in the~/.httpie_adobeio.inilocation:
.. code-block:[DEFAULT]
ims_base=https://ims-na1.adobelogin.com

public_cert=-----BEGIN CERTIFICATE-----
 your public certificate here
 important: note leading indentation
 -----END CERTIFICATE-----

private_key=-----BEGIN PRIVATE KEY-----
 your key private key here
 important: note leading indentation
 -----END PRIVATE KEY-----

[profile-1]
ims_org=ABC123@AdobeOrg
account_id=ABC123@techacct.adobe.com
api_key=ABC123ABC123ABC123ABC123ABC123
scopes=ent_cloudmgr_sdk
       ent_campaign_sdkShared settings can be saved in theDEFAULTsection.  It’s possible to have multiple profiles and reference them from username part of the--authparameterUsage$http--auth-type=adobeio--auth='profile:client-secret'https://cloudmanager.adobe.io/api/programsYou can also useHTTPie sessions:# Create session$http--session=logged-in--auth-type=adobeio--auth='profile:client-secret'https://cloudmanager.adobe.io/api/programs# Re-use auth$http--session=logged-inhttps://cloudmanager.adobe.io/api/programs
Package: httpie-akamai
HTTPieplugin to help with testing sites hosted on the Akamai content delivery network.Note: this software is not provided or endorsed by Akamai TechnologiesThis plugin will add standard Akamai debugging headers to the request, and colorize Akamai informational headers in the response.Optionally, the request can be forced to the Akamai production or staging networks (if the public hostname is the same as the edge hostname).Installation$pipinstallhttpie-akamaiUsagePrefix the URL withak-,akp-oraks-to activate the plugin. The plugin handles URLs starting with “ak” as an alternative schema.Useak-to activate debugging headers and syntax coloring without changing the request target:$http-pHhak-http://www.example.com/Useakp-oraks-to force the request onto the Akamai production or staging network respectively. This only works if the public hostname and the edge hostname are the same.$http-pHhakp-http://www.example.com# is equivalent to$http-pHhhttp://www.example.com.edgesuite.netHost:www.example.com$httpaks-http://www.example.com# is equivalent to$http-pHhhttp://www.example.com.edgesuite-staging.netHost:www.example.com
Package: httpie-api-auth
ApiAuthauth plugin forHTTPie.Installation$pipinstallhttpie-api-authYou should now seeapi-authunder--auth-typein$ http--helpoutput.Usage$http--auth-type=api-auth--auth='access_id:secret_key'example.orgCompatibilityAs of version 0.3.0 of this library, only the new canonical string form introduced inapi_auth 1.4is
supported. If you need to interact with services that have not yet upgraded to be compatible
with this new scheme, you will need to use version 0.2.1 of this library to sign requests
in a manner that those services will accept.
Package: httpie-astra
Astra plugin forHTTPie.InstallationTo install from sources:$pythonsetup.pyinstallIf using python 3 on Mac, replace python with python3:$python3setup.pyinstallOr, if you like, you can just use pip:$pipinstallhttpie-astraUsageThe Astra plugin relies on a .astrarc credentials file that will be created in your home directory and organized by [section] following the format below. Each [section] can contain a different credentials set allowing you to store all of your credentials in a single file.[default]ASTRA_DB_REGION=*******ASTRA_DB_ID=*********************ASTRA_DB_USERNAME=*********ASTRA_DB_PASSWORD=*********ASTRA_DB_KEYBASE=tutorialASTRA_DB_TOKEN=xxxxASTRA_DB_TOKEN_TIME=X[section1]ASTRA_DB_REGION=*******ASTRA_DB_ID=*********************ASTRA_DB_USERNAME=*********ASTRA_DB_PASSWORD=*********ASTRA_DB_KEYBASE=tutorialASTRA_DB_TOKEN=xxxxASTRA_DB_TOKEN_TIME=XOnce you have the credentials set up, here is an example of what an Astra Call call would look like:%http--auth-typeastra-adefault::/rest/v2/schemas/keyspacesor%http:/graphql/tutorialquery='query { products(value: { id: "65cad0df-4fc8-42df-90e5-4effcd221ef7" }) { values { id name description price created } } }'When you run the command, if your authentication token has expired it will refresh it for you.I have made a change to how httpie processes json data.  To pass JSON in the request, just use something like this:http--auth-typeastra-adefault:POST:/rest/v2/schemas/keyspaces/KS/tables\json:='{"name":"products","ifNotExists":true,"columnDefinitions": [\
{"name":"id","typeDefinition":"uuid","static":false}, {"name":"name","typeDefinition":"text","static":false}, \
{"name":"description","typeDefinition":"text","static":false}, {"name":"price","typeDefinition":"decimal","static":false}, \
{"name":"created","typeDefinition":"timestamp","static":false}],"primaryKey": {"partitionKey":["id"]},"tableOptions":{"defaultTimeToLive":0}}'Note that you can create a configuration file to simplify the command furtherFile: ~/.config/httpie/config.json{"default_options":["--style=fruity","--auth-type=astra","--auth=default:"]}
Package: httpie-aws-auth
httpie-aws-authAWS / Amazon S3 auth plugin forHTTPie.Installation$pipinstall--upgradehttpie-aws-authYou should now seeawsunder--auth-type/-Ain$ http--helpoutput.UsageCredentials on the CLIThe syntax and behavior is the same as with the basic auth.Specify both access key ID and secrethttp--auth-typeaws-aACCESSKEYXXX:AWSSECRETKEYXXXhttp://bucket.s3.amazonaws.com/testSpecify only the keyThere’ll be a password prompt:$http-Aaws-aACCESSKEYXXXhttp://bucket.s3.amazonaws.com/testhttp:passwordforACCESSKEYXXX@bucket.s3.amazonaws.com:<enterawssecretkey>Auth via theAWS_*environment variablesThe names are identical to whatAWS CLIand other tools use, so you might be already good to go.exportAWS_ACCESS_KEY_ID=ACCESSKEYXXXexportAWS_SECRET_ACCESS_KEY=AWSSECRETKEYXXXhttp-Aawshttp://bucket.s3.amazonaws.com/testImplementationThis plugin useshttps://github.com/tax/python-requests-aws
Package: httpie-bearer-auth
Bearer auth plugin forHTTPie.Installation$pipinstallhttpie-bearer-authYou should now seebearerunder--auth-typein$ http--helpoutput.Usage$http--auth-type=bearer--auth=94a08da1fecbb6e8b46990538c7b50b2example.orgLicenseCopyright (c) 2016 The Guardian. Available under the MIT License.Copyright (c) 2021 James Fenwick.
Package: httpie-consul
httpie-consul=============Consul plugin for [HTTPie](https://httpie.org/).It currently provides support for Consul.Installation------------```bash$ pip install httpie-consul```You should now use plugin.Usage-----```bash$ http service://my-fancy-service/HTTP/1.1 200 OKConnection: keep-aliveContent-Length: 32Response from My Fancy Service!```You can also configure plugin by environment variables:```bash$ export CONSUL_HOST=consul.local$ export CONSUL_PORT=80$ export CONSUL_SCHEME=https```
Package: httpie-django-auth
httpie-django-authdjango auth plugin for HTTPie.Installation$pipinstallhttpie-django-authYou should now seedjangounder--auth-typein$ http--helpoutput.UsageBy default httpie-django-auth uses/admin/loginto login. If you need to use some other url for logging, setHTTPIE_DJANGO_AUTH_URLenvironment variable.exportHTTPIE_DJANGO_AUTH_URL='/accounts/login/'Make requests to your site$http--auth-type=django--auth='username:password'example.org$http-A=django--auth='username:password'example.org$http-A=django--auth='username:password'example.org/profile$http-A=django--auth='username:password'http://127.0.0.1:8000/profileLicenseSee LICENSE.txt
Package: httpie-edgegrid
# httpie-edgegridEdgeGrid plugin for [HTTPie](https://github.com/jkbr/httpie).## InstallationTo install from sources:` bash $ python setup.py install `When using python 3 on Mac, replace python with python3:` bash $ python3 setup.py install `If you have problems installing from sources, you could use pip:` bash $ pip installhttpie-edgegrid`## Running tests in virtual environmentTo test in a [virtual
environment](https://packaging.python.org/tutorials/installing-packages/#creating-virtual-environments),
run:` bash $ python3-mvenv venv $ . venv/bin/activate $ pip install-rrequirements_dev.txt $ python-munittest discover `## UsageThe EdgeGrid plugin relies on a .edgerc credentials file that needs to be created in your home directory and organized by [section] following the format below. Each [section] can contain a different credentials set allowing you to store all of your credentials in a single .edgerc file.` [default] client_secret = xxxx host = xxxx # Note, don't include thehttps://here access_token = xxxx client_token = xxxxmax-body= xxxx [section1] client_secret = xxxx host = xxxx # Note, don't include thehttps://here access_token = xxxx client_token = xxxxmax-body= xxxx `Once you have the credentials set up, here is an example of what an Akamai OPEN API call would look like:` bash % http--auth-typeedgegrid-a<section_name>::/<api_endpoint>`### ExampleMaking the diagnostic-tools API [locations]{.title-ref} call:` bash % http--auth-typeedgegrid-adefault::/edge-diagnostics/v1/edge-locations`## Parameters–edgegrid-configPath to.edgerccredentials file (optional, defaults to~/.edgerc)## Environment variablesRC_PATHPath to.edgerccredentials file (optional, equivalent to the–edgegrid-configparameter)## TroubleshootingMacOS Sierra users have reported the error "http: error: argument --auth-type/-A: invalid choice: 'edgegrid' (choose from 'basic', 'digest')" after installation. Try installing using pip instead.The error "ImportError: ‘pyOpenSSL’ module missing required functionality. Try upgrading to v0.14 or newer" requires you to install an updated version of `pyOpenSSL`:` bash $ pip install--ignore-installedpyOpenSSL `Since v0.9.4 of httpie the Mac homebrew package is build with python3. If you get an error for "ImportError: No module named cryptography" then probably you installed httpie-edgegrid with python2.7 (unsupported). To explicitly install with python3 use:` bash $ sudo python3 setup.py install `Or with pip3:` bash $ sudo pip3 installhttpie-edgegrid`## AdvisoriesStarting with HTTPie version 2.3.0 uploads are streamed, causing an issue posting JSON payloads as those don't include a content-length causing an error with the [Edgegrid authentication libraries](https://github.com/akamai/AkamaiOPEN-edgegrid-python). See [Issue #49](https://github.com/akamai/AkamaiOPEN-edgegrid-python/issues/49) for more details
Package: httpie-ems-auth
ThisHTTPieauth plugin implements Escher authentication
for Emarsys API requests.InstallationBe sure thatHTTPieis installed, and install this plugin:$pipinstallhttpie-ems-authAfter installing, you will see the optionems-authunder--auth-typeif you run$ http--help.ExampleSuiteable if you call the API of Suite$http--auth-type=ems-auth--auth=escher_key:escher_secrethttps://api.emarsys.net/api/v2/internal/12345678/settingsThe default Escher credential scope is “eu/suite/ems_request” which identifies Suite.
If u are calling another service, you have to alter the credential scope like this:$http--auth-type=ems-auth--auth=eu/suite/ems_request/escher_key:escher_secrethttps://api.emarsys.net/api/v2/internal/12345678/settingsCheck outHTTPie sessionsif you would like to
save authentication information between your requests.If you want to use in python code this example can help:importescherauthimportdatetimefromurlparseimporturlparseimportrequestsescher_key='test'escher_secret='test'options={'algo_prefix':'EMS','vendor_key':'EMS','hash_algo':'SHA256','auth_header_name':'X-Ems-Auth','date_header_name':'X-Ems-Date'}credential_scope="test"if"/"inescher_key:scope=escher_key.split("/")escher_key=scope.pop()credential_scope="/".join(scope)client={'api_key':escher_key,'api_secret':escher_secret}escher=escherauth.Escher(credential_scope,options)url='http://test-escher-url.com/api/call/smth'r=requests.PreparedRequest()r.prepare('GET',url)now=datetime.datetime.utcnow()r.headers['X-Ems-Date']=now.strftime('%Y%m%dT%H%M%SZ')parsed_uri=urlparse(r.url)r.headers['Host']=parsed_uri.netlocf=escher.sign(r,client)s=requests.Session()s.send(f)
Package: httpie-ems-auth-p3
ThisHTTPieauth plugin implements Escher authentication
for Emarsys API requests.InstallationBe sure thatHTTPieis installed, and install this plugin:$pipinstallhttpie-ems-authAfter installing, you will see the optionems-authunder--auth-typeif you run$ http--help.ExampleSuiteable if you call the API of Suite$http--auth-type=ems-auth--auth=escher_key:escher_secrethttps://api.emarsys.net/api/v2/internal/12345678/settingsThe default Escher credential scope is “eu/suite/ems_request” which identifies Suite.
If u are calling another service, you have to alter the credential scope like this:$http--auth-type=ems-auth--auth=eu/suite/ems_request/escher_key:escher_secrethttps://api.emarsys.net/api/v2/internal/12345678/settingsCheck outHTTPie sessionsif you would like to
save authentication information between your requests.If you want to use in python code this example can help:importescherauthimportdatetimefromurlparseimporturlparseimportrequestsescher_key='test'escher_secret='test'options={'algo_prefix':'EMS','vendor_key':'EMS','hash_algo':'SHA256','auth_header_name':'X-Ems-Auth','date_header_name':'X-Ems-Date'}credential_scope="test"if"/"inescher_key:scope=escher_key.split("/")escher_key=scope.pop()credential_scope="/".join(scope)client={'api_key':escher_key,'api_secret':escher_secret}escher=escherauth.Escher(credential_scope,options)url='http://test-escher-url.com/api/call/smth'r=requests.PreparedRequest()r.prepare('GET',url)now=datetime.datetime.utcnow()r.headers['X-Ems-Date']=now.strftime('%Y%m%dT%H%M%SZ')parsed_uri=urlparse(r.url)r.headers['Host']=parsed_uri.netlocf=escher.sign(r,client)s=requests.Session()s.send(f)
Package: httpie-escher-auth
ThisHTTPieauth plugin implements Escher authentication for endpoints
using Escher authentication with default settings.InstallationBe sure thatHTTPieis installed, and install this plugin:$pipinstallhttpie-escher-authAfter installing, you will see the optionescher-authunder--auth-typeif you run$ http--help.Example$http--auth-type=escher-auth--auth=escher_key:escher_secrethttps://api.example.com/usersThe default Escher credential scope is “escher_request”. You can define the credential scope like this:$http--auth-type=escher-auth--auth=credential_scope/escher_key:escher_secrethttps://api.example.com/usersCheck outHTTPie sessionsif you would like to
save authentication information between your requests.