Saravanan666/pypi-org huggingface dataset:
Package: pyrtist
PyrtistPyrtist is a library and IDE which enablesdrawing using Python scripts.Pyrtist is a vector graphics editor. The main difference with respect to
traditional vector graphics editors likeInkscapeis
that the input for drawing comes from a Python script.The Pyrtist window is subdivided in two halves:Thescript viewallows to write and adjust the Python script which draws
the graphics,Thepicture viewshows the graphical output produced by the script and
allows to interact with the picture and adjust it, by moving some reference
points (with the mouse for example), which the Python script sees as regular
variables.The two views allow you to create pictures that can exploit the scripting
capabilities of Python while still allowing you to naturally interact with the
graphics. Your drawings can be saved to disk as ordinary Python scripts.
You can execute them on their own, outside the Pyrtist user interface,
or you can re-open them with Pyrtist if you need to change them.Your scripts can exploit the full power of Python and can be as smart as you
want them to be. If you are a programmer, you can then use the tools you are
familiar with. You can track different versions of your drawings usinggit. You can use Makefiles to automatically rebuild a
large collection of Pyrtist drawings, which all import the same module defining
color and style. Need a different color scheme or line width scheme for all
your pictures? Just change one file and typemake. They will all be
generated automatically for you. Importantly, you can easily reuse old
drawings. They are text and as such you can easily copy and paste them. You can
create modules containing them and you can couple them with the thousands
Python libraries out there.StatusThis software is under development. It can be used already, despite not being
feature complete. The drawing API is not fully stable, yet. Any feedback and
contributions are welcome.
Package: pyrtlib
A Radiative Transfer Python Library (non-scattering)PyRTlib is a Python package, for non-scattering line-by-line microwave RT simulations. PyRTlib is a user-friendly tool for computing down and up-welling brightness temperatures and related quantities (e.g., atmospheric absorption, optical depth, opacity) in Python.InstallationUse pip package to install quicly the pyrtlib library. Seeinstallation instructionsfor more info on how instaling pyrtlib.$pipinstallpyrtlibExampleFor examples of how to use pyrtlib see theexamples gallery. Code can be downloaded both as python script or notebook file.Performing calculation of upwelling brightness temperature.frompyrtlib.tb_spectrumimportTbCloudRTEfrompyrtlib.climatologyimportAtmosphericProfilesasatmpfrompyrtlib.utilsimportmr2rh,ppmv2gkgAtmospheric profile definition:z,p,_,t,md=atmp.gl_atm(atmp.MIDLATITUDE_SUMMER)Units conversion:gkg=ppmv2gkg(md[:,atmp.H2O],atmp.H2O)Relative humidity of $H_2O$ (water vapor)rh=mr2rh(p,t,gkg)[0]/100Deifinition of angles and frequencies:ang=np.array([90.])frq=np.arange(20,1001,1)Initialize parameters for main execution:rte=TbCloudRTE(z,p,t,rh,frq,ang)Set absorption model:rte.init_absmdl('R22SD')Execute model by computing upwelling radiances:df=rte.execute()df.tbtotal0293.1198111292.5380882291.7366723291.9136584292.493971...976230.179993977231.435965978232.592915979233.666322980234.667522Name:tbtotal,Length:981,dtype:float64Cite asPlease cite us:Larosa, S., Cimini, D., Gallucci, D., Nilo, S. T., and Romano, F.: PyRTlib: an educational Python-based library for non-scattering atmospheric microwave Radiative Transfer computations, Geosci. Model Dev. Discuss. (preprint),https://doi.org/10.5194/gmd-2023-171, in review, 2023.Larosa, S., Cimini, D., Gallucci, D., Nilo, S. T., & Romano, F. (2023). PyRTlib: A python package for non-scattering line-by-line microwave Radiative Transfer simulations. (Computer software).https://doi.org/10.5281/zenodo.8219145
Package: pyrt-lib-rasmusklitgaard
pyrt-libPython based helper library for RT cohort analysisClasses:PatientA class for a patient. Initializes with the path to the directory containing DICOMS, dvhs' (made with makedvh from gitlab.com/dcpt-research/fluka-simulation-batch-tools). Automatically reads all the data and can be queried for dvh parameters and so forth.
Also reads metadata - right now from an excel sheet for these patients, but could be altered to any patient cohort.CohortA class for a cohort, a group of patients. Primary function is that it can make sub-cohorts based on a constraint,
such as age, toxicity, gamma-pass score or dvh parameters or whatever you want.PlansWill contain classes to help with data-flow for patients with CT's, RTSTRUCT's, RTPLAN's, planning RTDOSE distributions as well as
Monte Carlo simulations of dose and Linear Energy Transfer.The library will also include functionality for variable RBE for at least the most used models.
Package: pyrtlsdrlib
DescriptionA helper forpyrtlsdrthat includes pre-built binaries oflibrtlsdr(which pyrtlsdr depends on).Contains libraries build for the following systems:Ubuntu LinuxMac OSX (Intel)Mac OSX (M1 / arm64)Windows (32 and 64 bit)InstallationInstall directly withpippipinstallpyrtlsdrlibOr as an “extra” dependency of pyrtlsdrpipinstallpyrtlsdr[lib]
Package: pyrtm
Copyright (c) 2009 by Sridhar Ratnakumar <pyrtm@srid.name>Contributors:Mariano Draghi (cHagHi) <mariano at chaghi dot com dot ar>Tetsuya Morimoto (t2y) <tetsuya dot morimoto at gmail dot com>Requirements:Python 2.6 or latersetuptools or distriubteHome page:http://bitbucket.org/srid/pyrtm/
Package: pyrtools
pyrtools: tools for multi-scale image processingBriefly, the tools include:Recursive multi-scale image decompositions (pyramids), including
Laplacian pyramids, QMFs, Wavelets, and steerable pyramids.  These
operate on 1D or 2D signals of arbitrary dimension.Fast 2D convolution routines, with subsampling and boundary-handling.Fast point-operations, histograms, histogram-matching.Fast synthetic image generation: sine gratings, zone plates, fractals, etc.Display routines for images and pyramids.  These include several
auto-scaling options, rounding to integer zoom factors to avoid
resampling artifacts, and useful labeling (dimensions and gray-range).This is a python 3 port of Eero Simoncelli'smatlabPyrTools,
but it does not attempt to recreate all of the matlab code from matlabPyrTools.
The goal is to create a Python interface for the C code at the heart of
matlabPyrTools.NOTE: If you are only interested in the complex steerable pyramid, we have a
pytorch implementation in theplenopticpackage;
the implementation in plenoptic is differentiable.Citing usIf you usepyrtoolsin a published academic article or presentation, please
cite us! You can find the link to the most recent release on Zenodohere(though please specify
the version you used not the most recent one!). You can also get a formatted
citation at the top right of ourGitHub
repoInstallationIt's recommended you install from pip:pip install pyrtools.If you wish to install from the main branch, it's still recommended
to use pip, just runpip install .(orpip install -e .if you
want the changes you make in the directory to be reflected in your
install) from the root directory of this project. The core of this
code is the C code, and the pip install will compile it nicely.Pyramid resourcesIf you would like to learn more about pyramids and why they're helpful
for image processing, here are some resources to get you started:Brian Wandell'sFoundations of
Vision,
chapter 8 (the rest of the book is helpful if you want to
understand the basics of the visual system).Adelson et al, 1984, "Pyramid methods in image
processing".Notes from David Heeger onsteerable
filtersNotes from Eero Simoncelli onthe Steerable
PyramidUsage:load modules:import pyrtools as ptcreate pyramid:pyr = pt.pyramids.LaplacianPyramid(img)reconstruct image from pyramid:recon_img = pyr.recon_pyr()Please seeTUTORIALS/02_pyramids.ipynbfor more examples.For developresTestingYou can find unit tests inTESTS/unitTests.pyand run them withpython TESTS/unitTests.py.Build the documentationNOTE: If you just want to read the documentation, you do not need to
do this; documentation is built automatically onreadthedocs.However, it can be built locally as well. You would do this if you've
made changes locally to the documentation (or the docstrings) that you
would like to examine before pushing.# create a new virtual environment and then...
# install pyrtools with sphinx and documentation-related dependencies
pip install -e .[docs]
# build documentation
cd docs/
make htmlThe index page of the documentation will then be located atdocs/_build/html/index.html, open it in your browser to navigate
around.
Package: pyrtshm
pyrtshmpyrtshm is a real-time distributed shared memory implemented in python over
UDP protocol using protobuf.It is intended to be used as a dict that mirrors its keys and values
across distributed nodes in environments that can tolerate packet losses,
but need real time updates. For example, games backend, live stream of stock
prices, machine discovery and monitoring, etc.To give a simple example, think of 2 hosts running your project,node-1andnode-2. Innode-1you have:mem=SharedMemory(listen=('0.0.0.0',3333),forward_nodes=[('node-2',3333)])mem.start()Innode-2, you have:mem=SharedMemory(listen=('0.0.0.0',3333),forward_nodes=[('node-1',3333)])mem.start()Now, if you set any key in one of the nodes like this:mem["my-key"]=1In almost real time, with high thoughput,mem["my-key"]will have value1in the other node. You can add as many nodes as needed in theforward_nodeslist.Install it from PyPIpipinstallpyrtshmUsagefrompyrtshmimportSharedMemory# Each node initializes itself by indicating its own port, and the# host & sport of the other nodes (the "forward nodes").other_nodes=[('host1',3333),('host2',3333),('host3',3333)]mem=SharedMemory(listen=('0.0.0.0',3333),forward_nodes=other_nodes)mem.start()# Set a key, making it available to other nodes.mem["host1/cpu"]=75.1# Get a key set by another node.avg_cpu=mem["host1/cpu"]+mem["host2/cpu"]# Deletes a key locally and to the other nodesdelmem["host0/cpu"]DevelopmentRead theCONTRIBUTING.mdfile.
Package: pyrubi
Fast and powerfull Rubika API libraryGitHub•DocumentsPyrubi 3.5.1Fast and powerfull Rubika API library for building self bots.Install or Update:pipinstall-UpyrubiQuick start:frompyrubiimportClientfrompyrubi.typesimportMessageclient=Client("mySelf")@client.on_message(regexp="hello")defsend_hello(message:Message):message.reply("**hello** __from__ ##pyrubi##")client.run()also you can enter your session data manually:frompyrubiimportClientfrompyrubi.typesimportMessageauth_key="abcdefghijklnopkrstuvwxyzazxcqwe"private_key="-----BEGIN RSA PRIVATE KEY-----\n..."client=Client(auth=auth_key,private=private_key)@client.on_message(regexp="hello")defsend_hello(message:Message):message.reply("**hello** __from__ ##pyrubi##")client.run()Features:Fast:The requests are very fast and optimize.Powerful:While the library is simple, it has high speed and features that make your work easier and fasterEasy:All methods and features are designed as easy and optimal as possibleSocial Media:Rubika🌟 Star History
Package: pyrubika
An example:frompyrubikaimportpyrubikabot=pyrubika("Auth Account")gap="guids"bot.sendMessage(gap,"pyrubika")How to import the Rubik's libraryfrompyrubikaimportrubikaHow to install the librarypipinstallpyrubika==2.0.4My ID in Rubika@mamadcoder1And My ID Channel in Rubika@python_java_source
Package: pyrubrum-continued
An intuitive framework for creating Telegram bots.Create your own bot in less than 100 lines!••PyrubrumfrompyrogramimportClientfrompyrubrumimportHandler,Menu,transformbot=Client(...)handler=Handler(transform({Menu("Start","start","Hello!",default=True):[Menu("About me","about_me","I'm just a bot!"),Menu("Thoughts","thoughts","I'm a bot, I cannot think properly..."),]}))handler.setup(bot)bot.run()Pyrubrum(/ˈpaɪɹˈuːbɹəm/) is a versatile, charming framework for creatingTelegram bots, jointly withPyrogram.FeaturesAutomaticdeep-linkgeneration withDeepLinkMenuBuilt-in support forRedisComplete documentationCustom styles for inline keyboardsDatabase integrationFast & optimized usingMTProtojointly withPyrogramFully encrypted parametersIntuitive creation of inline keyboardsLRU caching withfunctools.lru_cacheNative support for the"Go back"buttonNo limit forcallback_data(seeTelegram Bot API)Paging integration withPageMenuExamplesIn order to make use of the proposed examples, you need to create your own environment file by renamingsample.envinto.envand editing all the necessary variables.Café- Get an overview of the design which lies inside Pyrubrum while interacting with multiple commands and pages.Calendar- Get what day of the week a day is by simply choosing a year, a month and a day while discovering the potential of Pyrubrum page menus.Hitchhiker- Come to know how media are handled with Pyrubrum and...get an existential question answered.Sample- Interact with inline menus while understanding how Pyrubrum works.ChangelogSeeCHANGELOG.md.
Find new features inFEATURES.md.Commit messagesSeeConventional Commits.ContributingSeeCONTRIBUTING.md.VersioningSeePEP 440.Thanksveggero/tytgfor giving me the idea of developing a simple framework with which you can code a folder-like bot.bakhoralievfor letting me understand that an object-oriented library would make the difference in developing this project.BrandingSeehearot/pyrubrum-assets.Copyright & LicenseCopyright (C) 2020Hearot.Licensed under the terms of theGNU General Public License v3 (GPLv3).
Package: pyruckus
pyruckusA Python API which interacts with a Ruckus Unleashed device.SetupTo install thepyruckuspackage:pip3installpyruckusUsageEach function is defined as anasyncfunction, so you will have to create an event loop instead of calling the functions directly in a shell.frompyruckusimportRuckusimportasyncioasyncdeftest_pyruckus():ruckus=Ruckus("<ruckus ip>","<ruckus user>","<ruckus password>")awaitruckus.connect()ap_info=awaitruckus.ap_info()mesh_info=awaitruckus.mesh_info()system_info=awaitruckus.system_info()config=awaitruckus.config()clients=awaitruckus.current_active_clients()wlan_info=awaitruckus.wlan_info()ruckus.disconnect()loop=asyncio.get_event_loop()loop.run_until_complete(test_pyruckus())
Package: pyruicore
pyruicoreThis package is used to load python dict data to python class.Usagepip install pyruicore -ihttps://pypi.org/simplefrompyruicoreimportBaseModel,FieldclassDepartment(BaseModel):name:straddress:strclassUser(BaseModel):age:int=Field(default_factory=lambda:1)departs:List[Department]user=User(departs=[{"name":"de1","address":"address1"},Department(name="2",address="address2"),])user_dict=user.dict()"""user_dict = {"age": 1,"departs": [{"name": "de1", "address": "address1"},{"name": "2", "address": "address2"},]}"""Maintainers@ruicoreContributingPRs are accepted, this is first workout version, may have many bugs, so welcome to point out bugs and fix it.LicenseMIT © 2020 ruicore
Package: pyrule34
PyRule34Р СѓСЃСЃРєРёР№| EnglishThis is a lightweight asynchronous library for therule34APIInstallThe library requires Python 3.5 or higherLatest version on PyPI:1.1.0pipinstall-Upyrule34UsageImporting required librariesimportasynciofrompyrule34importAsyncRule34AsyncRule34 can be used as a context manager:#exampleasyncdefmain():asyncwithAsyncRule34()asr34:get_posts=awaitr34.get_posts(4931536)print(get_posts[0].tags)loop=asyncio.get_event_loop()loop.run_until_complete(main())SearchSearch for posts using specified inclusion and exclusion tags.Returns a list.Parameters:tags- The include tagsexclude_tags- The exclude tags (default: None)limit- The (maximum) limit to get posts. Maximum 1000 per one request (default: 100)page_id- The page number (default: 0)search=awaitr34.search(tags=["neko"],exclude_tags=["rating:general"],page_id=2,limit=1)PostRetrieve post(s) by ID or MD5 hash.Returns a list.Parameters:posts_id: The list of IDs posts or post IDmd5: The MD5 hash of the post (default: None)get_posts=awaitr34.get_posts(4931536)Comments on the postGet comments by post ID.Returns a list.Parameters:post_id: The ID of the postget_post_comments=awaitr34.get_post_comments(4153825)Random postGet a random post.Returns a dict.get_random_post=awaitr34.get_random_post()PoolGet Pool by ID.Returns a list.Parameters:cid: Pool IDoffset: offset (default: 0) | 1 page - 45get_pool=awaitr34.get_pool(29619)User FavoritesGet user's favorites by ID.Returns a list.Parameters:user_id: user IDoffset: offset (default: 0) | 1 page - 50favorite=awaitr34.users.favorites(2993217)Top 100 characters and tagsGet the top 100 characters or tags.Returns a list.top_character=awaitr34.top_characters()top_tags=awaitr34.top_tags()Top usersGet the top 10 best users by tags, comments, etc.Returns a list.taggers=awaitr34.stats.taggers()favorites=awaitr34.stats.favorites()commenters=awaitr34.stats.commenters()forum_posters=awaitr34.stats.forum_posters()image_posters=awaitr34.stats.image_posters()note_editors=awaitr34.stats.note_editors()
Package: pyrule-compendium
pyrule compendiumThe official python API wrapper for the Hyrule Compendium API.Installationpip3 install pyrule-compendiumDocumentationDetailed docs and guidehere.Basic Usagefrom pyrule_compendium import compendium

