Saravanan666/pypi-org huggingface dataset:
Package: urestapi
urestapiA command-line client for Uptycs that has ability to run Uptycs restAPIInstallationIf you already know how to install python packages, then you can install it via pip:You might need sudo on linux.
if you want to install using pip, you can use following command:$ sudo pip install urestapiif you want to install from source you can use following command:$ git pull urestapi
$ cd urestapi
$ python setup.py installUsage$ urestapi --help

Usage: urestapi [OPTIONS]

Options:
  -V, --version                   Output urestapi's version.
  -k, --keyfile TEXT              Uptycs json key file.
  --domainsuffix TEXT             Uptycs Domain Suffix like .uptycs.io
  --enable-ssl / --disable-ssl    verify ssl certificate
  -m, --method TEXT               restAPI method [GET|POST|PUT|DELETE]]
  -a, --api TEXT                  API name [/alerts, /assets, etc]
  -d, --postdata TEXT             post json data
  -D, --postdatafile TEXT         post json data file
  -f, --location TEXT             download location for package
  --threat_source_name TEXT       Name of the threatsource
  --threat_source_description TEXT
                                  description of the threatsource
  --threat_data_csv TEXT          csv file of the threatsource
  --help                          Show this message and exit.
Package: ur-gadget
ur_gadgetUseful gadgets for your python projectsII. REFERENCES2.1. How to use this package?Install the stable version:pip install ur_gadgetYou can install the latestur_gadgetversion from source with the following command:pip install git+https://github.com/thinh-vu/ur_gadget.git@main(*) You might need to insert a!before your command when running terminal commands on Google Colab.To start using functions, you need to import them:from ur_gadget import *III. APENDICESExplore User Agents for API requests by Operating System:hereIV. 🙋‍♂️ CONTACT INFORMATIONYou can contact me at one of my social network profiles:If you want to support my open-source projects, you can "buy me a coffee" viaPatreonor Momo e-wallet (VN). Your support will help to maintain my blog hosting fee & to develop high-quality content.
Package: urgent11-detector
urgent11-detectorurgent11-detector is a tool to detect whether a device is running the Interpeak IPnet TCP/IP stack, and is thus at risk from the URGENT/11 vulnerabilities.MotivationIn light of recent discoveries (seehttps://armis.com/urgent11), we decided to develop a tool designed to detect whether a device is using Interpeak's IPnet TCP/IP stack, regardless of the RTOS that powers it.
The IPnet TCP/IP stack is the native, built-in stack for VxWorks since version 6.5, but it has been also been supported by a wide array of RTOSs in the past.
Detecting the underlying TCP/IP stack used by a device is a non-trivial task, and so by using this tool one can identify devices that are vulnerable to URGENT/11 vulnerabilities.How does it work?This tool implements 4 unique methods of detection in the form of a TCP and ICMP fingerprints to a target host.
By calculating the sum of all the methods scores, we can determine with high precision whether a device runs an OS that relies on the IPnet TCP/IP stack and whether this OS is VxWorks.
Moreover, we also test whether the host is vulnerable to CVE-2019-12258, which is one of the URGENT/11 vulnerabilities that affects all VxWorks versions that use IPnet.
If a device is detected as running IPnet on VxWorks, and is NOT vulnerable to this CVE, one can deduce this device has been patched against the URGENT/11 vulnerabilities.Getting StartedInstall the tool directly with pip3:pip3 install urgent11-detectorAnd than run it like this:urgent11-detector IP PORTAlternatively, you can install thedependenciesand run it manually./urgent11-detector.py IP PORTMy head hurts.. can you simplify?DependenciesAssuming you have python3 installed - the only dependencies are scapy and python-iptables.
Install them using:pip3 install scapy python-iptablesor advice the formalscapy installation guideand the formalpython-iptables documentation.In addition, urgent11-detector currently supports running on a Linux setup exclusively.LicenseCopyright 2019 Armis.Licensed under the GNU Affero General Public License, Version 3.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttps://www.gnu.org/licenses/agpl-3.0.txtUnless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: uricache
URICacheURICache is a caching module that stores data in JSON format, using URI’s for accessing the cache.Free software: MIT licenseDocumentation:https://uricache.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.0.1 (2018-10-31)First release on PyPI.
Package: uricore
# urilib[![Build Status](https://secure.travis-ci.org/core/uricore.png?branch=master)](http://travis-ci.org/core/uricore)WARNING: Rough, raw, and fast changing code. Check back later. ;-)–Example of use:>>> from httpcore.uri import URI
>>> from httpcore.iri import IRI
>>> iri = IRI(u'http://\N{SNOWMAN}/')
>>> iri
IRI(u'http://\u2603/')
>>> uri = URI(iri)
>>> uri
URI('http://xn--n3h/')
>>> iri.netloc
u'http://\u2603/'
>>> iri.hostname
'\u2603'
>>> iri.port is None
True
>>> iri.path
u'/'
>>> hasattr(iri, '__hash__')
True
>>> iri.replace(port=8000)
IRI(u'http://\u2603:8000/')
>>> iriq = iri.update_query({'foo': u'42'})
>>> iriq
IRI(u'http://\u2603/?foo=42')
>>> iriq.update_query(foo=None)
IRI(u'http://\u2603/')
>>> iriq.query
MultiDict([('foo', '42')])
>>> URI.from_template('http://{domain}/find{?year*}', domain="example.com",
... year=("1965", "2000", "2012"))
URI('http://example.com/find?year=1965&year=2000&year=2012')
Package: uriel-pc-tests
PrefectPrefect is an orchestrator for data-intensive workflows. It's the simplest way to transform any Python function into a unit of work that can be observed and orchestrated. With Prefect, you can build resilient, dynamic workflows that react to the world around them and recover from unexpected changes. With just a few decorators, Prefect supercharges your code with features like automatic retries, distributed execution, scheduling, caching, and much more. Every activity is tracked and can be monitored with the Prefect server or Prefect Cloud dashboard.fromprefectimportflow,taskfromtypingimportListimporthttpx@task(retries=3)defget_stars(repo:str):url=f"https://api.github.com/repos/{repo}"count=httpx.get(url).json()["stargazers_count"]print(f"{repo}has{count}stars!")@flow(name="GitHub Stars")defgithub_stars(repos:List[str]):forrepoinrepos:get_stars(repo)# run the flow!github_stars(["PrefectHQ/Prefect"])After running some flows, fire up the Prefect UI to see what happened:prefectserverstartFrom here, you can continue to use Prefect interactively ordeploy your flowsto remote environments, running on a scheduled or event-driven basis.Getting StartedPrefect requires Python 3.8 or later. Toinstall Prefect, run the following command in a shell or terminal session:pipinstallprefectStart by then exploring thecore concepts of Prefect workflows, then follow one of ourfriendly tutorialsto learn by example.Join the communityPrefect is made possible by the fastest growing community of thousands of friendly data engineers. Join us in building a new kind of workflow system. ThePrefect Slack communityis a fantastic place to learn more about Prefect, ask questions, or get help with workflow design. ThePrefect Discourseis a community-driven knowledge base to find answers to your Prefect-related questions. All community forums, including code contributions, issue discussions, and slack messages are subject to ourCode of Conduct.ContributeSee ourdocumentation on contributing to Prefect.Thanks for being part of the mission to build a new kind of workflow system and, of course,happy engineering!
Package: uri-encoder
URI.EncoderURI.Encoder provides encode and decode and is meant for escaping uri components.  This is meant to abide byRFC3986.  It is not safe and does not check for valid escapes on decoding.UsagefromURI.Encoderimportencode,decodeencode("hello world!")# hello%20world%21decode("hello%20world%21")# hello world!
Package: urigui
URI Online Judge Command Line InterfaceUtility CLI for submitting solutions to URI Online JudgeInstall:pip install -U urigui
  or
  pip3 install -U uriguiUsage:uri loginuri set_languageuri submit <solution_path> <problem_id>uri liveArguments:<solution_path>     Path to the file containing to solution.
    <problem_id>        URI Online Judge's problem IDExample:uri submit /home/USER/codes/problem2010.cpp 2010Language Id's:IdName1C2C++3Java4Python5Python 36Ruby7C#8Scala9Lua10Javascript11Java 812Go14C9915Kotlin16C++1717Haskell18Ocaml19Pascal20Python 3.821Java 14AttributionThis Code is adapted from theRafael Telles, version 0.2.0,
available atPyPI
Package: urihandler
This very simple application is meant to be the handler on a domain that
handles Cool Uri’s (http://www.w3.org/TR/cooluris/) with 303 redirects.All it does is map Uri’s to other uri’s and redirect them. To make thing easy
you can either redirect by hitting the full URI (eg.http://id.example.com/foo/15) or by querying a handle service (eg.http://id.example.com/handle?uri=http://id.example.com/foo/15). Both of these
will redirect you. The handle service also works for non-http URI’s. Finally,
there’s a service that just returns information without performing a redirect,
eg.http://id.example.com/uris?uri=http://id.example.com/foo/15. This can be
handy to bypass some of the strangeness that happens when you combine Cool uri’s
with CORS and custom HTTP headers.Configuration is done by editing a YAML file. For each URI you need to register
a regex and a redirect template. The regex should use named placeholders, as
well as the redirect string. An optional argumentmountdetermines if yourmatchis living at the server root or is absolute (eg. because it’s a URN). Not
settingmountsets it toTrue.1.2.0 (25-04-2023)URL parameters meegeven (#92)1.1.0 (27-02-2023)Onderscheid op accept header toelaten (#86)1.0.0 (06-07-2022)Drop python 2 support (#80)Update to pyramid 2 (#78)Update dependencies (#77)Is setup.cfg still needed? (#76)Drop pyup support (#75)Which HTTP methods does the “redirect” route support? (#73)0.4.0 (07-12-2020)Py3 migratie (#53)0.3.0 (12-04-2016)Added http caching to the/urisendpoint.0.2.0 (28-09-2015)Added a/urisendpoint that does not redirect, but just returns information.0.1.0 (27-09-2015)Initial versionAllows redirecting a a regular URI and with a query service.
Package: uri-pathlib-factory
URI Pathlib factoryA factory to instantiate Path's like object that are using Pathlib interface.InstallationInstall this via pip (or your favourite package manager):pip install uri-pathlib-factoryContributors ✨Thanks goes to these wonderful people (emoji key):Pierre Verkest💻🤔📖This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCopierand thebrowniebroke/pypackage-templateproject template.
Package: uriregistry
This project aims to provide a central location for keeping track of different
resources through their URI’s. It has been designed to answer one simple
question: in which applications is a certain resource (ie. a URI) being used?0.3.1 (16-08-2022)Avoid “max_workers must be greater than 0”-Exception in case no applications are listed in the configurarion (#97)0.3.0 (21-02-2022)Improved performance (#8)Pyramid 2.0 upgrade (#85)0.2.0 (07-12-2020)Library update(#69)Py3 compatibel maken (#66)0.1.2 (08-06-2017)Make compatible with Python 3.5Update pyramid_urireferencer to 0.6.0 (#9)0.1.1 (04-08-2015)Update pyramid_urireferencer to 0.4.00.1.0 (11-06-2015)Initial versionWorks with pyramid_urireferencer 0.2.0.
Package: uritemplate
Documentation–GitHub–Travis-CISimple python library to deal withURI Templates. The API looks likefromuritemplateimportURITemplate,expand# NOTE: URI params must be strings not integersgist_uri='https://api.github.com/users/sigmavirus24/gists{/gist_id}'t=URITemplate(gist_uri)print(t.expand(gist_id='123456'))# => https://api.github.com/users/sigmavirus24/gists/123456# orprint(expand(gist_uri,gist_id='123456'))# alsot.expand({'gist_id':'123456'})print(expand(gist_uri,{'gist_id':'123456'}))Where it might be useful to have a classimportrequestsclassGitHubUser(object):url=URITemplate('https://api.github.com/user{/login}')def__init__(self,name):self.api_url=url.expand(login=name)response=requests.get(self.api_url)ifresponse.status_code==200:self.__dict__.update(response.json())When the module containing this class is loaded,GitHubUser.urlis
evaluated and so the template is created once. It’s often hard to notice in
Python, but object creation can consume a great deal of time and so can theremodule which uritemplate relies on. Constructing the object once should
reduce the amount of time your code takes to run.Installingpip install uritemplateLicenseModified BSDlicense
Package: uritemplate.py
uritemplateDocumentation–GitHub–BitBucket–Travis-CISimple python library to deal withURI Templates. The API looks likefromuritemplateimportURITemplate,expand# NOTE: URI params must be strings not integersgist_uri='https://api.github.com/users/sigmavirus24/gists{/gist_id}'t=URITemplate(gist_uri)print(t.expand(gist_id='123456'))# => https://api.github.com/users/sigmavirus24/gists/123456# orprint(expand(gist_uri,gist_id='123456'))# alsot.expand({'gist_id':'123456'})print(expand(gist_uri,{'gist_id':'123456'}))Where it might be useful to have a classimportrequestsclassGitHubUser(object):url=URITemplate('https://api.github.com/user{/login}')def__init__(self,name):self.api_url=url.expand(login=name)response=requests.get(self.api_url)ifresponse.status_code==200:self.__dict__.update(response.json())When the module containing this class is loaded,GitHubUser.urlis
evaluated and so the template is created once. It’s often hard to notice in
Python, but object creation can consume a great deal of time and so can theremodule which uritemplate relies on. Constructing the object once should
reduce the amount of time your code takes to run.Installingpip install uritemplate.pyLicenseModified BSDlicenseChangelog - uritemplate2.0.0 - 2016-08-29Merge uritemplate.py into uritemplateChangelog - uritemplate.py3.0.2 - 2015-08-30Fix meta-package requirements.3.0.1 - 2015-08-29Deprecate in favor of uritemplate. This package is now a metapackage that
depends on uritemplate.2.0.0 - 2016-08-20Relicense uritemplate.py as Apache 2 and BSD (Seehttps://github.com/sigmavirus24/uritemplate/pull/23)1.0.1 - 2016-08-18Fix some minor packaging problems.1.0.0 - 2016-08-17Fix handling of Unicode values on Python 2.6 and 2.7 for urllib.quote.Confirm public stable API via version number.0.3.0 - 2013-10-22Add#partialto partially expand templates and return new instances ofURITemplate.0.2.0 - 2013-07-26Refactor the library a bit and add more tests.Backwards incompatible with 0.1.x if usingURIVariabledirectly fromuritemplate.template0.1.1 - 2013-05-19Add ability to get set of variable names in the current URIIf there is no value or default given, simply return an empty stringFix sdist0.1.0 - 2013-05-14Initial Release
Package: uritools
This module provides RFC 3986 compliant functions for parsing,
classifying and composing URIs and URI references, largely replacing
the Python Standard Library’surllib.parsemodule.>>>fromuritoolsimporturicompose,urijoin,urisplit,uriunsplit>>>uricompose(scheme='foo',host='example.com',port=8042,...path='/over/there',query={'name':'ferret'},...fragment='nose')'foo://example.com:8042/over/there?name=ferret#nose'>>>parts=urisplit(_)>>>parts.scheme'foo'>>>parts.authority'example.com:8042'>>>parts.getport(default=80)8042>>>parts.getquerydict().get('name')['ferret']>>>parts.isuri()True>>>parts.isabsuri()False>>>urijoin(uriunsplit(parts),'/right/here?name=swallow#beak')'foo://example.com:8042/right/here?name=swallow#beak'For various reasons,urllib.parseand its Python 2 predecessorurlparseare not compliant with current Internet standards.  As
stated inLib/urllib/parse.py:RFC 3986 is considered the current standard and any future changes
to urlparse module should conform with it.  The urlparse module is
currently not entirely compliant with this RFC due to defacto
scenarios for parsing, and for backward compatibility purposes,
some parsing quirks from older RFCs are retained.This module aims to provide fully RFC 3986 compliant replacements for
the most commonly used functions found inurllib.parse.  It also
includes functions for distinguishing between the different forms of
URIs and URI references, and for conveniently creating URIs from their
individual components.Installationuritools is available fromPyPIand can be installed by running:pip install uritoolsProject ResourcesDocumentationIssue trackerSource codeChange logLicenseCopyright (c) 2014-2023 Thomas Kemmer.Licensed under theMIT License.
Package: uriutils
Working with multiple storage platforms (i.e., local filesystem, S3, Google Cloud, etc.) can be quite a hassle.
This package aims to make it transparent to the user and the developer the underlying storage system by wrapping the different protocols in a common interface.Documentation available athttp://uriutils.readthedocs.io/UsageExample:with uri_open('http://www.example.com', mode='r') as f:
    contents = f.read()Example with argument parser:parser = ArgumentParser(description='Read text file from URI.')
parser.add_argument('-i', '--input', type=URIFileType('r'), metavar='<input>', help='Input file URI.')
A = parser.parse_args()

contents = A.input.read()
print(contents)Or, writing to a file with argument parser is as easy as:parser = ArgumentParser(description='Write text file to URI.')
parser.add_argument('-o', '--output', type=URIFileType('w'), metavar='<output>', help='Output file URI.')
A = parser.parse_args()

A.output.write('Hello world!\n')
A.output.close()And you can runpython uri.py--outputs3://example-bucket/output.txt.For complete documentation, please seeuriutils-0.1 documentation.ContributionFor bugs and issues, please file them on theissuespage.
Thanks!
Package: urizen
Urizen is the roguelike dungeon generation library written on Python3. It has various algorithms that can be used to generate maps on scale of single rooms to the whole world.Note: This project is on early stage of development. It can contain bugs, API breaking changes and lack of documentation.FeaturesTwo main collections - generators and visualizers - that can be used in any variations.Easy-to-use map objects with no need of additional libraries.Modular architecture that allows simple extension.Simple example# Import this libraryimporturizenasuz# Create a 50x50 size map using BSP algorithmM=uz.dungeon_bsp_tree(50,50)# And visualize it using Pillow with Urizen tilesetuz.vg_tiled(M,scale=3)The result image will be automatically opened with a default image viewer.
Package: url2bib
# URL to BibTeX Converter (url2bib)url2bibis a commandline tool for converting URLs of papers into into BibTeX citations. It tries to use the publication information rather than the arXiv url.![screenshot.png](screenshot.png)## Installation`bash pip install url2bib `## Usage`bash url2bibhttps://arxiv.org/abs/2006.11477`## Features
- Extracts DOIs from URLs and retrieves BibTeX citations for those DOIs.
- Searches for publications of the paper.
- Generates a BibTeX entry with a unified ID in the format{firstAuthorSurname}_{year}_{titleFirstWord}.## Contributing
Contributions to this project are welcome. If you have any suggestions or want to report issues, please open an issue or submit a pull request.## License
This project is under the [GNU GPLv3](https://choosealicense.com/licenses/gpl-3.0) license.## Acknowledgments
This script uses thebibtexparserlibrary for parsing and generating BibTeX entries.
It also relies on external data sources such as doi.org and dblp.org to fetch BibTeX entries.## Disclaimer
This script is provided as-is, and the accuracy of the generated BibTeX entries depends on the availability and quality of external data sources. Always double-check and edit citations as needed for your research papers and publications.Happy citing withurl2bib!
Package: url2env
Turns Heroku-style database URLs into shell environment variables.Currently only producespsql-compatible envs frompostgres://URLs.Example:$ url2env psql://joebloggs:secret@db.example.com:4433/blog
PGUSER=joebloggs
PGPASSWORD=secret
PGHOST=db.example.com
PGPORT=4433
PGDATABASE=blogThe output could be used in conjunction withenv, e.g.:$ env $(url2env $SOME_DB_URL) psqlInstallation instructions$ pip install url2envDistribution instructions$ git tag <x.y>
$ make dist upload
Package: url2io-client
url2io-clientURL2io API SDK包含 URL2Article 和 URL2NLP 两个服务，实现网页结构智能解析和文本信息智能处理。
SDK 使用文档，见https://github.com/url2io/url2io-python-client。
SDK 涉及的 Rest API，见http://url2io.applinzi.com/docsRequirements.Python 2.7 and 3.4+Installation & Usagepip installpipinstallurl2io-clientorIf the python package is hosted on Github, you can install directly from Githubpipinstallgit+https://github.com/url2io/url2io-python-client.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/url2io/url2io-python-client.git)Then import the package:importurl2io_clientSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importurl2io_clientGetting StartedPlease follow theinstallation procedureand then run the following:from__future__importprint_functionimporttimeimporturl2io_clientfromurl2io_client.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: token_in_queryconfiguration=url2io_client.Configuration()configuration.host='YOUR_API_SERVICE_URL'# 你申请的服务地址，默认为体验版地址：http://url2api.applinzi.comconfiguration.api_key['token']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['token'] = 'Bearer'# create an instance of the API classapi_instance=url2io_client.URL2ArticleApi(url2io_client.ApiClient(configuration))url='url_example'# str | 要提取正文网页的网址，参考 [URL Encoding](http://www.w3schools.com/tags/ref_urlencode.asp)fields=['fields_example']# list[str] | 指示需要额外返回的额外字段，取值为：  - `next`: 表示要提取下一页链接。   - `text`: 表示要返回正文的纯文字格式。   - `markdown`: 表示返回正文的markdown格式。   构造url时多个值通过','号隔开，如`?fields=text,next`。调用sdk时使用列表即可，如fields= ['text', 'markdown']。 (optional)param_callback='param_callback_example'# str | 使用jsonp实现Ajax跨域请求时需要传此参数 (optional)try:# 网页结构智能解析 HTTP Get 接口api_response=api_instance.get_article(url,fields=fields,param_callback=param_callback)pprint(api_response)exceptApiExceptionase:print("Exception when calling URL2ArticleApi->get_article:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttp://url2api.applinzi.comor yourAPI_SERVICE_URLClassMethodHTTP requestDescriptionURL2ArticleApiget_articleGET/article网页结构智能解析 HTTP Get 接口URL2ArticleApiget_article_by_postPOST/article网页结构智能解析 HTTP Post 接口URL2NLPApiget_keywordsPOST/v1/nlp/keywords关键词提取接口URL2NLPApiget_word_cutPOST/v1/nlp/word/cut中文分词和词性注解接口more details:https://github.com/url2io/url2io-python-client/tree/master/src#documentation-for-api-endpointsDocumentation For ModelsArticleForResponseNlpKeywordsItemForResponseNlpWordCutItemForResponsemore details:https://github.com/url2io/url2io-python-client/tree/master/src#documentation-for-modelsDocumentation For Authorizationtoken_in_queryType: API keyAPI key parameter name: tokenLocation: URL query stringAuthorurl2#sina.com