Saravanan666/pypi-org huggingface dataset:
Package: protoclass
Prototype-Oriented Programmingin Python at the tip of your fingers in a simple, easy-to-use library.Installationpip install protoclassUsage>>>fromprotoclassimportproto# We create a basic object and add some functionality>>>jane=proto(first="Jane",last="Doe")>>>jane.greet=lambdaself:print(self)>>>jane.greet()#doctest: +ELLIPSIS<protoobjectat...># A more user-friendly would be better.# We could modify the `greet` function# or we could create another object and inherit from it>>>person=proto(first="",last="")>>>person.__str__=lambdaself:f"{self.first}{self.last}">>>jane=jane.chain(person)# and we should get a better message.>>>jane.greet()JaneDoeAPI Referenceproto(**attrs)Makes a new prototype with given attributes.
An empty prototype will be made when no attributes are given.proto.chain(self, other, *others)Makes self copy attributes from another prototype or multiple other prototypes.
Any previous relationship with other parent prototypes will be automatically severed.
When parent prototypes share attributes with the same name, the first parent prototype that has that attribute will be provide it, so the order in which they are given matters.
Any change made to parent prototypes will be automatically propagated to this prototype.clone(other, *others)Makes a new prototype by copying attributes from another prototype or multiple other prototypes.
When parent prototypes share attributes with the same name, the first parent prototype that has that attribute will be provide it, so the order in which they are given matters.
Any change made to parent prototypes will be automatically propagated to this clone.For more information on these functions, callhelpon the function
you would like to know more of, like this:help(proto).
You can also read thedocs.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Package: protocol
Library and utilities to develop protocols and check for protocol compliance in medical imaging.We use the term “protocol” here loosely, to refer to MRI acquisition protocols, or neuroimaging data QC protocols.Current release focuses on MRI image acquisition protocols for QA purposes only.Featuressimple tool to check forprotocol compliance:ensure all subjects in a given dataset were acquired with same/compatible values for few key parameters.programmatic parsing of Siemens protocols in XML formatDocumentationDocs with examples :https://raamana.github.io/protocolFree software: Apache 2.0 license
Package: protocol-lib
protocol-libProtocols for better structural typingGoalsImplement Protocols for:ContainerHashableIterableIteratorReversibleGeneratorSizedCallableCollectionSequenceMutableSequenceByteStringSetMutableSetMappingMutableMappingMappingViewItemsViewKeysViewValuesViewAwaitableCoroutineAsyncIterableAsyncIteratorAsyncGeneratorNotesGenerator is not currently implemented in this library. This is due to challenges encountered when attempting to implement it.Updating project configTo do this make edits to the.projenrc.jsfile in the root of the project and runnpx projento update existing or generate new config. Please also usenpx prettier --trailing-comma all --write .projenrc.jsto format this file.
Package: proto-compile
Your short description here.$pipinstallproto-compileUsageimportproto_compileDevelopmentFor detailed instructions see thecontribution guide.TestsYou can run tests with$invoketest$invoketype-check# Run mypy type checksLinting and formattingLint and format the code with$invokeformat$invokelintAll of this happens when you runinvokepre-commit.NoteThis project is still in the alpha stage and should not be considered production ready.
Package: protocookie
Store encrypted protobuffed data in the cookiesThis package is a Proof of Concept for storing encrypted protobuffed data in the cookiesInstallationpip install protocookieRunningRun:python3 -m protocookie.serverAfter that openhttp://localhost:5000in your browserDependenciesAll the dependencies should be managed by pip, but here is a list, just in case:python >= 3
protobuf
flask
cryptography
Package: protoDadosjusbr
ProtoEsquema de dados em Protobuf.Instalando o proto$aptinstall-yprotobuf-compilerGerar código go e pythonGerando novos protosGO$goinstallgoogle.golang.org/protobuf/cmd/protoc-gen-go// Gerar stub na raiz.$cdcoleta$protoc--go_out=./--go_opt=paths=source_relativecoleta.proto$cd..$protoc--go_out=pipeline/--go_opt=paths=source_relative--proto_path=coleta--proto_path=pipelinepipeline/pipeline.protoPython// Gerar stub na raiz.$cdcoleta$protoc--python_out=./coleta.proto$cd..$protoc--python_out=pipeline/--proto_path=coleta--proto_path=pipelinepipeline/pipeline.protoCasos de erro ao tentar gerar protoCaso o seguinte erro tenha ocorrido, significa que a instalação da lib do protobuf não funcionou:"protoc-gen-go: program not found or is not executable--go_out: protoc-gen-go: Plugin failed with status code 1."Para consertar, você deve executar os seguintes comandos:$ export GOPATH=$HOME/go
    $ export PATH=$PATH:$GOPATH/bin
    $ go install google.golang.org/protobuf/cmd/protoc-gen-goApós isso, você conseguirá gerar o proto.Atulizando a lib no pipy$python3setup.pysdist$python3-mtwineupload--skip-existingdist/*
Package: proto-dadosjusbr
protoEsquema de dados em Protobuf.Gerar cÃ³digo go e pythongo install google.golang.org/protobuf/cmd/protoc-gen-go// Gerar stub na raiz.
protoc --go_out=./ --go_opt=paths=source_relative coleta.protoprotoc --go_out=./ pacote.protoprotoc --go_out=pipeline/ --go_opt=paths=source_relative --proto_path=coleta --proto_path=pipeline pipeline/pipeline.proto
Package: protofcp
FCPFCPstands forFast Channel Protocol, a protocol used to route on "channels" and send or receive data.This protocol does not use abuffer, which is specially designed for local network addresses for a camera/audio device connection.This protocolhas much the same function as radio frequencies, unlimited clients can send/receive information without physical addresses.How to install:pip install protofcpSend message in channel 1:importprotofcpsock=protofcp.FCPSocket(protofcp.Channels.CHANNEL_01)whileTrue:msg=input("> ")sock.send(msg.encode())Receive message in channel 1:importprotofcpsock=protofcp.FCPSocket(protofcp.Channels.CHANNEL_01)msg=sock.recv()print(msg)−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−Copyright 2023 Andrea VaccaroApache License 2.0
Package: protoflow
ProtoFlow: Prototype Learning in TensorFlowPyTorch users, please see:ProtoTorchDescriptionThis is a Python toolbox brewed at the Mittweida University of Applied Sciences
in Germany for bleeding-edge research in Prototype-based Machine Learning
methods and other interpretable models. The focus of ProtoFlow is ease-of-use,
extensibility and speed.InstallationProtoFlow can be easily installed usingpip. To install the latest version, runpip install -U protoflowTo also install the extras, runpipinstall-Uprotoflow[docs,others,tests]To install the bleeding-edge features and improvements before they are release on PyPI, rungitclonehttps://github.com/si-cim/protoflow.git
gitcheckoutdevcdprotoflow
pipinstall-e.[docs,others,tests]For gpu support, runpipinstall-Uprotoflow[gpu]DocumentationThe documentation is available athttps://www.protoflow.ml/en/latest/. Should
that link not work tryhttps://protoflow.readthedocs.io/en/latest/.UsageFor researchersProtoFlow is modular. It is very easy to use the modular pieces provided by
ProtoFlow, like the layers, losses, callbacks and metrics to build your own
prototype-based(instance-based) models. These pieces blend-in seamlessly with
Keras allowing you to mix and match the modules from ProtoFlow with other Keras
modules.For engineersProtoFlow comes prepackaged with many popular Learning Vector Quantization
(LVQ)-like algorithms in a convenient API. If you would simply like to be able
to use those algorithms to train large ML models on a GPU, ProtoFlow lets you do
this without requiring a black-belt in high-performance Tensor computation.BibtexIf you would like to cite the package, please use this:@misc{Ravichandran2020a,author={Ravichandran, J},title={ProtoFlow},year={2020},publisher={GitHub},journal={GitHub repository},howpublished={\url{https://github.com/si-cim/protoflow}}}
Package: proto-formatter
proto-formatterProtocol Buffers file formatter.Installpipinstallproto-formatterUsageFormat all proto files under current folder and sub-folders with default configsproto_formatterformatHelp message****************************************************************************************************
*Formatprotobuffile(s)fromaspecifictarget.*
*MITLicense*
****************************************************************************************************
usage:proto_formatter<command>[options]commands:formatformatprotobuffilesviewviewfile

generaloptions:-hshowthishelpmessageandexit--helpshowthishelpmessageandexit--filestargetprotobuffilesneedtobeformatted.--foldertargetdirectory,defaultiscurrentdirectory,allprotobuffilesunderitincludingallsubdirectorieswillbeformatted.--previewpreviewformattedprotobuffilewithsyntaxhighlighting.DefaultvalueisFalse,ifitsettoTrue,protobuffileswillnotbeoveridedbyformattedones.--indentsthenumberofindentedspaces,defaultis4--top-commentformatallcommentsastopcomments(abovethetargetline),defaultisFalse--align-by-equal-signalignthecodebyequalsign:TrueorFalse,defaultisTrue--flattenflattennestedobjects,defaultisFalse--comment-max-lengththemaxlengthofcommentline,defaultis999999.--filetargetprotobuffile,onlyusedforcommand'view'It also provides a methodformat_strto format a protobuf string.fromproto_formatterimportformat_strproto_str="""/*Person balabala*/message Person {// comment of name arequired string name = 1; // comment of name b/*comment of id a// comment of id b*/required int32 id = 2;// comment of id coptional string email = 3;// comment of email//element bottom comment one//element bottom comment two}//bottom comment one//bottom comment two"""formatted_proto_str=format_str(proto_str)print(formatted_proto_str)The formatted_proto_str is:/***    Person balabala*/messagePerson{/***    comment of name a*/requiredstringname=1;// comment of name b/***    comment of id a**    comment of id b*/requiredint32id=2;// comment of id coptionalstringemail=3;// comment of email/***    element bottom comment one**    element bottom comment two*/}/***    bottom comment one**    bottom comment two*/
Package: protogenie
ProtogenieHow to cite@software{thibault_clerice_2020_3883586,author={Thibault Clérice},title={Protogenie, post-processing for NLP dataset},month=jun,year=2020,publisher={Zenodo},doi={10.5281/zenodo.3883585},url={https://doi.org/10.5281/zenodo.3883585}}Install from releasepipinstallprotogenieInstall unstablepipinstall--upgradehttps://github.com/hipster-philology/protogenie/archive/master.zipInstall from sourceStart by cloning the repository, and moving inside the created foldergitclonehttps://github.com/hipster-philology/protogenie.gitcdprotogenie/Create a virtual environment, source it and runpipinstall-rrequirements.txtConfiguration fileTo configurate, you can have a look at the examples in./tests/test_configbut more generally
you can and should use the schema:./ppa_splitter/schema.rngWorkflow
Package: proto-kortex
proto-kortexSemantically versioned protobufs used to generate client packages and documentationProtobuf DocumentationLinkMaintainingInstall the pre-commit hook to ensure any changes to the protobuf get refleted in the docs.
Use Buf to lint the proto and detect breaking changes.How to use (locally)CI will automatically generate client packages and documentation for each release.
To run locally:Web ClientYou should havemakeandnpminstalled for generating the web client.$npmi-g@protobuf-ts/plugin
$makeclient-webPython ClientYou'll needmakeandpipinstalled for generating the python client.$makeclient-pythonCreate Rust crateInstall Buf:https://docs.buf.build/installationRunmake buf-genThis should output a rust crate in thegen/cratedirectory that will be used by other services, such as Alexandria.
Package: protolizer
Protolizer DocumentationIntroductionProtolizer is a simple library to serialize and deserialize protobuf messagesInstallationpipinstallprotolizerUsage for serializationfromprotolizerimportSerializer,fieldsclassAccountSerializer(Serializer):username=fields.CharField()balance=fields.IntField()classMeta:# Here we define our generated protobuf message name# our protobuf message is something like:# message Account {#     string username = 1;#     int32 balance = 2;# }schema=Account# Define an account in JSON and Protobuf formatprotobuf_data=Account(username='John',balance=100)json_data={'username':'John','balance':100}# Serialize the data to Protobuf formatprotobuf_serializer=AccountSerializer(protobuf_data)print(protobuf_serializer.protobuf)# Serialize the data to JSON formatjson_serializer=AccountSerializer(json_data)print(json_serializer.json)# Deserialize the data from Protobuf format to JSON formatprotobuf_deserializer=AccountSerializer(protobuf_serializer.protobuf)print(protobuf_deserializer.data)# Deserialize the data from JSON format to Protobuf formatjson_deserializer=AccountSerializer(json_serializer.json)print(json_deserializer.data)ContributeIf you want to contribute to this project, please open an issue on GitHub.LicenseThis project is licensed under the MIT License.AuthorThis project is authored by@uwsgi
Package: protolog
protologTools to analyse and log data from smart metering devicesWe have been copy-pasting these simple server classes onto servers when we have had the
need to analyse protocol data. It was time to gather them in a git reop and make it
a bit nicer to manage.We use Pythons super simplesocketservermodule. The servers are for testing purpose
only. We use the threading mixin to be able to process several requests at the same time.InstallOnly python 3.6+pip install protologUDPTo run a UDP logging serverprotolog udp --port 4000To know more use the --help argumentprotolog --help

Usage: protolog [OPTIONS] COMMAND [ARGS]...

  CLI to run simple protocol loggers by Palmlund Wahlgren Innovative
  Technology AB

Options:
  --help  Show this message and exit.

Commands:
  udpprotolog udp --help

Usage: protolog udp [OPTIONS]

  Runs a threaded UDP server that logs all datagrams it receives. It can
  alos act as an UDP echo server using the --echo flag

Options:
  -h, --host TEXT     Host to bind the server too
  -p, --port INTEGER  Port to bind the server too
  -e, --echo          If the server should echo the data back to the sender
  --help              Show this message and exit.ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.[Unreleased]AddedChangedDeprecatedRemovedFixedSecurity[0.0.1] - 2019-12-31AddedInitial project setup
Package: proto-matcher
proto-matcherTest matchers for Protobuffer in Python.This is based onMessageDifferenceras well as theEqualsProtogoogletest matcher.APIThis packages provides the followingPyHamcrestmatchers:equals_protoequals_proto(message:Union[Message,str])Test the argument equals the given protobuf message.approximatelyapproximately(proto_matcher:Matcher[Message],float_margin:Optional[float]=None,float_fraction:Optional[float]=None)Test the argument equals the given protobuf message, while comparing any float field using approximation.ignoring_field_pathsignoring_field_paths(field_paths:Set[Tuple[str]],matcher:_ProtoMatcher)Test the argument equals the given protobuf message, while ignoring those fields specified in the field paths.ignoring_repeated_field_orderingignoring_repeated_field_ordering(proto_matcher:Matcher[Message])Test the argument equals the given protobuf message, ignoring the ordering of any repeated field.partiallypartially(proto_matcher:Matcher[Message])Test the argument partially equals the given protobuf message, i.e. if a field is in the argument but not in the expected message, it's ignored in the comparsion.
Package: protomodel
ProtomodelPython Library to generate proto buffer code from python using type annotationsInstallationCreate a virtual enviroment (Optional)python-mvenvvenvsourcevenv/bin/activate# venv/Scripts/activate on WindowsInstall package (require python ^3.10 version)pipinstallprotomodelExampleCreate a python file and add the following code:fromprotomodelimportmessage,service,rpc@messageclassHelloRequest:name:str@messageclassHelloReply:message:str@serviceclassGreeter:@rpcdefsay_hello(hello_request:HelloRequest)->HelloReply:passGenerate fileRun the following command to generate a proto buffer file:python-mprotomodelgenerate--python_file=hello.py--proto_name=hello.protoAnd then you will get the following result:syntax="proto3";messageHelloRequest{stringname=1;}messageHelloReply{stringmessage=1;}serviceGreeter{rpcSayHello(HelloRequest)returns(HelloReply){}}Add a package name:python-mprotomodelgenerate--python_file=hello.py\--proto_name=hello.proto--package_name=my_package_namesyntax="proto3";packagemy_package_name;...Adding another typesPython Code:@messageclassItem:id:intname:strdescription:strprice:floatenabled:bool@messageclassItemsList:items:list[Item]Result:messageItem{int32id=1;stringname=2;stringdescription=3;doubleprice=4;boolenabled=5;}messageItemsList{repeatedItemitems=1;}
Package: proton-api-client
Proton Mail APIExamplesfromproton.clientimportProtonMailusername,password=...,...proton=ProtonMail(username,password)passphrase='myPass'pk='privatekey.test123@proton.me-6fdhskjgfd7s98gdgre87gregrjdhrgd7897g898.asc'proton.gpg_import(pk,passphrase=passphrase)sessions=proton.sessions()salts=proton.salts()users=proton.users()inbox=proton.inbox()cid=inbox['Conversations'][0]['ID']conversation=proton.decrypt_conversation(cid)decrypted_inbox=proton.inbox_decrypted()user_settings=proton.user_settings()mail_settings=proton.mail_settings()calendar_settings=proton.calendar_settings()timezones=proton.timezones()addresses=proton.addresses()info=proton.info()directory=proton.calendar_directory()version=proton.version()plans=proton.plans()calendar_directory=proton.calendar_directory()proton.revoke_all_sessions()
Package: proton-db
Lightweight wrapper for the unofficial Proton-DB API (https://protondb.max-p.me/)Usage:import proton_db as protonprotonDB = proton.protonDB()getGames()
Lists all the games we have discovered so far. Returns an array of objects with these fields in it:appIdtitlegetReports(appId)
Lists all reports for a given game (by Valve’s appId), in reverse timestamp order. Returns an array of objects with these fields in it:id - Server’s local idappId - The game ID for this report. Redundant for uniformity’s sake.timestampratingnotesosgpuDriverspecsprotonVersion
Package: proton-driver
IntroductionProtonis a unified streaming and historical data processing engine in a single binary. The historical store is built based onClickHouse.This project provides python driver to interact with Proton, the code is based onhttps://github.com/mymarilyn/clickhouse-driver.InstallationProton Python Driver currently supports the following versions of Python: 3.8, 3.9, 3.10, 3.11 and 3.12.Installing with pip
We recommend creating a virtual environment when installing Python dependencies. For more information on setting up a virtual environment, see thePython documentation.pipinstallproton-driverQuick StartRun proton with docker. Make sure the port 8463 is exposed.dockerrun-d-p8463:8463--pullalways--nameprotonghcr.io/timeplus-io/proton:latestRun following python codefromproton_driverimportconnectwithconnect("proton://default:@localhost:8463/default")asconn:withconn.cursor()ascursor:cursor.execute("select 1")print(cursor.fetchone())above code should return(1,), which shows that everything is working fine now.Streaming Queryfromproton_driverimportclientc=client.Client(host='127.0.0.1',port=8463)# create a random stream if not existc.execute("CREATE RANDOM STREAM IF NOT EXISTS"" devices("" device string default 'device'||to_string(rand()%4), "" temperature float default rand()%1000/10"")")# query the stream and return in a iteratorrows=c.execute_iter("SELECT device, count(*), min(temperature), max(temperature) ""FROM devices GROUP BY device",)forrowinrows:print(row)the output of the code will be something like following, as for streaming query is unbounded, you can add your flow control to terminate the loop.('device0',747,0.0,99.5999984741211)('device1',723,0.10000000149011612,99.30000305175781)('device3',768,0.30000001192092896,99.9000015258789)('device2',762,0.20000000298023224,99.80000305175781)('device0',1258,0.0,99.5999984741211)('device1',1216,0.10000000149011612,99.69999694824219)('device3',1276,0.30000001192092896,99.9000015258789)('device2',1250,0.20000000298023224,99.80000305175781)Insert Datafromproton_driverimportclientc=client.Client(host='127.0.0.1',port=8463)# create a random stream if not existc.execute("INSERT INTO proton_stream (raw) VALUES",rows)#rows is an array of arrays
Package: protonenv
protonenvSimple Proton version and prefix management.A simple tool to manage different Proton versions and prefixes through the command line. The interface is designed to be similar to virtualenv management tools for ease-of-use. This tool is geared for those who want to run Windows programs easily without bloating their system with Wine and its dependencies. Although Proton is usable from the Steam client, it's not convenient to use for most scenarios, especially when installations are required.RequirementsPython >= 3.6SteamInstallationPyPI (recommended)pip install protonenvGitHubNon-editablepip install --upgrade git+https://github.com/rizkiarm/protonenv.gitYou can upgrade the package by re-running the above command.EditableThis option is recommended for development.In the folder of your choosing, run the following command:git clone https://github.com/rizkiarm/protonenv.git
cd protonenv/
pip install -e .You can upgrade the package by runninggit pullfrom theprotonenvfolder.UsageBasic commandsprotonenv versions
protonenv install {<version>,--list}
protonenv uninstall {<version>,<prefix>}
protonenv prefix <version> <prefix>
protonenv run <prefix> [command]Managing a prefixprotonenv default <prefix> --command <command> --flags <KEY1=VALUE1> [KEY2=VALUE2] ...
protonenv info <prefix>
protonenv directory <prefix> [--open]The available flags (runtime config options) can be obtained from:https://github.com/ValveSoftware/Proton#runtime-config-optionsMore infoprotonenv -h
protonenv -h {versions,install,uninstall,prefix,default,info,directory,run}ExamplesBasic exampleInstall Proton 5.0protonenv install 5.0An example of installing and runningINSIDE:# Create a new prefix called "inside"
protonenv prefix 5.0 inside 
# Run INSIDE's installer "Setup.exe" with prefix "inside"
protonenv run inside /path/to/INSIDE/Setup.exe
# Get the directory of drive C for prefix "inside"
DRIVE_C_DIR=$(protonenv directory inside | tail -1)
# Run INSIDE
PROTON_USE_WINED3D=1 protonenv run inside $DRIVE_C_DIR/path/to/INSIDE.exeYou can also set the flags and command as default for prefix "inside":# Configure the default command and use wined3d environment variable by default
protonenv default inside --command $DRIVE_C_DIR/path/to/INSIDE.exe
protonenv default inside --flags PROTON_USE_WINED3D=1 
# Run INSIDE
protonenv run insideDirectly running a programAn example of runningprogram.exewith Proton 5.0protonenv run 5.0 /path/to/program.exeThis command will execute the program in a temporary prefix with the specified Proton version. This is ideal for a situation where you want to test a program or you simply don't want to retain the program configuration/files.Uninstallationpip uninstall protonenv
rm -rf ~/.protonenv