print(compendium().get_all()) # get all entries
print(compendium().get_entry("silver_lynel")) # get a specific entry with it's name
print(compendium().get_entry(1)) # get a specific entry with it's ID
print(compendium().get_category("monsters")) # get all entries in a category
compendium().get_image("silver_lynel").download() # download entry image
Package: pyrulelearn
IMLIIMLI is an interpretable classification rule learning framework based on incremental mini-batch learning.  This tool can be used to learn classification rules expressible in propositional logic, in particular inCNF, DNF, andrelaxed CNF.This tool  is based on ourCP-2018,AIES-2019, andECAI-2020papers.InstallInstall the PIP library.pip install pyrulelearnRunpip install -r requirements.txtto install all necessary python packages available from pip.This framework requires installing an off-the-shelf MaxSAT solver to learn CNF/DNF rules. Additionally, to learn relaxed-CNF rules, an LP (Linear Programming) solver is required.Install MaxSAT solversTo install Open-wbo, follow the instructions fromhere.
After the installation is complete, add the path of the binary to the PATH variable.export PATH=$PATH:'/path/to/open-wbo/'Other off-the-shelf MaxSAT solvers can also be used for this framework.Install CPLEXTo install the linear programming solver, i.e., CPLEX, download and install it fromIBM.  To setup the Python API of CPLEX, follow the instructions fromhere.DocumentationSee the documentation in thenotebook.Issues, questions, bugs, etc.Please click on "issues" at the top andcreate a new issue. All issues are responded to promptly.ContactBishwamittra Ghosh(bghosh@u.nus.edu)Citations@inproceedings{GMM20,author={Ghosh, Bishwamittra and Malioutov, Dmitry and  Meel, Kuldeep S.},title={Classification Rules in Relaxed Logical Form},booktitle={Proc. of ECAI},year={2020},}@inproceedings{GM19,author={Ghosh, Bishwamittra and  Meel, Kuldeep S.},title={{IMLI}: An Incremental Framework for MaxSAT-Based Learning of Interpretable Classification Rules},booktitle={Proc. of AIES},year={2019},}@inproceedings{MM18,author={Malioutov, Dmitry and  Meel, Kuldeep S.},title={{MLIC}: A MaxSAT-Based framework for learning interpretable classification rules},booktitle={Proceedings of International Conference on Constraint Programming (CP)},month={08},year={2018},}Old VersionsThe old version, MLIC (non-incremental framework) is available under the branch "MLIC". Please read the README of the old release to know how to compile the code.
Package: pyrulo
Python runtime loader (pyrulo)Python library to import classes from script files at runtime.Installationpip install pyruloUsageLets say we have the following scripts# base.py scriptclassBase:pass# a.py scriptfrombaseimportBaseclassA(Base):pass# b.py scriptfrombaseimportBaseclassB(Base):pass# c.py scriptfrombaseimportBaseclassC(Base):passWe can use pyrulo to retrieve all classes that inherits fromBasein a given script path or folderfrombaseimportBasefrompyruloimportclass_importsscript_path="a.py"folder_path="."script_classes=class_imports.import_classes_in_file(script_path,Base)# returns [A]folder_classes=class_imports.import_classes_in_dir(folder_path,Base)# returns [A, B, C]
Package: pyrulo-qt
Pyrulo-qtQt widgets to load classes at runtime withpyrulopython package.Installationpip install pyrulo-qtUsageLets say we have the following scripts# base.py scriptclassBase:pass# a.py scriptfrombaseimportBaseclassA(Base):def__init__(self):self._a=42def__str__(self):return"A"# b.py scriptfrombaseimportBaseclassB(Base):def__init__(self):self._b="dwqwdqw"def__str__(self):return"B"# c.py scriptfrombaseimportBaseclassC(Base):def__init__(self):self._c=0.2self._d=Nonedef__str__(self):return"C"ConfigurableSelectorQt widget can be used to select from the child classes of a base class and return an instance of the selected class.frombaseimportBasefrompyruloimportclass_importsfrompyrulo_qt.ui_configurable_selectorimportConfigurableSelectorfolder_dir="."class_imports.import_classes_in_dir(folder_dir,Base)# first import the classes with pyruloselector=ConfigurableSelector(base_class=Base)# Qt widget to select the child classesThe resulting widget looks like thisPyrulo-qt usespropsettings-qtto render the object if it haspropsettings's Settings registered.
Package: pyrundeck
Rundeck REST API clientThis is a Python REST API client for Rundeck 2.6+ExamplefrompyrundeckimportRundeckrundeck=Rundeck('http://rundeck-url',token='sometoken',api_version=32,# this is not mandatory, it defaults to 18)run=rundeck.run_job(RUNDECK_JOB_ID,options={'option1':'foo'})running_jobs=rundeck.get_executions_for_job(job_id=RUNDECK_JOB_ID,status='running')forjobinrunning_jobs['executions']:print("%sis running"%job['id'])A token can be generated in the 'profile' page of Rundeck. Alternatively you
can login with a username and password.Example using the file upload optionfrompyrundeckimportrundeckrd=Rundeck(rundeck_url,username=username,password=password,verify=False,api_version=19# Required for file upload option)# Use the file_key returned in the response to reference the file when running a job# Per documentation at https://docs.rundeck.com/docs/api/rundeck-api.html#upload-a-file-for-a-job-optionresponse=rd.upload_file(RUNDECK_JOB_ID,OPTION_NAME,FILE_NAME_STRING_OR_IOFILEWRAPPER)file_key=response['options'][OPTION_NAME]rd.run_job(RUNDECK_JOB_ID,options={OPTION_NAME:file_key})See alsohttps://github.com/marklap/rundeckrunLICENSEGPL3
Package: pyrunit
PyRunitSimple shortcut to manage runit service.Install$ pip install pyrunitUsage$ pyrunit -h

██████╗ ██╗   ██╗██████╗ ██╗   ██╗███╗   ██╗██╗████████╗
██╔══██╗╚██╗ ██╔╝██╔══██╗██║   ██║████╗  ██║██║╚══██╔══╝
██████╔╝ ╚████╔╝ ██████╔╝██║   ██║██╔██╗ ██║██║   ██║
██╔═══╝   ╚██╔╝  ██╔══██╗██║   ██║██║╚██╗██║██║   ██║
██║        ██║   ██║  ██║╚██████╔╝██║ ╚████║██║   ██║
╚═╝        ╚═╝   ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═══╝╚═╝   ╚═╝ v.0.1.0
Simple shortcut to manage runit service.


Options:
  -h, --help               Display this message
  -l, --list-service       Enable service list
  -la, --list-all-service  List a service
  -c, --check-status       Check service status
  -r, --run                Run service
  -s, --stop               Stop service
  -R, --restart            Restart service
  -e, --enable             Enable service
  -d, --disable            Disable service