Saravanan666/pypi-org huggingface dataset:
Package: httpie-wsse-auth
ThisHTTPieauth plugin implements Escher authentication
for Emarsys API requests.InstallationBe sure that ‘HTTPie <http://httpie.org/>`_ is installed, and install this plugin:$pipinstallhttpie-wsse-authAfter installing, you will see the optionwsse-authunder--auth-typeif you run$ http--help.Example$http--auth-type=wsse-auth--auth='access_id:secret_key'https://api.emarsys.net/api/v2/settingsCheck outHTTPie sessionsif you would like to
save authentication information between your requests.
Package: httpie-xsisip
httpie-xsisiphttpieBroadsoft authentication plugin to use XSI-SIP (BroadWorksSIP) authenticationInstallation$ pip install httpie-xsisipYou should now seexsisipunder--auth-typein$ http --helpoutput.Usage$ http --auth-type=xsisip -a "XSI_ACCOUNT:SIP_ACCOUNT:SIP_PASSWORD" https://xsi-server.example.com/com.broadsoft.xsi-actions/v2.0/versions
Package: httpie-zign
STUPS Zign OAuth 2 plugin for theHTTPiecommand line HTTP client.Zignis STUPS’ command line client to generate OAuth2 access tokens.Installation$pipinstallhttpie-zignYou should now seezignunder--auth-typein$ http--helpoutput.UsageThis plugin takes the Zign token name as the--authusername.
The--authpassword is used to specify to OAuth scopes.
A named Zign OAuth 2 token is created and used with the specified scopes:$http--auth-type=zign--auth=mytok:myscopehttps://example.org$http--auth-type=zign-amytok:myscope1,scope2https://example.org$http--auth-type=zign-amytok:https://example.org# use default scopesYou can list the created tokens using the Zign CLI:$zignliYou can set the default--auth-type=zignoption in the~/.httpie/config.jsonfile for convenience:$echo'{"default_options": ["--auth-type=zign"]}'>~/.httpie/config.json$http-amytok:https://example.org# that's much shorter now :-)
Package: httpIm
HTTP ImportHTTPIm is a basic library to import files via HTTP.Is not a good idea to use in real projects where you need fast script.Installationpip install httpImUseAfter installing, here's a brief tutorial.importhttp_importarguing=http_import.import_library('https://github.com/ZSendokame/arguing/blob/main/arguing/argument.py')# Will import argument.py, now you can use it as arguing.# example: arguing.get() (a real function in argument.py).# Also, there's a pseudo-cache.arguing=http_import.import_library('https://github.com/ZSendokame/arguing/blob/main/arguing/argument.py',cache=bool)# Cache by default is True.# If cache is true, if the file is already installed it will directly import it, no requests.# If cache is false, it will do the request even if the file is already installed.
Package: httpio
HTTP resources as random-access file-like objectshttpio is a small Python library that allows you to access files
served over HTTP asfile-likeobjects (which is to say that they
support the interface of the standard library’sBufferedIOBaseclass). It differs from libraries likeurllibandrequestsin
that it supportsseek()(which moves an internal pointer), and
thatread()makes a request with theRangeheader set. It also
supports caching of contents using a configurable block size, and will
reuse TCP connections where possible.InstallationUsepipto install httpio:$pipinstallhttpioUsageimportzipfileimporthttpiourl="http://some/large/file.zip"withhttpio.open(url)asfp:zf=zipfile.ZipFile(fp)print(zf.namelist())Unit TestsUnit tests are provided for the standard behaviours implemented by
the library. They can be run with$python-munittestdiscover-stestsor atox.inifile is provided which allows the tests to be run in
virtual environments using thetoxtool:$tox
Package: httpkom
httpkom is an HTTP proxy for LysKOM protocol A servers, and exposes an
REST-like HTTP API. It can for example be used for writing LysKOM
clients in Javascript.The source code can be found at:https://github.com/osks/httpkomPackages are published on PyPI:https://pypi.org/project/httpkom/The documentation can be found at:http://osks.github.io/httpkom/httpkom usespylyskom, which
is also released under GPL.DependenciesFor required Python packages, see requirements.txt. Install them with:$ pip install -r requirements.txtDevelopmentPreparing a releaseTODO: How do we update the documentation on github pages?On master:Update and check CHANGELOG.md.Increment version number and remove+devsuffix
IN BOTHsetup.pyANDhttpkom/version.py!Test manually by using jskom.Commit, push.Tag (annotated) withv<version>(example:v0.1) and push the tag:git tag -a v0.1 -m "Version 0.1"
git push origin v0.1Build PyPI dist:make distPush to Test PyPI:twine upload--repositorytestpypi dist/*and checkhttps://test.pypi.org/project/httpkom/.Push to PyPI:twine upload dist/*and checkhttps://pypi.org/project/httpkom/.Add+devsuffix to version number, commit and push.Github release: Go tohttps://github.com/osks/httpkom/releasesand draft a new release. Select tag and set title to “Version
<version>”, and then publish the release.ToolsInstall and update release tools with:pip install --upgrade setuptools wheel pip twineTwine is used for pushing the built dist to PyPI. The examples in the
release process depends on a.pypircfile with config for the pypi
and testpypi repositories.Example of.pypirc:[pypi]
username = __token__
password = pypi-...

[testpypi]
repository = https://test.pypi.org/legacy/
username = __token__
password = pypi-...AuthorsOskar Skoog <oskar@osd.se>Copyright and licenseCopyright (C) 2012-2022 Oskar SkoogThis program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA  02110-1301, USA.
Package: http-lazy-headers
HLH is an abstraction over raw HTTP headers, providing:Lazy decoding, parsing and validation of input headersEager validation and lazy formatting of output headersMethods and helpers for common operationsA headers collection on top ofOrderedDictfor fast lookupsWSGI supportA pure Python implementation without using regex!A sane APIA way out of messy strings manipulation and typosSpecs support: rfc7230, rfc7231, rfc7232, rfc7233, rfc7234, rfc7235
rfc6265, rfc3986, rfc5646, rfc6266, rfc1034, rfc5234
Package: httplib2
A comprehensive HTTP client library,httplib2supports many features left out of other HTTP libraries.HTTP and HTTPSHTTPS support is only available if the socket module was compiled with SSL support.Keep-AliveSupports HTTP 1.1 Keep-Alive, keeping the socket open and performing multiple requests over the same connection if possible.AuthenticationThe following three types of HTTP Authentication are supported. These can be used over both HTTP and HTTPS.DigestBasicWSSECachingThe module can optionally operate with a private cache that understands the Cache-Control:
header and uses both the ETag and Last-Modified cache validators. Both file system
and memcached based caches are supported.All MethodsThe module can handle any HTTP request method, not just GET and POST.RedirectsAutomatically follows 3XX redirects on GETs.CompressionHandles both ‘deflate’ and ‘gzip’ types of compression.Lost update supportAutomatically adds back ETags into PUT requests to resources we have already cached. This implements Section 3.2 of Detecting the Lost Update Problem Using Unreserved CheckoutUnit TestedA large and growing set of unit tests.
Package: httplib2.ca_certs_locater
===========================httplib2.ca_certs_locater===========================This package provides a plug-in to httplib2 to tell it to use thecertificate authority file from the base OS instead of the one in thehttplib2 package. The file from httplib2 is used as a fallback, if theexpected OS-specific file is not found.Installation============::$ pip install httplib2.ca_certs_locaterSupporting Additional Platforms===============================If you are on a platform with a different certificate authority file,please submit a pull request via github_ to add the file to ``get()``... _github:: https://github.com/dreamhost/httplib2-ca_certs_locater
Package: httplib2shim
httplib2shimis a wrapper overhttplib2that usesurllib3to perform HTTP requests. This library is intended to help existing legacy libraries (and their users) to migrate away fromhttplib2. It is not intended to be a general purpose replacement forhttplib2. It does not support every feature and edge case forhttplib2, although contributions are welcome in order to help us cover these cases.Presently,httplib2shimpasses the test suite forhttplib2. A few non-applicable tests were disabled, and it’s very possible that the tests do not account for behavior that is depended on by clients.UsageIt’s recommended to installurllib3[secure]before installinghttplib2shim:pipinstallurllib3[secure]httplib2shimUsage is straightforward. You can substitutehttplib2shim.Httpanywherehttplib2.Httpis used:importhttplib2shimfromoauth2client.clientimportGoogleCredentialscredentials=GoogleCredentials.get_application_default()http=httplib2shim.Http()credentials.authorize(http)# http is now authorized with OAuth2 credentials and uses urllib3 under# the covers.Alternatively, if you do not control the construction of theHttpobject, you can usehttplib2shim.patch()to monkey-patch thehttplib2.Httpclass to point tohttplib2shim.Http():importhttplib2shimhttplib2shim.patch()fromgoogleapiclient.discoveryimportbuildfromoauth2client.clientimportGoogleCredentialscredentials=GoogleCredentials.get_application_default()# build constructs its own httplib2.Http instance.service=build('compute','v1',credentials=credentials)# service.http is now a httplib2shim.Http object.Unsupported FeaturesArguments to theHttpconstructor will be accepted, but may not make a difference. For instance,ca_certswill have no effect. Instead, pass aurllib3.Poolinstancehttp = httplib2shim.Http(pool=my_pool).Http.add_certificateis a no-op and will warn.Probably others, pull requests are welcome to complete the functionality.Contributing changesSeeCONTRIBUTING.mdLicensingMIT - SeeLICENSE
Package: httplib2_SS
A comprehensive HTTP client library,httplib2supports many features left out of other HTTP libraries.HTTP and HTTPSHTTPS support is only available if the socket module was compiled with SSL support.Keep-AliveSupports HTTP 1.1 Keep-Alive, keeping the socket open and performing multiple requests over the same connection if possible.AuthenticationThe following three types of HTTP Authentication are supported. These can be used over both HTTP and HTTPS.DigestBasicWSSECachingThe module can optionally operate with a private cache that understands the Cache-Control:
header and uses both the ETag and Last-Modified cache validators. Both file system
and memcached based caches are supported.All MethodsThe module can handle any HTTP request method, not just GET and POST.RedirectsAutomatically follows 3XX redirects on GETs.CompressionHandles both ‘deflate’ and ‘gzip’ types of compression.Lost update supportAutomatically adds back ETags into PUT requests to resources we have already cached. This implements Section 3.2 of Detecting the Lost Update Problem Using Unreserved CheckoutUnit TestedA large and growing set of unit tests.
Package: httplib2.system_ca_certs_locater
===========================httplib2.system-ca-certs-locater 0.1.2===========================This package provides a plug-in to httplib2 to tell it to use thecertificate authority file from the base OS instead of the one in thehttplib2 package. The file from httplib2 is used as a fallback, if theexpected OS-specific file is not found.Installation============First install `pbr`_ package::$ pip install pbrThen run::$ pip install httplib2.system-ca-certs-locaterSetup custom ca_certs file via environment variable===================================================You can specify custom path to ca_certs file using``HTTPLIB_CA_CERTS_PATH``::import osos.environ['HTTPLIB_CA_CERTS_PATH'] = '/home/user/my_ca_certs.txt'Supporting Additional Platforms===============================If you are on a platform with a different certificate authority file,please submit a pull request via `github`_ to add the file to ``get()``... _`github`: https://github.com/dreamhost/httplib2-ca_certs_locater.. _`pbr`: https://github.com/openstack-dev/pbr
Package: httplink
Python (>= 3.6) library for parsingRFC 8288HTTP Link headers.
Python 2 is notsupported.fromhttplinkimportparse_link_headerresult=parse_link_header('''
   <https://example.com/foo/index.html>; rel=index;
   foo*=UTF-8'en'b%c3%a5r, </path#frag>;rel="what ever"
''')## Target URL:print(result['index'].target)# https://example.com/foo/index.html## Set of link relations:print(result['index'].rel)# {'index'}## Decoded attribute value:print(result['index']['foo'])# bår## Raw undecoded attributes:print(result['index'].attributes)# [('rel', 'index'), ('foo*', "UTF-8'en'b%c3%a5r")]## Iterate over all links:forlinkinresult.links:print(link.rel,link.target)# {'index'} https://example.com/foo/index.html# {'ever', 'what'} /path#fragMultiple Link headers can be parsed at the same time if you concatenate them with,.Redundant white space and comma delimiters are ignored.["key"]-access is always case-insensitive.
Package: httplint
httplintThis Python librarylintsHTTP messages; it checks them for correctness and reports any issues it finds.It has been extracted fromREDbot, which will eventually depend upon it. Unlike REDbot, it does not perform any 'active' checks by making requests to the network, and it does not have a Web user interface.Using httplint as a Libraryhttplint exposes two classes for linting:HttpRequestLinterandHttpResponseLinter. They expose the following methods for telling the linter about the HTTP message:As appropriate:process_request_topline, which takes threebytesarguments:method,uri, andversionprocess_response_topline, which takes threebytesarguments:version,status_code, andstatus_phraseprocess_headersfor the headers, taking a list of (name,value) tuples (bothbytes)feed_contentfor the body (which can be called zero to many times), taking aninbytesargumentfinish_contentwhen done, which has two arguments; aboolindicating whether the response was complete, and an optional list of tuples for the trailers, in the same format thatprocess_headerstakes.For example:fromhttplintimportHttpResponseLinterlinter=HttpResponseLinter()linter.process_response_topline(b'HTTP/1.1',b'200',b'OK')linter.process_headers([(b'Content-Type',b'text/plain'),(b'Content-Length',b'10'),(b'Cache-Control',b'max-age=60')])linter.feed_content(b'12345')linter.feed_content(b'67890')linter.finish_content(True)Using httplint from the Command Linehttplint can also be used from the command line. For example:> curl -s -i --raw https://www.mnot.net/ | httplint -n
* The Content-Length header is correct.
* The resource last changed 8 days 6 hr ago.
* This response allows all caches to store it.
* The server's clock is correct.
* This response is fresh until 3 hr from now.
* This response may still be served by a cache once it becomes stale.Interpreting NotesOnce a message has been linted, the results will appear on thenotesproperty. This is a list ofNoteobjects, each having the following attributes:category- the Note's category; seenote.categorieslevel- seenote.levelssummary- a brief, one-line description of the notedetail- a longer explanationNote thatsummaryis textual, and needs to be escaped in a markup environment;detail, however, is already escaped HTML.Continuing our example:fornoteinlinter.notes:print(note.summary)and the output should be:The Content-Length header is correct.
This response allows all caches to store it.
This response doesn't have a Date header.
This response is fresh until 1 min from now.
This response may still be served by a cache once it becomes stale.Field DescriptionsThe description of any field can be found by callingget_field_description. For example:>>>fromhttplintimportget_field_description>>>get_field_description("Allow")'The `Allow` response header advertises the set of methods that are supported by the resource.'If a description cannot be found it will returnNone.
Package: http-log
## HTTP LOGurllib2 httplib2 requests日志小工具### 安装方法
1. pip install http-log### 全局替换在python 的 sitecustomize.py文件末尾，添加下面代码文件路径：python -m site –user-site`python import httplog httplog.monkey_patch() `### 项目替换
单个项目替换，如django项目开发默认下，在manage.py中添加下面代码`python import httplog httplog.monkey_patch() `
Package: http-logging
Asynchronous HTTP LoggingNon-blocking HTTP handler for Pythonloggingwith local SQLite buffer/cache.DocumentationPlease refer to theproject Wiki.InstallationVirtual environmentis highly recommended.pipinstallhttp_loggingBasic usageimportloggingfromhttp_loggingimportHttpHostfromhttp_logging.handlerimportAsyncHttpHandlerlog_handler=AsyncHttpHandler(http_host=HttpHost(name='your-domain.com'))logger=logging.getLogger()logger.addHandler(log_handler)# Works with simple log messages like:logger.info('Some useful information...')# Can also handle extra fields:logger.warning('You\'ve been warned!',extra={'foo':'bar'})# And, of course, captures exception with full stack-tracetry:1/0exceptExceptionasexc:logger.error('Ooops!',exc_info=exc)These log messages are cached in a local SQLite database and periodically delivered (asynchronously, in a separate thread) to your host in a POST request with a body similar to this one:[{"type":"async-http-logging","created":1610393068.365492,"relative_created":1505.5122375488281,"message":"Some useful information...","level":{"number":20,"name":"INFO"},"stack_trace":null,"sourcecode":{"pathname":"/path/to/your/python/script.py","function":"function_name","line":123},"process":{"id":1234,"name":"MainProcess"},"thread":{"id":1234567890,"name":"MainThread"}},{"type":"async-http-logging","created":1610393068.3663092,"relative_created":1506.3292980194092,"message":"You've been warned!","level":{"number":30,"name":"WARNING"},"stack_trace":null,"sourcecode":{"pathname":"/path/to/your/python/script.py","function":"function_name","line":456},"process":{"id":1234,"name":"MainProcess"},"thread":{"id":1234567890,"name":"MainThread"}},{"type":"async-http-logging","created":1610393068.3663092,"relative_created":1506.3292980194092,"message":"Ooops!","level":{"number":40,"name":"ERROR"},"stack_trace":"Traceback (most recent call last):\n  File \"/path/to/your/python/script.py\", line 17, in function_name\n    1/0\nZeroDivisionError: division by zero\n","sourcecode":{"pathname":"/path/to/your/python/script.py","function":"function_name","line":17},"process":{"id":1234,"name":"MainProcess"},"thread":{"id":1234567890,"name":"MainThread"}}]In your backend, you can funnel these logs to wherever suits you best: database, ElasticSearch index, third-party monitoring service, etc.Learn more about these and other features in theproject Wiki.
Package: http-log-parser
http-log-parserPackage supports "nginx-combined" format for now.usage: http-log-parser [-h] [--no-query] [--skip-errors] [files [files ...]]

positional arguments:
  files

optional arguments:
  -h, --help     show this help message and exit
  --no-query
  --skip-errorsExample$ http-log-parser /var/log/http/access.log | jq .  # jq used for pretty printing 
{
  "ip": "1.2.3.4",
  "ts": 1592427669,
  "method": "GET",
  "path": "/path/",
  "status": 204,
  "size": 0,
  "referer": "https://example.com/",
  "user_agent": "Chrome/1 Firefox/2 IE/3 Edge/4",
  "query": {
    "greetings": "hello world"
  }
}
...
Package: httplus
HTTPlusAn HTTP asynchronous client.InstalationpipinstallhttplusBasic UsageThe simplest request using get method is showed below.importhttplus...client=httplus.Client()res=awaitclient.get('http://someserver/api/collection')print(res.status)# 200data=res.json()# {...}A request is executed by Client instance class.
The Client class has get, post, put, delete, options,
patch and head methods to do requests.ExamplesSending data through POST requestimporthttplus...data={'name':'Vink','surname':'Blaster'}client=httplus.Client()res=awaitclient.post('http://someserver/api/customers',data=data)print(res.status)# 200The data parameter can be a dict, list or a binary object.
A dict or a list passed by data param will be interpreted likeJSONformat data.
If a binary data like a pdf or an image file is been sending,
a header content mime type need to be informed by headers param.importhttplus...image=b'<some_image_binary>'headers={'Content-Type':'image/png'}url='http://someserver/api/books'...client=httplus.Client()res=awaitclient.post(url=url,data=image,headers=headers)print(res.status)# 200
Package: httpmdhtml
Python Markdown-to-HTML ServerIt's the standard Pythonhttp.server modulebut viamarkdown-it-py, requested Markdown files are rendered and served as HTMLThehttp.servermodule'sSimpleHTTPRequestHandlerclass is inherited by a new class with itsdo_GETmethod overridden.beautifulsoupandhtml5libadd<html>,<head>, &<body>elements and I insert a<style>element with some personally preferred CSS styling. Optionally, a custom CSS file can be used to style instead.highlightjsadds syntax highlighting to code blocks.It makes for a simple way to write up some Markdown with a terminal & a web browserTIP: In most browsers, keyboard shortcutCtrl+Shift+Rwill refresh the page and ignore cacheInstallationfromPyPI:pip install httpmdhtmlfromGitHub:pip install "git+https://github.com/treatmesubj/python-md-to-html-server"UsageMarkdown-to-HTML Serverpython -m httpmdhtml.server -b 127.0.0.1 -d . --css_file ../mystyle.css -l 5000
---
usage: server.py [-h] [--cgi] [--bind ADDRESS] [--directory DIRECTORY] [--css_file CSS_FILE]
                 [--live_md_rr LIVE_MD_RR]
                 [port]

positional arguments:
  port                  Specify alternate port [default: 8000]

optional arguments:
  -h, --help            show this help message and exit
  --cgi                 Run as CGI Server
  --bind ADDRESS, -b ADDRESS
                        Specify alternate bind address [default: all interfaces]
  --directory DIRECTORY, -d DIRECTORY
                        Specify alternative directory [default:current directory]
  --css_file CSS_FILE   css-file-path whose content will be written to the <style> element. Can be "none"; do not
                        use any css
  --live_md_rr LIVE_MD_RR, -l LIVE_MD_RR
                        Continuous refresh rate of MD page, in ms. Respects cacheMarkdown-to-HTML Out-Filepython -m httpmdhtml.md_to_html -i in_file.md -o out_file.html --encode_local_images
---
usage: md_to_html.py [-h] [--in_file_path IN_FILE_PATH] [--out_file_path OUT_FILE_PATH] [--encode_local_images]
                     [--css_file CSS_FILE]

optional arguments:
  -h, --help            show this help message and exit
  --in_file_path IN_FILE_PATH, -i IN_FILE_PATH
                        in-file-path; your existing markdown file
  --out_file_path OUT_FILE_PATH, -o OUT_FILE_PATH
                        out-file-path; your HTML file to be created
  --encode_local_images, -e
                        in HTML, embed base64-encoded data of local images linked to in your markdown; remove
                        dependency on presence of external local images
  --css_file CSS_FILE   css-file-path whose content will be written to the <style> element. Can be "none"; do not
                        use any css