Saravanan666/pypi-org huggingface dataset:
Package: uuoskit
Python Toolkit for EOSIOQuick StartLatest Releaseuuoskit v1.0.2InstallationpipinstalluuoskitDocsBuilding from Source CodeInstalling Prerequisitespython3 -m pip install scikit-build
python3 -m pip install cythonFor Windows platformpython -m pip install scikit-build
python -m pip install cythonDownload and Install gcc compiler fromtdm-gccInstall Go compiler fromdownloadInstall cmake fromdownloadInstall python3 fromdownloadsPress Win+R to open Run Dialog, input the following commandcmd -k /path/to/gcc/mingwvars.batDownloading Source Codegit clone https://www.github.com/uuosio/uuoskit
cd uuoskit
git submodule update --init --recursiveBuild./build.shFor Windows platform
In the cmd dialog, enter the following command:python setup.py sdist bdist_wheelInstallation./install.shFor Windows platformpython -m pip uninstall uuoskit -y;python -m pip install .\dist\uuoskit-[SUFFIX].whlExample1importosfromuuoskitimportuuosapi,walletifos.path.exists('mywallet.wallet'):os.remove('mywallet.wallet')psw=wallet.create('mywallet')#import your account private key herewallet.import_key('mywallet','5K463ynhZoCDDa4RDcr63cUwWLTnKqmdcoTKTHBjqoKfv4u5V7p')uuosapi.set_node('https://eos.greymass.com')info=uuosapi.get_info()print(info)args={'from':'test1','to':'test2','quantity':'1.0000 EOS','memo':'hello,world'}uuosapi.push_action('eosio.token','transfer',args,{'test1':'active'})Async Exampleimportosimportasynciofromuuoskitimportwalletfromuuoskit.chainapiimportChainApiAsyncifos.path.exists('mywallet.wallet'):os.remove('mywallet.wallet')psw=wallet.create('mywallet')#import your account private key herewallet.import_key('mywallet','5K463ynhZoCDDa4RDcr63cUwWLTnKqmdcoTKTHBjqoKfv4u5V7p')asyncdeftest():uuosapi=ChainApiAsync('https://eos.greymass.com')info=awaituuosapi.get_info()print(info)args={'from':'test1','to':'test2','quantity':'1.0000 EOS','memo':'hello,world'}r=awaituuosapi.push_action('eosio.token','transfer',args,{'test1':'active'})print(r)asyncio.run(test())LicenseMIT
Package: uuRest
uuTSLibrary that allows developers to easily integrate their application(s) with Unicorn Systems solutions and products using REST API.Examples of How To Use (uuREST)Simple RequesttextIterating through the list of itemsfromvidstreamimportCameraClientfromvidstreamimportVideoClientfromvidstreamimportScreenShareClient# Choose Oneclient1=CameraClient('127.0.0.1',9999)client2=VideoClient('127.0.0.1',9999,'video.mp4')client3=ScreenShareClient('127.0.0.1',9999)client1.start_stream()client2.start_stream()client3.start_stream()Check out:https://www.youtube.com/
Package: uurl
uURLProvides user-friendly unified resource locator (URL) client with nothing but clean objects.Toolspython 3.6, 3.7, 3.8travisCIcode analysispytestblackmypypylintflake8pydocstyleUsageTo obtain latest package from PYPI, please run following script:pipinstalluurl
✨🍰✨Quick startPre-defined URL>>>fromuurlimportHost,HttpsUrl,UrlPath>>>url=HttpsUrl(Host('example.com'),UrlPath('shelter','index.html'))>>>url.matcher()'shelter/index.html'>>>url.host()'example.com'>>>url.host(with_port=True)'example.com:443'>>>str(url)'https://example.com:443/shelter/index.html'Custom URL>>>fromuurlimportHost,NetworkProtocol,NetworkPort,Url,UrlPath>>>url=Url(...Host('0.0.0.0'),...NetworkProtocol('http',NetworkPort(8080,has_upd=True,has_tcp=True)),...UrlPath('api','rest','1001')...)>>>url.matcher()'api/rest/1001'>>>url.host()'0.0.0.0'>>>url.host(with_port=True)'0.0.0.0:8080'>>>str(url)'http://0.0.0.0:8080/api/rest/1001'Development notesTestingGenerally,pytesttool is used to organize testing procedure.Please follow next command to run unittests:pytestCIProject has Travis CI integration using.travis.ymlfile thus code analysis (black,pylint,flake8,mypy,pydocstyleandinterrogate) and unittests (pytest) will be run automatically after every made change to the repository.To be able to run code analysis, please execute command below:./analyse-source-code.shRelease notesPlease checkchangelogfile to get more details about actual versions and it's release notes.MetaAuthor –Volodymyr Yahello. Please checkauthorsfile for more details.Distributed under theMITlicense. Seelicensefor more information.You can reach out me at:vyahello@gmail.comhttps://github.com/vyahellohttps://www.linkedin.com/in/volodymyr-yahello-821746127/ContributingI would highly appreciate any contribution and support. If you are interested to add your ideas into project please follow next simple steps:Clone the repositoryConfiguregitfor the first time after cloning with yournameandemailpip install -r requirements.txtto install all project dependenciespip install -r requirements-dev.txtto install all development project dependenciesCreate your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull RequestWhat's nextAll recent activities and ideas are described at projectissues.
If you have ideas you want to change/implement please do not hesitate and create an issue.⬆ back to top
Package: uuTS
uuTSLibrary that allows developers to easily integrate their application(s) with Unicorn Systems solutions and products using REST API.Examples of How To Use (uuREST)Simple RequesttextIterating through the list of itemsfromvidstreamimportCameraClientfromvidstreamimportVideoClientfromvidstreamimportScreenShareClient# Choose Oneclient1=CameraClient('127.0.0.1',9999)client2=VideoClient('127.0.0.1',9999,'video.mp4')client3=ScreenShareClient('127.0.0.1',9999)client1.start_stream()client2.start_stream()client3.start_stream()Check out:https://www.youtube.com/
Package: uuttaminen
UuttaminenExtraction (Finnish: uuttaminen) of source code for embedding into markdown documents as fenced blocks.License: MITThird party dependencies are documented in the folderthird-party.DocumentationUser and developerdocumentation of uuttaminen.Bug TrackerFeature requests and bug reports are best entered in thetodos of uuttaminen.Primary Source repositoryThe main source ofuuttaminenis on a mountain in central Switzerland.
We use distributed version control (git).
There is no central hub.
Every clone can become a new source for the benefit of all.
The preferred public clones ofuuttaminenare:on codeberg- a democratic community-driven, non-profit software development platform operated by Codeberg e.V.at sourcehut- a collection of tools useful for software development.StatusExperimental.Note: The default branch isdefault.
Package: uv2json
uv2jsonuv2jsonis a python script that converts Gilson GX-270 exported CSVs to JSON formatInstallationpipinstalluv2jsonUsageAs a console scriptuv2json<path/to/csv/files>As a modulefromuv2jsonimportuv2jsonasuvuv.convert('path/to/filename')# Accepts single file or list of files.The script will make a JSON file in the same location with the same name.
Package: uvarint
uvarintUnsigned variable-length integers. A type ofvariable-length quantity.Usageimport uvarint

