Saravanan666/pypi-org huggingface dataset:
Package: pyRSKtools
pyRSKtools is RBR’s open source Python toolbox for reading, post-processing, visualizing, and exporting RBR logger data.
Users may plot data as a time series or as depth profiles using tailored plotting utilities. Time-depth heat maps can be
plotted easily to visualize transects or moored profiler data. A full suite of data post-processing functionality, such as
methods to match sensor time constants and bin average, are available to enhance data quality.For more information, please see our pyRSKtoolsdocumentation.
Package: pyrsl
pyrsl is an interpreter for a language called RSL (Rule Specification Language).
RSL is commonly used as a template language to express transformations from aBridgePointmodel into a textual representation,
e.g. when writing model compilers or when generating html documentation from a
model.DocumentationInformation on how to install and use pyrsl is available atRead the Docs.Reporting bugsIf you encounter problems with pyrsl, pleasefile a github
issue. If you plan on
sending pull request which affect more than a few lines of code, please file an
issue before you start to work on you changes. This will allow us to discuss the
solution properly before you commit time and effort.Licensepyrsl is licensed under the GPLv3, see LICENSE for more information.
Package: pyrsmi
pyrsmiPython Bindings for System Management Library for AMD GPUspyrsmiis a python package of rocm-smi-lib, for providing a limited features of ROCm System Management Library for assisting Python development involving AMD GPUs.It is based on (rocm-smi-lib)[https://github.com/RadeonOpenCompute/rocm_smi_lib], so its scope of support should be similar to that of the latter.Requirementspyrsmiruns on latest ROCm-supported Instinct MI-series GPU systems. Scope of tested systems is limited; please create tickets for any issues encountered.How to install from sourceClone this repo:git clone https://github.com/AMD-AI/pyrsmi.gitcd pyrsmipython -m pip install -e .pyrsmican be installed as PyPA-compatible Python package.How to install Python packagesInstallbuildpackage:pip install buildAt the top directory (where setup.py is), run:python -m buildThen by default packages (both sdist and wheel) will be built underdistdirectory.The packages can be either installed withpip install, or be uploaded to PyPI (release or test) repo, or an artifactory of your choice. The latter can be installed liked beflow.How to install from PyPINOTE:Until the package becomes available at the official PyPI repo, the package is available fromtest PyPIsite:python -m pip install --index-url https://test.pypi.org/simple pyrsmiWhen the release version become available at pypi.org site, the package can be installed with :python -m pip install pyrsmiHow to usepyrsmiIn python:frompyrsmiimportrocmlrocml.smi_initialize()print(rocml.smi_get_device_count())rocml.smi_shutdown()ExamplesExamples directory contains a number of code snippets showing how to use the package.It also contains an example showing how to use pyrsmi to create a web-based system monitoring tool that displays various dashboards of system status, including memory, CPU/GPU utilization and process names.List of API functionsFunctionDescriptionArgumentReturn TypeNotesmi_initializeinitialize rsmiNoneNonesmi_shutdownshut down rsmiNoneNonesmi_get_versionget version of rsmiNonestr'major.minor.patch'smi_get_kernel_versionget version of ROCm kernel driverNonestrsmi_get_device_countget number of GPU devicesNoneintnum of devicessmi_get_device_nameget name of GPU devicesNonestrsmi_get_device_unique_idget unique id of GPU devicesNoneint64bit integersmi_get_device_utilizationget device utilization in % busydevice_idintsmi_get_device_memory_usedget device memory usagedevice_idintin Bytes, type 'VRAM'smi_get_device_memory_totalget device's total memorydevice_idintin Bytes, type 'VRAM'smi_get_device_pcie_bandwidthget device's estimated PCIe bandwidthdevice_idfloatin Bytes/secsmi_get_device_compute_processget list of pid of processes running on devdevice_idList[int]smi_get_device_average_powerget device's average powerdevice_idfloatpower in Watt
Package: pyrs-resource
Project homepage:https://github.com/palankai/pyrs-resourceDocumentation:http://pyrs-resource.readthedocs.orgIssue tracking:https://github.com/palankai/pyrs-resource/issuesWhat is this package forIn the python world there are many RESTFul framework. Some of them based on
Django others are based on Flask. I’ve tried some but I had the feeling, I want
to learn one, the use with Django or Flask or even Odoo. And I don’t mention
sometimes I found them not flexible enough. So, I’ve decided write my own
independent framework what anybody can use in at least the mentioned 3
different worlds.Nutshell (notice that, it would be the achivement)frompyrsimportresourcefrompyrs.resourceimportGETclassUserResouce:@GET(response=ArrayOfUserSchema)defget_users(self):returnUser.objects.all()@PUT(path='/<int:user_id>',response=UserSchema,request=UserSchema)defupdate_user(self,user_id,body):user=get_object_or_404(User,pk=user_id)user.name=body['name']user.email=body['email']user.save()returnuserapp=resource.Application()app.add('/user',UserResouce)In this example I’ve shown Django (like) example.
The schema is based onpyrs.schema.
Even if I tend to use that framework, you would be able to use any other.FeaturesUsing simple classes or even functions (no inheritance)Wrapped error handling, errors can be serialisedExtensible APIWorks with python 2.7, 3.3, 3.4 (tested against these versions)Hooks for extending the dispatching processInstallation$pipinstallpyrs-resourceDependenciesSeerequirements.txtfor details, but mainly depends onWerkzeug.
I’m using that project routing capabilities. Also depends onpyrs.schemaas
I mentioned in nutshell section.Important caveatsThis code right now really in beta state. I plan to release soon as possible
a completely working code, but right now it’s just shaping.The ecosystemThis work is part ofpyrs framework.
The complete framework follow the same intention to implement flexible
solution.ContributionI really welcome any comments!
I would be happy if you fork my code or create pull requests.
I’ve already really strong opinions what I want to achieve and how, though any
help would be welcomed.Feel free drop a message to me!
Package: pyrssa
pyrssa: Python package for Singular Spectrum AnalysisThis package contains methods and tools for Singular Spectrum Analysis including decomposition,
forecasting and gap-filling for univariate and multivariate time series.
General description of the methods with many examples can be found in the book
Golyandina (2018, <doi:10.1007/978-3-662-57380-8>).pyrssa is a wrapper overRssa packagemade for R language, having its own visualization methods and data structures.InstallTo install the package, make sure you have anyR compilerinstalled.Package installer for the latest released version is available at thePython Package Index (PyPI).
To install the package, just run the following command:pipinstallpyrssaInstall requires rpy2, numpy, pandas and matplotlib packages of any version (preferable newest ones).
These packages will be installed automatically during the default installation.DocumentationDocumentation for pyrssa package is availablehere.ExamplesPackage usage examples are available inexamples folder.Original examples with identical numbering are availablehere.Source codeSource code of pyrssa package is available inpyrssa folder.
Package: pyrs-schema
Project homepage:https://github.com/palankai/pyrs-schemaDocumentation:http://pyrs-schema.readthedocs.org/Issues:https://github.com/palankai/pyrs-schema/issuesWhat is this package forI’ve used different python frameworks for data serialisation many times. Mostly
when I had to implement an API for my work. I felt many times those frameworks
did good job but not extensible enough.
Also writing easily an API which is satisfy every expectations of projects,
without coupled restrictions sometimes really hard.NutshellfrompyrsimportschemaclassUserSchema(schema.Object):version=schema.Version(version='1.0')username=schema.StringField(required=True)password=schema.StringField(required=True,tags=['writeonly'])email=schema.EmailField(title='Registered email address')writer=schema.JSONWriter(UserSchema)jsonstring=writer.write(data)# The validation also happenschemawriter=schema.JSONSchemaWriter()jsonschemastr=writer.write(UserSchema)FeaturesEasy schema definitionSchema validationDecoupled serialisation, validationExtensible APIInstallationThe code is tested with python 2.7, 3.3, 3.4.$pipinstallpyrs-schemaDependenciesSee requirements.txt. But The goal is less dependency as possible. The main
dependency is the pythonjsonchemaThe validation is using that package.Notice that even it’s a JSON schema validator this work still can be used
for any (compatible) schema validation.Important caveatsThis code is in beta version. I working hard on write stable as possible API in
the first place but while this code in 0.x version you should expect some major
modification on the API.The ecosystemThis work is part ofpyrs framework.
The complete framework follow the same intention to implement flexible
solution.ContributionI really welcome any comments!
I would be happy if you fork my code or create pull requests.
I’ve already really strong opinions what I want to achieve and how, though any
help would be welcomed.Feel free drop a message to me!
Package: pyrsslocal
.. _l-README:README======.. only:: html.. image:: https://travis-ci.org/sdpython/pyrsslocal.svg?branch=master:target: https://travis-ci.org/sdpython/pyrsslocal:alt: Build status.. image:: https://ci.appveyor.com/api/projects/status/0cc1qtlccq8k7hdx?svg=true:target: https://ci.appveyor.com/project/sdpython/pyrsslocal:alt: Build Status Windows.. image:: https://circleci.com/gh/sdpython/pyrsslocal/tree/master.svg?style=svg:target: https://circleci.com/gh/sdpython/pyrsslocal/tree/master.. image:: https://badge.fury.io/py/pyrsslocal.svg:target: http://badge.fury.io/py/pyrsslocal.. image:: http://img.shields.io/github/issues/sdpython/pyrsslocal.png:alt: GitHub Issues:target: https://github.com/sdpython/pyrsslocal/issues.. image:: https://img.shields.io/badge/license-MIT-blue.svg:alt: MIT License:target: http://opensource.org/licenses/MIT.. image:: https://requires.io/github/sdpython/pyrsslocal/requirements.svg?branch=master:target: https://requires.io/github/sdpython/pyrsslocal/requirements/?branch=master:alt: Requirements Status.. image:: https://codecov.io/github/sdpython/pyrsslocal/coverage.svg?branch=master:target: https://codecov.io/github/sdpython/pyrsslocal?branch=master**Links:*** `GitHub/pyrsslocal <https://github.com/sdpython/pyrsslocal/>`_* `documentation <http://www.xavierdupre.fr/app/pyrsslocal/helpsphinx/index.html>`_* `Blog <http://www.xavierdupre.fr/app/pyrsslocal/helpsphinx/blog/main_0000.html#ap-main-0>`_What is it?-----------This extension proposes a way to download new posts from blogsand to navigate through them with a couple of HTML pagesmanaged by a local python server using a SQLite database:::from pyrsslocal import rss_update_run_serverfLOG (OutputPrint = True)xml_blogs = "subscriptions.xml"dbfile = "rss_posts.db3"rss_update_run_server(dbfile, xml_blogs)The previous example takes a dump of blogs url coming from the former Google Reader (see below),downloads RSS streams, loads everything into a database (SQLlite format),and opens a local web application to read them, mark them, or search their titles.The XML file which describes the blogs looks like this::<?xml version="1.0" encoding="UTF-8"?><opml version="1.0"><body><!--<outline text=""title=""type="rss"xmlUrl=""htmlUrl=""/>--><outline text="XD blog"title="XD blog"type="rss"xmlUrl="http://www.xavierdupre.fr/blog/xdbrss.xml"htmlUrl="http://www.xavierdupre.fr/blog/xd_blog.html" /></body></opml>.. only:: html.. image:: https://github.com/sdpython/pyrsslocal/blob/master/_doc/sphinxdoc/source/page1.png.. only:: latex.. image:: page1.png
Package: pyrst
# pyrstThe Python wrapper to the Birst API.- No token repetition: once you obtain a token, Pyrst will manage it for youuntil you tell it to stop.- Super easy querying- Even easier output using handlers# How to installUntil we release this project to PyPI, the best way to install is:```git clone --recursive https://github.com/rbonedata/pyrst.gitpython setup.py install```On OS X and Linux, unless you're installing in a venv, you might need to runthe install scripts as a privileged user (`sudo`).# How to use## General usage### Importing the client and create a client objectYou can store configuration in a config file - a template of the config file isunder the `pyrst` folder. You can name the config file anything you want. Tokeep the password somewhat safe, use `base64` encoding and set the`password_is_encrypted` flag to `True`.```pythonfrom pyrst.client import BirstClientclient = BirstClient(configfile='pyrst/config.yaml')```Alternatively, you can manually create the client:```pythonfrom pyrst.client import BirstClientclient = BirstClient(user = "MyUsername",password = "MyPassword")```### Login```pythonclient.login()``````You have been successfully logged in, DOMAIN\Username.Your token is: 9b4081fa4b9f3d8d15f77271b7e83902```### LogoutOnce you're done, simply use `client.logout()` to log out.## QueryingTo query a space, use `executequery()`. Before querying, it makes sense toimport the handler that you want to use to display the data, if any:```pythonfrom pyrst.handlers import DfHandler```Now you can use it in your query:```pythontable = executequery(space = "12345678-abcd-9012-efab-345678901234",query = "SELECT [# sales_total] from [ALL]",handler = DfHandler)```# Development roadmapThe current functionality doesn't do much beyond querying, but we'll besteadily developing `Pyrst`'s capabilities. In particular, multipart queryingand more handlers will be implemented soon.Current priorities are:- better handlers,- better query handling,- JSON output,- tests,- documentation,- more functionality.# CreditsWritten by Chris von Csefalvay with the generous support of RB.
Package: pyrsync
pyrsync is a Python module which implements the [rsync algorithm] [1],
written in pure Python. Itis nota wrapper for rsync, but a set of
functions which apply full rsync functionality through Python.The original rsync specification calls for the use of an MD5 hash, which
the developers of this module considers to be outdated, and thus all
occurences of MD5 have been replaced with SHA256. Personally, I would
opt for using SHA512, but this would double the storage size for hash
table databases. SHA256 is sufficient to meet standard security
requirements for verification processes as of this release, although,
eventually, added functionality for the user/developer to choose between
various hashes should be considered for further releases.The majority of the code for this module is taken from [Eric Pruitt’s
post at ActiveState] [1]. It was orginally licensed under an [MIT license]
[2], and this license has been kept wthout modifications.## InstallationIf you have [setuptools] [3] installed, simply do:$ sudo python setup.py installIf you do not have setuptools, the setup.py script will detect this and
default to using the python builtin distutils. To install using distutils,
the installation process is the same as documented above for setuptools.## UseAn example use case for this module:# On the system containing the file that needs to be patched
>>> import pyrsync
>>> unpatched = open(“unpatched.file”, “rb”)
>>> hashes = pyrsync.blockchecksums(unpatched)# On the remote system after having received hashes
>>> import pyrsync
>>> patchedfile = open(“patched.file”, “rb”)
>>> delta = pyrsync.rsyncdelta(patchedfile, hashes)# System with the unpatched file after receiving delta
>>> unpatched.seek(0)
>>> save_to = open(“locally-patched.file”, “wb”)
>>> pyrsync.patchstream(unpatched, save_to, delta)[1]:http://samba.anu.edu.au/rsync/“Andrew Tridgell and Paul Mackerras. The rsync algorithm. Technical Report TR-CS-96-05, Canberra 0200 ACT, Australia, 1996.”
[2]:https://code.activestate.com/recipes/577518-rsync-algorithm/“Rsync Algorithm (Python Recipe)”
[3]:http://www.opensource.org/licenses/mit-license.php“OSI MIT License”
Package: pyrsync2
This is a fork of thepyrsyncpackage with some changes such as:The functionsblockchecksumsandrsyncdeltaare now generators
which make it easier to send through the networkSome unittests are addedImplementation changes (uses bytearray instead of a deque, faster hash lookup etc.)The block size is no longer in the delta itself, it needs to be passed
to the patchstream functionDoes not use try/except for programming logicIt’s a Python 3 only package!pyrsync2 is a Python module which implements the [rsync algorithm] [1],
written in pure Python. Itis nota wrapper for rsync, but a set of
functions which apply full rsync functionality through Python.The majority of the code for this module is taken from [Eric Pruitt’s
post at ActiveState] [2]. It was orginally licensed under an [MIT license]
[3], and this license has been kept wthout modifications.## InstallationYou need to have PIP:$ sudo pip install pyrsync2## UseAn example use case for this module:# On the system containing the file that needs to be patched
>>> import pyrsync2
>>> unpatched = open(“unpatched.file”, “rb”)
>>> hashes = pyrsync2.blockchecksums(unpatched)# On the remote system after having received hashes
>>> import pyrsync2
>>> patchedfile = open(“patched.file”, “rb”)
>>> delta = pyrsync2.rsyncdelta(patchedfile, hashes)# System with the unpatched file after receiving delta
>>> unpatched.seek(0)
>>> save_to = open(“locally-patched.file”, “wb”)
>>> pyrsync2.patchstream(unpatched, save_to, delta)[1]:http://samba.anu.edu.au/rsync/“Andrew Tridgell and Paul Mackerras. The rsync algorithm. Technical Report TR-CS-96-05, Canberra 0200 ACT, Australia, 1996.”
[2]:https://code.activestate.com/recipes/577518-rsync-algorithm/“Rsync Algorithm (Python Recipe)”
[3]:http://www.opensource.org/licenses/mit-license.php“OSI MIT License”
Package: pyrtfolio
pyrtfolio - Python package to generate stock portfoliosIntroductionpyrtfoliois a Python package created based oninvestpydata which
aims to create custom stock portfolios. In investment, a portfolio is a grouping of financial assets as well as their
fund counterparts; note that a portfolio can also consist of non-publicly tradable securities. So on,investpydata
will be used to create custom portfolios from the data provided by the user such as the asset symbol, purchase date,
number of bought shares, etc.InstallationIn order to get this package working you will need to installpyrtfoliovia pip by typing the following
command in the terminal:$ pip install pyrtfolio==0.4Every package used is listed inrequirements.txtfile, which can also be installed via pip:$ pip install -r requirements.txtUsageCurrently,pyrtfoliocan just be used for generating stock portfolios, so on, an example is proposed below
which creates a new portfolio and adds some equities/stocks. Note that the returned portfolio is a :obj:pandas.DataFrame,
but the package is intended to generate either a CVS or a XLSX file.frompyrtfolio.StockPortfolioimportStockPortfolioportfolio=StockPortfolio()portfolio.add_stock(stock_symbol='BBVA',stock_country='spain',purchase_date='04/01/2018',num_of_shares=2,cost_per_share=7.2)portfolio.add_stock(stock_aymbol='ELE',stock_country='spain',purchase_date='13/06/2019',num_of_shares=15,cost_per_share=23.8)print(portfolio.data)stock_symbol stock_name stock_country stock_currency purchase_date  num_of_shares  ...  current_price  gross_current_value  total_dividends  net_current_value  total_gain_loss  total_gain_loss_percentage
0         BBVA       BBVA         spain            EUR    04/01/2018              2  ...          4.716                9.432           5.8788            15.3108           0.9108                    0.06325%
1          ELE     Endesa         spain            EUR    13/06/2019             15  ...         23.500              352.500         326.0250           678.5250         321.5250         0.9006302521008402%ContributeAs this is an open source project it is open to contributions, bug reports, bug fixes, documentation improvements,
enhancements and ideas.Also there is an open tab ofissueswhere anyone can
contribute opening new issues if needed or navigate through them in order to solve them or contribute to its solving.
Remember that issues are not threads to describe multiple issues, this does not mean that issues can't be discussed,
but if new issues are reported, a new issue should be open so to keep a structured project management.
Package: pyrti
==============================================
RTIntegration (rti) - Python interface to Request Tracker API REST 2.0Python implementation of REST API described here:https://rt-wiki.bestpractical.com/wiki/RESTNote:Please note that starting with the major release of v0.0.4, this library requires a Python version >= 3.5.REQUIREMENTSThis module uses following Python modules:requests (http://docs.python-requests.org/)INSTALLATIONInstall the package using::pip install rtiLICENCEThis module is distributed under the terms of ... Copy of the GNU
General Public License is distributed along with this module.USAGEAn example is worth a thousand words::>>> from pyrti import rti
>>> rti.teste()Get the last important updates from a specific queue that have been updated recently::>>> import rtiOFFICIAL SITEProject site and issue tracking:https://github.com/infopontes/rtiGit repository:
git://github.com/infopontes/rti
Package: pyrtid
pyRTIDThe Python Reactive Transport Inversion Demonstratorpython Reactive Transport Inversion is a reactive transport inversion demonstrator written in Python.Free software: MIT licenseDocumentation:https://pyrtid.readthedocs.io.Changelog0.1.0 (2023-08-04)First release on PyPI.MIT LicenseCopyright (c) 2023 Antoine COLLETPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.