Saravanan666/pypi-org huggingface dataset:
Package: pop-evbus
An asynchronous message ingress system.evbusis an app-merge component for larger projects.
Events are put on a broker queue.
A listener watches the broker queue and propagates events to configured ingress queues.INSTALLATIONInstall from pypipipinstallpop-evbusInstall locally with testing libraries:$gitclonegit@gitlab.com:vmware/idem/evbus.git$pipinstall-eevbus-revbus/requirements/test.inFiring EventsThere are two functions that will put an event into the broker queue;putandput_nowaitThe only difference between them is thatputis asynchronous andput_nowaitis synchronous.
Both accept arouting_key,body, andprofile.routing_keyThis option is forwarded to the ingress plugins’publishfunctions.
Some message queues take a routing_key option themselves, some need to open a channel on the message queue
for the named routing_key.  It’s up to the ingress plugins to implement this appropriately for the
message queue they wrap.bodyThe event body is serialized by the evbus broker when it is put on the broker Queue.
The body can be any serializable object.
The serializer can be configured by settinghub.serialize.PLUGINto the name of the plugin that should be used.profileConfigured profiles are formatted as follows:provider:profile_name:profile_data:Theprofileparameter for the brokerputandput_nowaitfunctions specifies which profile_name should
be used for firing an event.
If no profile is specified, the profiles called “default” will be used.
There can be multiple providers with the same profile name,
the event will be forwarded to all providers that have a matching profile name.
A context (ctx) will be generated that will be sent to the appropriate ingress plugin’s publish function
based onprofile.Full ExampleAsynchronous put:asyncdefmy_func(hub):awaithub.evbus.broker.put(routing_key="channel",body={"message":"event content"},profile="default")Synchronous put:defmy_func(hub):hub.evbus.broker.put_nowait(routing_key="channel",body={"message":"event content"},profile="default")
Package: popex
PoPEx Python3 PackageThis python3 package is an implementation of the parallelized adaptive importance sampler. PoPEx is a robust method to solve the inverse problem when the parameters are categorical (such as rock types) and when a prior geostatistical model is defined.The method is described in detail in the following references:Jäggli C, Straubhaar J and Renard P (2018) Parallelized Adaptive Importance Sampling for Solving Inverse Problems. Front. Earth Sci. 6:203. doi:10.3389/feart.2018.00203Jäggli, C., Straubhaar, J., and Renard, P. (2017). Posterior population expansion for solving inverse problems. Water Resour. Res. 53, 2902–2916. doi:10.1002/2016WR019550DocumentationFind the documentation of the package underhttps://popex.readthedocs.io
Package: pop-except
Contracts, subs, and environment for handling exceptions in POP.AboutThis project contains app-merge components for POP.
It adds a sub for exception hooks and for exceptions.
This provides a predictable structure for using exceptions in POP.What is POP?This project is built withpop, a Python-based
implementation ofPlugin Oriented Programming (POP). POP seeks to bring
together concepts and wisdom from the history of computing in new ways to solve
modern computing problems.For more information:Intro to Plugin Oriented Programming (POP)pop-awesomepop-createGetting StartedPrerequisitesPython 3.7+git(if installing from source, or contributing to the project)InstallationNoteIf wanting to contribute to the project, and setup your local development
environment, see theCONTRIBUTING.rstdocument in the source repository
for this project.If wanting to usepop-except, you can do so by either
installing from PyPI or from source.Install from PyPIpipinstallpop-exceptInstall from source# clone repogitclonegit@gitlab.com/vmware/pop/pop-except.gitcdpop-except# Setup venvpython3-mvenv.venvsource.venv/bin/activatepipinstall-e.UsageIn your project’s main__init__function extend thepop_exceptnamespace:def __init__(hub):
    hub.pop.sub.add("pop_except")After your code initializes hub.OPT, callpop_except’s configure function:def __cli__(hub):
    hub.pop.config.load(["my_app", "pop_except"], cli=""my_app")RoadmapReference theopen issuesfor a list of
proposed features (and known issues).AcknowledgementsImg Shieldsfor making repository badges easy.
Package: pop-gate
Run functions on a remote hub via an http server through a simple API.
This greatly facilitates communication and sharing workloads across nodes in a JSON application.INSTALLATIONpipinstallpop-gateGet CapabilitiesGate extends pop-tree, which can be used to get details of all available resourcesgate--refs"gate.init.tree"curlhttp://localhost:5000-H"Content-Type: application/json"-d'{"ref": "gate.init.tree"}'USAGERun the gate server from the command line and expose specific patterns of hub references.
The ‘–refs’ represent patters on the hub that are allowlisted.
The ‘–prefix’ tells gate to assume that all refs are under a specific dynamic namespace.In this example we will use a prefix of “gate” and allow all refs under ‘hub.gate.init’gate--prefixgate--refs"init.*"Use curl to runhub.gate.init.test()on the remote server like so:curlhttp://localhost:8080-H"Content-Type: application/json"-d'{"ref": "init.test"}'Keyword arguments can be passed by adding extra keys to the call:curlhttp://localhost:8080-H"Content-Type: application/json"-d'{"ref": "init.test", "args": ["arg1", "arg2"], "kwargs": {"kwarg1": "value1"}}'TESTINGInstall gate locally with testing libraries:gitclonegit@gitlab.com:saltstack/pop/gate.gitpipinstall-egate-rrequirements-test.txtRun the tests with pytestpytestgate/testsINTEGRATIONIn order to use gate in your own project add the gate config to your conf.py like so:my_project/conf.pyCLI_CONFIG={# Gate options"host":{"source":"gate"},"port":{"source":"gate"},"server":{"source":"gate"},"matcher":{"source":"gate"},"prefix":{"source":"gate"},"refs":{"source":"gate","default":["gate.init.test"]},}Add gate startup code to your project’s initializer like so:my_project/my_project/init.pydef__init__(hub):# Horizontally merge the gate dynamic namespace into your projecthub.pop.sub.add(dyne_name="gate")defcli(hub):# Load the config from gate onto hub.OPThub.pop.config.load(["my_project","gate"],cli="my_project")# Create the asyncio loophub.pop.loop.create()# Get the default gate server, and other options from hub.OPT.gategate_server=hub.OPT.gate.server# Create the server coroutinecoro=hub.gate.init.start(gate_server=gate_server)# Start the gate serverhub.pop.Loop.run_until_complete(coro)
Package: popgen
=============================Synthetic Population Generator 2.0=============================.. image:: https://badge.fury.io/py/popgen.png:target: http://badge.fury.io/py/popgen.. image:: https://travis-ci.org/foss-transportationmodeling/popgen.png?branch=master:target: https://travis-ci.org/foss-transportationmodeling/popgen.. image:: https://pypip.in/d/popgen/badge.png:target: https://pypi.python.org/pypi/popgenSynthetic Population Generator 2.0Features--------For PopGen 2.1* Automatic data validator* Census data importerFor PopGen 2.2* Output Data Analyzer with charting and table generation capabilitiesDocumentation-------------The full documentation is at http://popgen.rtfd.org.History-------Version 2.0.b2 (June 1, 2015)* This is the second non-production release of PopGen 2.0Version 2.0.b1 (June 4, 2015)* This is the first non-production release of PopGen 2.0
Package: popgym
POPGym: Partially Observable Process GymPOPGym is designed to benchmark memory in deep reinforcement learning. It contains a set ofenvironmentsand a collection ofmemory model baselines. The full paper is available onOpenReview.Please see thedocumentationfor advanced installation instructions and examples. Theenvironment quickstartwill get you up and running in a few minutes.Quickstart Installpipinstallpopgym# base environments only, only requires numpy and gymnasiumpipinstall--use-pep517"popgym[navigation]"# also include navigation environments, which require mazelibpipinstall"popgym[baselines]"# environments and memory baselinesPOPGym EnvironmentsPOPGym contains Partially Observable Markov Decision Process (POMDP) environments following theGymnasiuminterface. POPGym environments have minimal dependencies and fast enough to solve on a laptop CPU in less than a day. We provide the following environments:EnvironmentTagsTemporal OrderingColab FPSMacbook Air (2020) FPSBattleshipGameNone117,158235,402ConcentrationGameWeak47,515157,217Higher LowerGame, NoisyNone24,31276,903Labyrinth EscapeNavigationStrong1,39941,122Labyrinth ExploreNavigationStrong1,37430,611MinesweeperGameNone8,43432,003Multiarmed BanditNoisyNone48,751469,325AutoencodeDiagnosticStrong121,756251,997Count RecallDiagnostic, NoisyNone16,79950,311Repeat FirstDiagnosticNone23,895155,201Repeat PreviousDiagnosticStrong50,349136,392Position Only CartpoleControlStrong73,622218,446Velocity Only CartpoleControlStrong69,476214,352Noisy Position Only CartpoleControl, NoisyStrong6,26966,891Position Only PendulumControlStrong8,16826,358Noisy Position Only PendulumControl, NoisyStrong6,80820,090Feel free to rerun this benchmark usingthis colab notebook.POPGym BaselinesPOPGym baselines implements recurrent and memory model in an efficient manner. POPGym baselines is implemented on top ofrllibusing their custom model API. We provide the following baselines:MLPPositional MLPFramestacking(Paper)Temporal Convolution Networks(Paper)Elman Networks(Paper)Long Short-Term Memory(Paper)Gated Recurrent Units(Paper)Independently Recurrent Neural Networks(Paper)Fast Autoregressive Transformers(Paper)Fast Weight Programmers(Paper)Legendre Memory Units(Paper)Diagonal State Space Models(Paper)Differentiable Neural Computers(Paper)LeaderboardThe leaderboard is available atpaperswithcode.ContributingFollow style and ensure tests passpipinstallpre-commitpre-commitinstallpytestpopgym/testsCiting@inproceedings{
morad2023popgym,
title={{POPG}ym: Benchmarking Partially Observable Reinforcement Learning},
author={Steven Morad and Ryan Kortvelesy and Matteo Bettini and Stephan Liwicki and Amanda Prorok},
booktitle={The Eleventh International Conference on Learning Representations},
year={2023},
url={https://openreview.net/forum?id=chDrutUTs0K}
}
Package: popip
👉项目官网：https://www.python-office.com/👈👉本开源项目的交流群👈📚简介popip是查看第三方库下载数据的小工具。📦安装🍊pip 自动下载&更新已同步到清华镜像pip install -i https://mirrors.aliyun.com/pypi/simple/ popip -U📝功能📘官网：https://www.python-office.com/参考资料：https://github.com/hugovk/pypistatshttps://github.com/CoderWanFeng/popip🐞提供bug反馈或建议提交问题反馈时，请务必填写和python-office代码本身有关的问题，不进行有关python学习，甚至是个人练习的知识答疑和讨论。Github issue📌联系作者
Package: poplar-oeaddlne
This package contains the content used to deliver an introduction
toOrchid Extenderto a group of developers.  The training was developed
and delivered by2665093 Ontario Inc.This package contains two extender scripts, both of which do the same thing
but are implemented in different ways: one as a view script and one as a
screen script. The training material also discusses using Extender module
files to group and version a customization as well as how to add custom
tables.The rendered documentation athttps://poplar-oeaddlne.readthedocs.iois probably what you want.  This content is distributed under the
Creative Commons Share Alike 4 license, feel free to modify, share,
and reuse it.
Package: pople
The CodePopleis a toolkit written in Python to performab initiothermochemistry calculations. The present versionPople v21.4.1supports G4(MP2) calculations using theORCA quantum chemistry program packagefor all the electronic structure calculations. Pople enables customizing every step in a G4(MP2) calculation, facilitating the user to explore effects of level of theories and basis sets on the speed and accuracy. G4(MP2)-XP is a variant based on DLPNO-CCSD(T),RI-MP2, RI-DFT and RI-HF approximations permitting thermochemistry calculations of molecules as large as buckminsterfullerene.Calculations supportedEnthalpy of formationAtomization energyIonization Potential (vertical and adiabatic)Electron Affinity (vertical and adiabatic)Proton AffinityIntermolecular Binding EnergyFor installation, manual, and tutorials athttps://moldis-group.github.io/Pople/
Package: popLines
Tools to pop (remove and return) lines from files, with a variety of modes.This allows you to treat a file on disk as a queue, or to easily strip lines from a file, and many other uses.Example[cmd]$ cat test # Show original fileonetwothreefourfive[cmd]$ popHead 2 test # Remove two lines from head of the fileonetwo[cmd]$ cat test # Show that lines have been removed from filethreefourfiveModesFor all actions which provide a line number, the numbers are 1-origin (first line is “1”, second is “2”).The followings modes and their associated command name are given:Head- popHead [numLines] [filename] - Removes “numLines” from the top of provided “filename”, and prints them on stdout.IfnumLinesis a negative number, -N, popHead will pop lines starting from head up until the Nth-to-last line. For example, calling popHead -2 on a file with 6 lines will pop the first 4.Tail- popTail [numLines] [filename] - Removes “numLines” from the bottom of provided “filename”, and prints them on stdout.IfnumLinesis a negative number, -N, popTail will pop lines starting from tail up until the Nthline. For example, calling popTail -3 on a file with 8 lines will pop the last 5.Random- popRandom [numLines] [filename] - Removes “numLines” from random positions within provided “filename”, and prints to stdout in a random order.You can pass the –ordered flag, and the randomly-selected lines will be output in the same order they appear in the file. By default, the random lines will be output in random order.Range- popRange [start] [stop] (optional: [step]) [filename] - Removes lines using inclusive 1-origin start, stop, and optional step, and prints to stdout. Negative numbers are supported to mean “from the end”, -1 is last line, -2 is second-to-last line.These- popThese [line1] […lineN] [filename] - Removes specific lines given 1-origin numbers. If numbers are out of range, that number will be ommited. Lines are returned in provided order, and duplicates are allowed. Negative numbers are supported to mean “from the end”.PeekingBy default, the pop* commands are designed to implement queues, and thus they perform real “pops” and remove the elements extracted from the source file.If you’d just like to “peek” (extract lines but keep them in the source), add “–peek” when invoking any of the pop* commands.ModuleFunctionality is exposed through a module, PopLines, which can perform all the same operations.You can checkout the pydoc here:http://pythonhosted.org/popLines
Package: pop-loop
pop-loopContains plugins that allow alternate io loops to be used to run asynchronous code in pop projects.AboutPop used the asyncio loop by default in a built-in mod at ‘hub.pop.loop’.
It became necessary to split the mod into it’s own project for more loop capabilities.
For testing, loop management was difficult, but paired with pytest-pop, pop-loop makes async testing easy.What is POP?This project is built withpop, a Python-based
implementation ofPlugin Oriented Programming (POP). POP seeks to bring
together concepts and wisdom from the history of computing in new ways to solve
modern computing problems.For more information:Intro to Plugin Oriented Programming (POP)pop-awesomepop-createGetting StartedPrerequisitesPython 3.8+git(if installing from source, or contributing to the project)InstallationNoteIf wanting to contribute to the project, and setup your local development
environment, see theCONTRIBUTING.rstdocument in the source repository
for this project.If wanting to usepop-loop, you can do so by either
installing from PyPI or from source.Install from PyPIIf package is available via PyPI, include the directions.pipinstallpop-loopInstall Extraspop-loopcan be installed with extras to enable the different loop plugins in this project.trio:
.. code-block:: bashpip install pop-loop[trio]uvloop:
.. code-block:: bashpip install pop-loop[uvloop]qt:
.. code-block:: bashpip install pop-loop[qt]Install from source# clone repogitclonegit@gitlab.com/saltstack/pop/pop-loop.gitcdpop-loop# Setup venvpython3-mvenv.venvsource.venv/bin/activatepipinstall-e.UsageDescribe some basic example use case for this plugin.Examplesuvloop example:
.. code-block:: pythonimport asyncio
import pop.hubhub = pop.hub.Hub()hub.pop.loop.create(loop_plugin=”uv”)
task = hub.pop.Loop.create(asyncio.sleep(0))
hub.pop.Loop.run_until_complete(task)trio example:
.. code-block:: pythonimport asyncio
import pop.hubhub = pop.hub.Hub()hub.pop.loop.create(loop_plugin=”trio”)
task = hub.pop.Loop.create(asyncio.sleep(0))
hub.pop.Loop.run_until_complete(task)QT example:
.. code-block:: pythonimport asyncio
import pop.hub
import PyQt5.QtWidgets as pyqt5hub = pop.hub.Hub()
hub.loop.qt.APP = pyqt5.QApplication([])
hub.pop.loop.create(loop_plugin=”qt”)task = hub.pop.Loop.create(asyncio.sleep(0))
hub.pop.Loop.run_until_complete(task)AcknowledgementsImg Shieldsfor making repository badges easy.
Package: popobot
PoPoBotA bot library forPoPoIM."PoPoIM" is a series of PHP chat source codes, including H5 mobile version, web version, and uniapp version.FeaturesPoPoBot provides a series of APIs aimed at making it easy to create chatbots for PopoIM.The supported features include:Receiving messagesSending messages to friends and groupsGroup chat management (kicking members, muting, dissolving, inviting)Accepting/rejecting friend requestsViewing account messagesLogging outAnd messages use Markdown, so you can send different type of content easily.UsagePoPoIM manages cookies in the form of 'session IDs', so you need to obtain the cookie by logging in to PoPoIM on a device, capturing the cookie through packet capture, and keeping logged in without logging out.frompopobotimport*cookie='...'#Your cookie.bot=Account(cookie)#Login to PoPoIMThen you can manage your bot.Example:bot.SendGroupMessage(groupId,'Hello world!')More functions:SendGroupMessage(group,message)# Send group messageSendFriendMessage(friend,message)# Send friend messageGetGroupMessage(group,limit=20)# Get group messagesGetFriendMessage(friend,limit=20)# Get friend messagesGetInfo()# Get informationGetSelfInfo()# Get self informationGetFriendsList()# Get friends listGetGroupList()# Get group listGetChattings()# Get chatting listGetApplyList()# Get apply listGetApplyDetail(nid)# Get apply detailAgreeApply(nid)# Agree to applyRefuseApply(nid)# Refuse applyGetGroupInfo(group)# Get group informationGroupKick(group,friend)# Kick member out of the groupGroupInvite(group,friend)# Invite user to join groupGroupLeave(group)# Leave groupGroupDel(group)# Disband groupApplyFriend(friend)# Apply to add as a friendsFriendDel(friend)# Delete a FriendMute(group)# Mute the groupUnMute(group)# Unmute the groupLogout()# Logout
Package: popodds
popoddsSimple package for Bayesian model comparison.Given samples from a posterior distribution inferred under some default prior, compute the Bayes factor or odds in favour of a new prior model.Installationpip install popoddsUsageThe package consists of theModelComparisonclass to compute Bayes factors, and a wrapper functionlog_oddsfor simplicity.The computation only requires a few ingredients:modela new prior model or samples from it,priorthe original parameter estimation prior or samples from itsamplessamples from a parameter estimation run.Optional:model_boundsparameter bounds for the new prior model,prior_boundsparameter bounds for the original prior model,logcompute probability densities in log space,prior_oddsodds between the prior models, which defaults to unity,second_modelmodel to compute odds against instead of prior,second_boundsparameter bounds for the second model,detectablecompare between detectable rather than intrinsic populations.
Package: popol
Popol ⛅Adding new power to your FastAPI application ⛅Popol is a library that provides as-is tools for use on FastAPI.This project aims to provide APIs to support your FastAPI projects without breaking existing projects. This is another version of theFastackproject. Overall the available APIs are not much different from theFastack plugins.Features 🌟Project LayoutCommand Line Interface (likeflaskcommand)PaginationCache FrameworkBackendsRedis (Sync/Async)MemcachedSerializersJSONPickleMsgPackORM IntegrationSQLModel (Async/Sync)Tortoise ORMODM IntegrationMongoEngineSMTP client (using aiosmtplib) to send emails.Background Jobs:SAQ queue support for task schedulingInstallation 📚pip install popol>=0.4.0Documentation 📖Not available at this time, please learn from theexamples.
Package: popoto
StatusDocumentation:popoto.readthedocs.ioPopoto - A Redis ORM (Object-Relational Mapper)Installpip install popotoBasic UsagefrompopotoimportModel,KeyField,FieldclassPerson(Model):name=KeyField()fav_color=Field()Person.create(name="Lalisa Manobal",fav_color="yellow")lisa=Person.query.get(name="Lalisa Manobal")print(f"{lisa.name}likes{lisa.fav_color}.")>'Lalisa Manobal likes yellow.'PopotoFeaturesvery fast stores and queriesfamiliar syntax, similar to Django modelsGeometric distance searchTimeseries for streaming data and finance tickerscompatible with Pandas, Xarray for N-dimensional matrix search 🚧PubSub for message queues, streaming data processingPopotois ideal for streaming data. The pub/sub module allows you to trigger state updates in real time.
Currently being used in production for:trigger buy/sell actions from streaming price datarobots sending each other messages for teamworkcompressing sensor data and training neural networksAdvanced UsageimportpopotoclassPerson(popoto.Model):uuid=popoto.AutoKeyField()username=popoto.UniqueKeyField()title=popoto.KeyField()level=popoto.SortedField(type=int)last_active=popoto.SortedField(type=datetime)location=popoto.GeoField()invited_by=popoto.Relationship(model=Person)Save Instanceslisa=Person(username="@LalisaManobal")lisa.title="Queen"lisa.level=99lisa.location=(48.856373,2.353016)# Hôtel de Ville, Fashion Week 2021lisa.last_active=datetime.now()lisa.save()Queriesparis_lat_long=(48.864716,2.349014)yesterday=datetime.now()-timedelta(days=1)query_results=Person.query.filter(title__startswith="Queen",level__lt=100,last_active__gt=yesterday,location=paris_lat_long,location_radius=5,location_radius_unit='km')len(query_results)>>>1print(query_results)>>>[{'uuid':'f1063355b14943ed91fa1e1697806c4f','username':'@LalisaManobal','title':'Queen','level':99,'last_active':datetime.datetime(2021,11,21,14,47,19,911023),'location':(48.856373,2.353016)},]lisa=query_results[0]lisa.delete()>>>TrueDocumentationDocumentation is available atpopoto.readthedocs.ioPlease create new feature and documentation related issuesgithub.com/tomcounsell/popoto/issuesor make a pull request with your improvements.LicensePopoto ORM is released under the MIT Open Source license.Popoto CommunityPlease post your questions onStack Overflow.Popoto gets it's name from theMāui dolphinsubspeciesis - the world's smallest dolphin subspecies.
Because dolphins are fast moving, agile, and work together in social groups. In the same way, Popoto wraps Redis and RedisGraph to make it easy to manage streaming timeseries data on a social graph.For help building applications with Python/Redis, contactTom CounsellonLinkedIn.com/in/tomcounsell
Package: poppdf
poppdfA python (3.6+) module that wraps poppler's pdftoimage, pdftohtml and pdftotext to extract informations from PDF.What information is extractedimagetextinfromation about the position of various text linesHow to installpip install poppdfWindowsWindows users will have to build or download poppler for Windows. I recommend@oschwartz10612 versionwhich is the most up-to-date. You will then have to add thebin/folder toPATHor usepoppler_path = r"C:\path\to\poppler-xx\bin" as an argumentinconvert_from_path.MacMac users will have to installpoppler for Mac.LinuxMost distros ship withpdftoppmandpdftocairo. If they are not installed, refer to your package manager to installpoppler-utilsPlatform-independant (Usingconda)Install poppler:conda install -c conda-forge popplerInstall pdf2image:pip install pdf2imageHow does it work?from pdf2image import image_from_path, xml_from_path, text_from_pathfrompoppdf.pdfDocumentimportPdfDocumentThen simply do:pdf=PdfDocument('example.pdf')Andprint(pdf.pdf_pages[1].text)