buffer = uvarint.encode(16384)                  # b'\x80\x80\x01'
integer, bytes_read = uvarint.decode(buffer)    # 16384

big = uvarint.encode(2 ** 63)
uvarint.decode(big)              # Raises OverflowError; decoder limited to 9 bytes by default
uvarint.decode(big, limit=16)    # Success; use math.inf for unlimited decoding

multiple  = uvarint.encode(100)
multiple += uvarint.encode(200)
multiple += uvarint.encode(300)
uvarint.expect(3, multiple).integers    # [100, 200, 300]
uvarint.cut(0, multiple)                # Slice(integers=[], rest=b'd\xc8\x01\xac\x02')
uvarint.cut(1, multiple)                # Slice(integers=[100], rest=b'\xc8\x01\xac\x02')
uvarint.cut(2, multiple)                # Slice(integers=[100, 200], rest=b'\xac\x02')
uvarint.cut(3, multiple)                # Slice(integers=[100, 200, 300], rest=b'')ReferencesSpecificationLicenseThis module is licensed under the MIT license.
Package: uvdiviner
Diviner基于周易蓍草占卜原理实现的中国古占卜.感谢熊逸先生的《周易江湖》对本项目提供的基本原理支持.安装使用pip安装:pipinstalluvdiviner使用完整占卜fromuvdiviner.mainimportmainif__name__=="__main__":main()快速占卜fromuvdiviner.divineimportdivinedefmain():diagram=divine()print("本卦: ",diagram.name)diagram.variate()print("变卦: ",diagram.name)if__name__=="__main__":main()快速检定执行以下代码进行快速吉凶检定:fromuvdiviner.divineimportquick_checkprint(quick_check())# 返回 True 或 False
Package: uvicontainer
UvicontainerPorted fromuvicorn, Aim to be a fast general TCP/UDP servcerexampleimportasyncioimportuvicontainerclassEchoServerProtocol(asyncio.Protocol):defconnection_made(self,transport):peername=transport.get_extra_info('peername')print('Connection from{}'.format(peername))self.transport=transportdefdata_received(self,data):message=data.decode()print('Data received:{!r}'.format(message))print('Send:{!r}'.format(message))self.transport.write(data)print('Close the client socket')self.transport.close()if__name__=="__main__":uvicontainer.run("main:EchoServerProtocol",host="0.0.0.0",port=8000,workers=3,type="tcp")This starts a tcp server, like that inpython's document
Package: uvicorn
An ASGI web server, for Python.Documentation:https://www.uvicorn.orgUvicorn is an ASGI web server implementation for Python.Until recently Python has lacked a minimal low-level server/application interface for
async frameworks. TheASGI specificationfills this gap, and means we're now able to
start building a common set of tooling usable across all async frameworks.Uvicorn supports HTTP/1.1 and WebSockets.QuickstartInstall usingpip:$pipinstalluvicornThis will install uvicorn with minimal (pure Python) dependencies.$pipinstall'uvicorn[standard]'This will install uvicorn with "Cython-based" dependencies (where possible) and other "optional extras".In this context, "Cython-based" means the following:the event loopuvloopwill be installed and used if possible.the http protocol will be handled byhttptoolsif possible.Moreover, "optional extras" means that:the websocket protocol will be handled bywebsockets(should you want to usewsprotoyou'd need to install it manually) if possible.the--reloadflag in development mode will usewatchfiles.windows users will havecoloramainstalled for the colored logs.python-dotenvwill be installed should you want to use the--env-fileoption.PyYAMLwill be installed to allow you to provide a.yamlfile to--log-config, if desired.Create an application, inexample.py:asyncdefapp(scope,receive,send):assertscope['type']=='http'awaitsend({'type':'http.response.start','status':200,'headers':[(b'content-type',b'text/plain'),],})awaitsend({'type':'http.response.body','body':b'Hello, world!',})Run the server:$uvicornexample:appWhy ASGI?Most well established Python Web frameworks started out as WSGI-based frameworks.WSGI applications are a single, synchronous callable that takes a request and returns a response.
This doesn’t allow for long-lived connections, like you get with long-poll HTTP or WebSocket connections,
which WSGI doesn't support well.Having an async concurrency model also allows for options such as lightweight background tasks,
and can be less of a limiting factor for endpoints that have long periods being blocked on network
I/O such as dealing with slow HTTP requests.Alternative ASGI serversA strength of the ASGI protocol is that it decouples the server implementation
from the application framework. This allows for an ecosystem of interoperating
webservers and application frameworks.DaphneThe first ASGI server implementation, originally developed to power Django Channels, isthe Daphne webserver.It is run widely in production, and supports HTTP/1.1, HTTP/2, and WebSockets.Any of the example applications given here can equally well be run usingdaphneinstead.$ pip install daphne
$ daphne app:AppHypercornHypercornwas initially part of the Quart web framework, before
being separated out into a standalone ASGI server.Hypercorn supports HTTP/1.1, HTTP/2, and WebSockets.It also supportsthe excellenttrioasync framework, as an alternative toasyncio.$ pip install hypercorn
$ hypercorn app:AppMangumMangumis an adapter for using ASGI applications with AWS Lambda & API Gateway.Uvicorn isBSD licensedcode.Designed & crafted with care.— 🦄  —
Package: uvicorn36c
uvicorn-36cA version of Uvicorn which works with Python 3.6 and passes client certificates in the request scope.NotesThis version fixes the h11 HTTP implementation to pass the client certificate through to the app, together with other request details as part of the scope.Make sure to use the H11 Worker. E.g., when usinggunicorn:gunicorn -k uvicorn.workers.UvicornH11Worker src.main:app --reload --certfile cert.pem --keyfile key.pem --cert-reqs 2 --ca-certs cert.pem --timeout 1200
Package: uvicorn_context_manager
🚀 Context Manager to runuvicornASGI applicationsuvicorn_context_manageris a Python package that exposes a class namedUvicornContextManagerthat inherits fromuvicorn.Serverand
contains a Python context manager to deploy an ASGI application inside a context
and then gracefully shut it down.The motivation was to provide a way to easily deploy an ASGI application
when running tests or wanting to interact temporarily with ASGI applications.This could have been a GitHub Gist or just a code snippet, but I think that
this can be useful for manyuvicornusers, and it just contains theuvicorndependency so there's no overhead.⚒️ InstallationPython greater than 3.7 and lower than 3.11pipinstalluvicorn_context_managerOr install it in development mode as:pipinstall-e.👨🏻‍💻 Usage⚡️ WithfastapiAs mentioned before, the context manager asuvicorn, lets you deploy any
ASGI application. Sincefastapiis one of the most used Python frameworks for
web development according to a JetBrains survey, seehttps://twitter.com/tiangolo/status/1624002347776065538.So on, we think it's useful to showcase how to useuvicorn_context_managerwithfastapi.pipinstallfastapiOnce installed, you can deploy your ASGI application in a Python context manager as:fromfastapiimportFastAPIfromuvicorn_context_managerimportUvicornContextManagerapi=FastAPI()withUvicornContextManager(api)asserver:...🥇 CreditsCredits go to@florimondmancadue to the
solution provided atencode/uvicorn#1103,
as the motivation to create this package was based on that code snippet.
Package: uvicorn-httparse
Uvicorn HTTParseTheuvicorn-httparsepackage useshttparseto parse HTTP requests inUvicorn.httparseis a Python binding of aRust librarythat gives its name.Installationpipinstalluvicorn-httparseUsageimportuvicornif__name__=="__main__":uvicorn.run("app:app",http="uvicorn_httparse.HttparseProtocol")For more details, see theUvicorn documentation.LicenseThis project is licensed under the terms of the MIT license.
Package: uvicorn-tschaume
An ASGI web server, for Python.Documentation:https://www.uvicorn.orgRequirements: Python 3.7+ (For Python 3.6 support, install version 0.16.0.)Uvicorn is an ASGI web server implementation for Python.Until recently Python has lacked a minimal low-level server/application interface for
async frameworks. TheASGI specificationfills this gap, and means we're now able to
start building a common set of tooling usable across all async frameworks.Uvicorn supports HTTP/1.1 and WebSockets.QuickstartInstall usingpip:$pipinstalluvicornThis will install uvicorn with minimal (pure Python) dependencies.$pipinstalluvicorn[standard]This will install uvicorn with "Cython-based" dependencies (where possible) and other "optional extras".In this context, "Cython-based" means the following:the event loopuvloopwill be installed and used if possible.the http protocol will be handled byhttptoolsif possible.Moreover, "optional extras" means that:the websocket protocol will be handled bywebsockets(should you want to usewsprotoyou'd need to install it manually) if possible.the--reloadflag in development mode will usewatchfiles.windows users will havecoloramainstalled for the colored logs.python-dotenvwill be installed should you want to use the--env-fileoption.PyYAMLwill be installed to allow you to provide a.yamlfile to--log-config, if desired.Create an application, inexample.py:asyncdefapp(scope,receive,send):assertscope['type']=='http'awaitsend({'type':'http.response.start','status':200,'headers':[[b'content-type',b'text/plain'],],})awaitsend({'type':'http.response.body','body':b'Hello, world!',})Run the server:$uvicornexample:appWhy ASGI?Most well established Python Web frameworks started out as WSGI-based frameworks.WSGI applications are a single, synchronous callable that takes a request and returns a response.
This doesn’t allow for long-lived connections, like you get with long-poll HTTP or WebSocket connections,
which WSGI doesn't support well.Having an async concurrency model also allows for options such as lightweight background tasks,
and can be less of a limiting factor for endpoints that have long periods being blocked on network
I/O such as dealing with slow HTTP requests.Alternative ASGI serversA strength of the ASGI protocol is that it decouples the server implementation
from the application framework. This allows for an ecosystem of interoperating
webservers and application frameworks.DaphneThe first ASGI server implementation, originally developed to power Django Channels, isthe Daphne webserver.It is run widely in production, and supports HTTP/1.1, HTTP/2, and WebSockets.Any of the example applications given here can equally well be run usingdaphneinstead.$ pip install daphne
$ daphne app:AppHypercornHypercornwas initially part of the Quart web framework, before
being separated out into a standalone ASGI server.Hypercorn supports HTTP/1.1, HTTP/2, and WebSockets.It also supportsthe excellenttrioasync framework, as an alternative toasyncio.$ pip install hypercorn
$ hypercorn app:AppMangumMangumis an adapter for using ASGI applications with AWS Lambda & API Gateway.Uvicorn isBSD licensedcode.Designed & crafted with care.— 🦄  —
Package: uvloop
uvloop is a fast, drop-in replacement of the built-in asyncio
event loop.  uvloop is implemented in Cython and uses libuv
under the hood.The project documentation can be foundhere.  Please also check out thewiki.Performanceuvloop makes asyncio 2-4x faster.The above chart shows the performance of an echo server with different
message sizes.  Thesocketsbenchmark usesloop.sock_recv()andloop.sock_sendall()methods; thestreamsbenchmark uses asyncio
high-level streams, created by theasyncio.start_server()function;
and theprotocolbenchmark usesloop.create_server()with a simple
echo protocol.  Read more about uvloop in ablog postabout it.Installationuvloop requires Python 3.8 or greater and is available on PyPI.
Use pip to install it:$ pip install uvloopNote that it is highly recommended toupgrade pip beforeinstalling
uvloop with:$ pip install -U pipUsing uvloopAs of uvloop 0.18, the preferred way of using it is via theuvloop.run()helper function:importuvloopasyncdefmain():# Main entry-point....uvloop.run(main())uvloop.run()works by simply configuringasyncio.run()to use uvloop, passing all of the arguments to it, such asdebug,
e.g.uvloop.run(main(),debug=True).With Python 3.11 and earlier the following alternative
snippet can be used:importasyncioimportsysimportuvloopasyncdefmain():# Main entry-point....ifsys.version_info>=(3,11):withasyncio.Runner(loop_factory=uvloop.new_event_loop)asrunner:runner.run(main())else:uvloop.install()asyncio.run(main())Building From SourceTo build uvloop, you’ll need Python 3.8 or greater:Clone the repository:$ git clone --recursive git@github.com:MagicStack/uvloop.git
$ cd uvloopCreate a virtual environment and activate it:$ python3.7 -m venv uvloop-dev
$ source uvloop-dev/bin/activateInstall development dependencies:$ pip install -e .[dev]Build and run tests:$ make
$ make testLicenseuvloop is dual-licensed under MIT and Apache 2.0 licenses.
Package: uv-metrics
UV Metricsuv-metricsis a Python library that makes it easy to instrument your machine
learning workflows, report those metrics to a variety of storage backends, and
analyze those metrics in a notebook or script.UV is designed to work in or out of a Dockerized environment. It was designed
alongsideCaliban, and interacts nicely
with Caliban's job history management features to make metrics easier than ever.Installation and UsageInstall UV Metrics viapip:pipinstalluv-metricsFull documentation for UV lives atRead The
Docs.DisclaimerThis is a research project, not an official Google product. Expect bugs and
sharp edges. Please help by trying out UV,reporting
bugs, and letting us know what you
think!Citing UV MetricsIf UV Metrics helps you in your research, pleae consider citing the repository:@software{uv2020github,
  author = {Sam Ritchie},
  title = {{UV Metrics}: Metric reporting and experiment management for ML workflows.},
  url = {http://github.com/google/uv-metrics},
  version = {0.1.0},
  year = {2020},
}In the above bibtex entry, names are in alphabetical order, the version number
is intended to be that of the latest tag on github, and the year corresponds to
the project's open-source release.LicenseCopyright 2020 Google LLC.Licensed under theApache License, Version 2.0.
Package: uvmgen
icdk (IC Deveplopment Toolkit)Introductionuvmgen is a command-line interface (CLI) program for generating testbench structures based on a provided JSON/YAML/TOML/XML configuration file.InstallingPrerequisitesOperating systemsWindowsLinuxmacOSPython: 3.8 ~ 3.12Use Python's package installer pip to install uvmgen:python3-mpipinstalluvmgenUsageThe basic usage of uvmgen is as follows:uvmgen--input<input_json_file>--output<output_directory>Options--input <input_cfg_file>: Specifies the input configuration file containing the configuration for the testbench structure.--output <output_directory>: Specifies the directory where the generated files will be placed.HelpFor additional help and options, you can use the -h or --help option:uvmgen-hSyoSil ApS UVM ScoreboardTheSyoSil ApS UVM Scoreboardis a feature of uvmgen that allows you to integrate SyoSil ApS UVM Scoreboard in environments. To use this feature, you need to addpk_syoscbtoimport_pkgsof env_pkg, and set theSYOSCB_HOMEenvironment variables to SyoSil ApS UVM Scoreboard installed directory. The bash command is printed after uvmgen is successful, and the other shells can be replaced with the corresponding commands.ExampleSuppose you have a JSON configuration file named testbench_config.json and you want to generate the testbench structure in a directory named tb, you would run the following command:uvmgen--inputtestbench_config.json--outputtb# oruvmgen-itestbench_config.json-otb# oruvmgen-itestbench_config.jsonYou can usetest/json/example/typical.jsonto generate a complete UVM environment, or usetest/json/base_pkg/***.***to generate a single package.ContributeContributions are always welcome! Simple fork this repo and submit a pull request.
Package: uvn-fira
FiraFirais the main backend and API code for the minigame inUnscripted, a visual novel about software development. Fira provides many facets of the minigame, including a public API that players can use to code solutions to the minigame puzzles, a configuration and data generator from level files, and a virtual machine that runs low-level code that the minigame processes (NadiaVM). Fira is named after Fira Sans, one of the game's characters.Getting startedFira comes pre-packaged in Unscripted but can be installed outside of the game to work better with IDEs and other Python tools such as Poetry.UsageFor players installing this package to solve minigame puzzles, using the Fira package to access the API is relatively straightforward:fromuvn_fira.apiimportget_level_information,CSPlayer,CSWorldgp,gw=get_level_information(0,fn_path=renpy.config.savedir+"/minigame",exists=renpy.loadable,load=renpy.exports.file)Documentation on the API is located inside of Unscripted by going toHelp › MinigameorSettings › Minigame.The documentation for the entire package is located athttps://fira.marquiskurt.net, which is useful for developers that wish to make custom toolkits that connect to the minigame's virtual machine or for modders that wish to make custom minigame levels.Reporting bugsBugs and feature requests for Fira can be submitted on GitHub.LicenseThe Fira package is licensed under the Mozilla Public License v2.0.