Saravanan666/pypi-org huggingface dataset:
Package: pyRVtest
This code was written to perform the procedure for testing firm conduct developed in“Testing Firm Conduct”by Marco Duarte, Lorenzo Magnolfi, Mikkel Sølvsten, and Christopher Sullivan. It builds on the PyBLP source code (seeConlon and Gortmaker (2020)) - to do so.The code implements the following features:ComputesRivers and Vuong (2002)(RV) test statistics to test a menu of two or more models of firm conduct allowing for the possibility that firms or consumers face per unit or ad-valorem taxes.Implements the RV test using the variance estimator ofDuarte, Magnolfi, Sølvsten, and Sullivan (2023), including options to adjust for demand estimation error and clusteringComputes the effective F-statistic proposed inDuarte, Magnolfi, Sølvsten, and Sullivan (2023)to diagnose instrument strength with respect to worst-case size and best-case power of the test, and reports appropriate critical valuesReportsHansen, Lunde, and Nason (2011)MCS p-values for testing more than two modelsCompatible with PyBLPConlon and Gortmaker (2020), so that demand can be estimated with PyBLP, and the estimates are an input to the test for conductFor a full list of references, see the references inDuarte, Magnolfi, Sølvsten, and Sullivan (2023).InstallFirst, you will need to download and install python, which you can do from thislink.You will also need to make sure that you have all package dependencies installed.To install the pyRVtest package, use pip:pip install pyRVtestThis should automatically install the python packages on which pyRVtest depends: numpy, pandas, statsmodels, pyblpTo update to a newer version of the package use:pip install --upgrade pyRVtestUsing the packageFor a detailed tutorial about how to set up and run the testing procedure, seeTutorial.Citing the packageWhen using the package, please include the following citation:Duarte, M., L. Magnolfi, M. Sølvsten, C. Sullivan, and A. Tarascina
(2023): “pyRVtest: A Python package for testing firm conduct,”https://github.com/anyatarascina/pyRVtest.@misc{
pyrvtest,
author={Marco Duarte and Lorenzo Magnolfi and Mikkel S{o}lvsten and Christopher Sullivan and Anya Tarascina},
title={texttt{pyRVtest}: A Python package for testing firm conduct},
howpublished={url{https://github.com/anyatarascina/pyRVtest}},
year={2023}Bugs and RequestsPlease use theGitHub issue trackerto submit bugs or to request features.
Package: pyrws
PyRWSThis is aPython 3.8+package that provides functionality to create Rigid Waist Shift Knobs to be used for for IR local coupling correction in the LHC commissioning 2022.
A bit more information can be found on the OMC website's page forthe procedure.See theAPI documentationfor details.InstallingInstallation is easily done viapip:python-mpipinstallpyrwsExample UsageThe package is meant to be used at the command line.python-mpyrws\--sequenceacc-models-lhc/lhc.seq\--opticsfileacc-models-lhc/operation/optics/R2022a_A30cmC30cmA10mL200cm.madx\--ip1\--waist_shift_setting1\--outputdir30cm\--energy6800\--show_plotsno\Individual parts of the package can be imported to be used in a Python program, or as utilities to load and inspect the outputs of some knob generation.
For details, see the API documentation website.LicenseThis project is licensed under theMIT License- see theLICENSEfile for details.
Package: pyrx-ats
pyrx with error messages====Python implementation of the [Rx schema and validation system](http://rx.codesimply.com/)Fork of [pyrx](https://github.com/uniphil/pyrx) with added error messages. Most of the readme is also taken from there, just with updated usage instuctions.Forked------Forked from the main [rx github repo](https://github.com/rjbs/rx) Nov 25 '13because the python implementation deserves its own place and testing and stuff.The copyright line of the license for the rx repository reads:The contents of the Rx repository are copyright (C) 2008, Ricardo SIGNES.The license itself is GPL2: https://github.com/rjbs/rx/blob/master/LICENSERequirements------------* No external dependencies* Python2.7Usage-----```pythonimport pyrxrx = pyrx.Factory({"register_core_types": True})schema_src = {"type": "//rec","required": {"a": "//str","b": "//int",},"optional": {"c": "//bool",},}schema = rx.make_schema(schema_src)schema.check({"a": "a string", "b": 2}).valid  # returns Trueschema.check({"a": "a string", "b": "another string"}).valid  # returns Falseschema.check({"a": "a string", "b": "another string"}).message  # returns an error message```Testing-------py.test test/
Package: pyrxnlp
PyRXNLP - Text-mining tools for building intelligent data-driven applications.Features:Topics extractionSentence clustering - with cluster labelsOpinosis opinion summarizationGetting Started:Install pyrxnlppip install pyrxnlpIf you are using the cloud APIs, get yourAPI KeyStart coding. Here’s an example ofClustering Sentencesapikey="your_api_key"# Cluster from a list of sentenceslist_of_sentences=["the sky is so high","the sky is blue","fly high into the sky.","the trees are really tall","I love the trees","trees make me happy","the sun is shining really bright"]# initialize sentence clusteringclustering=ClusterSentences(apikey)# generate clusters and printclusters=clustering.cluster_from_list(list_of_sentences)ifclustersisnotNone:print("------------------------------")print("Clusters from a list of sentences")print("------------------------------")clustering.print_clusters(clusters)You should see output similar to:------------------------------
Clusters from a list of sentences
------------------------------
Cluster label:  ['sky']
Cluster scores:  6.571693476432014
Cluster sentences:  ['fly high into the sky.', 'the sky is so high', 'the sky is blue']
===
Cluster label:  ['tree']
Cluster scores:  6.571693476432014
Cluster sentences:  ['I love the trees', 'trees make me happy', 'the trees are really tall']
===
Cluster label:  ['sentences_with_no_cluster_membership']
Cluster scores:  0.0
Cluster sentences:  ['0006:the sun is shining really bright']
===
Package: pyrympro
pyrymproA python library to communitcate withRead Your Meter Pro.InstallationYou can install pyvolumio fromPyPI:pip3 install pyrymproPython 3.7 and above are supported.How to usefrompyrymproimportRymProrym=RymPro()# you can also pass in your own sessionrym=RymPro(session)# device_id can be anything you chooseawaitrym.login("<email>","<password>","<device_id>")info=awaitrym.account_info()meter_reads=awaitrym.last_read()...
Package: py-RYNO
py-RYNO LibraryA stable userbot base library, based on Telethon.Installationpip install py-RYNOUsage=> Create folders namedplugins,addons,assistantandresources.=> Add your plugins in thepluginsfolder and others accordingly.=> Create a.envfile withAPI_ID,API_HASH,SESSION,BOT_TOKEN,BOT_USERNAME,REDIS_URI,REDIS_PASSWORD&LOG_CHANNELas mandatory environment variables. Check.env.samplefor more details.=> Runpython -m pyRYNOto start the bot.Creating pluginsTo work everywhere@ultroid_cmd(pattern="start",)asyncdef_(e):awaiteor(e,"RYNO Started")To work only in groups@ultroid_cmd(pattern="start",groups_only=True,)asyncdef_(e):awaiteor(e,"RYNO Started")Assistant Plugins 👇@asst_cmd("start")asyncdef_(e):awaite.reply("RYNO Started")Made with 💕 by@OFFICIALRYNO.CreditsLonamiforTelethon
Package: pyryver
pyryverpyryveris an unofficial async Python library for Ryver.
It provides a simple and sane way of automating tasks on Ryver and building bots, without the need to set up Hubot or Botkit.pyryveris still in major version 0, so breaking changes may be introduced any time. Please check changelogs carefully.However, we will attempt to make it as backwards-compatible as possible (excluding version 0.1.0).v0.4 is now out of beta!Minor breaking changes were introduced since 0.3.2! See theRelease Descriptionfor the changelog.Special thanks to@mincrmatt12!Installationpyryveris now on PyPI! You can install it withpython3 -m pip install --user pyryver.
You can also find pre-releases onTestPyPI.
More instructions can be found atRead the Docs.pyryverrequires Python >= 3.6 and theaiohttplibrary.Supported Actionspyryverhas near complete support for every common Ryver action.
This includes things like sending messages, uploading files, managing topics & tasks, creating forums/teams, etc.pyryvercurrently does not support editing user and organization settings.
Forum/team settings, however, are supported.For a complete list of everything the API contains, head over tothe docs.
If there's something missing from the API that you'd like to see, create an issue and we'll get to it ASAP.Documentation and ExamplesDocumentation and examples can be found onRead the Docs.If you want to see an example ofpyryverbeing used in a real project, check outLaTeX Bot.Here's an example demonstrating how to send a message (v0.4.0 API):importpyryverimportasyncioasyncdefmain():# Connect to ryverasyncwithpyryver.Ryver("my_organization","my_username","my_password")asryver:# Load all chatsawaitryver.load_chats()# Find users and forums/teamsfriend=ryver.get_user(username="my_friend")forum_or_team=ryver.get_groupchat(name="My Forum or Team")# Send a messageawaitfriend.send_message("Hello, friend!")awaitforum_or_team.send_message("Hello, forum or team!")asyncio.get_event_loop().run_until_complete(main())Here's an example demonstrating how to get your bot to respond in real-time (v0.4.0 API):importpyryverimportasyncioasyncdefmain():# Connect to ryverasyncwithpyryver.Ryver("my_organization","my_username","my_password")asryver:# Load all chatsawaitryver.load_chats()# Get the bot's userme=ryver.get_user(username="my_username")# Connect to the websocket interface# Enable auto-reconnectsasyncwithryver.get_live_session(auto_reconnect=True)assession:@session.on_chatasyncdefon_message(msg:pyryver.WSChatMessageData):print(msg.text)# print out the message's text# Reply to the message# Make sure to check that the message isn't from the bot itselfifmsg.from_jid!=me.get_jid()andmsg.text=="hello":# Send a message to the same chat# This could be either a user (for a private message) or a forum/teamchat=ryver.get_chat(jid=msg.to_jid)awaitchat.send_message("hi")# run until session.terminate() is calledawaitsession.run_forever()asyncio.get_event_loop().run_until_complete(main())
Package: pys2index
pys2indexPython / NumPy compatible geographical index based ons2geometry.This project doesn't provide Python wrappers for the wholes2geometrylibrary.
Instead, it aims to provide some index wrappers with an API similar toscipy.spatial.cKDTree.Build DependenciesC++17 compilerCMakes2geometryscikit-build-corextensor-pythonpybind11PythonNumPyInstallationUsing condapys2index can be installed usingconda(ormamba):$condainstallpys2index-cconda-forgeFrom sourceFirst, clone this repository:$gitclonehttps://github.com/benbovy/pys2index
$cdpys2indexYou can install all the dependencies using conda (or mamba):$condainstallpythoncxx-compilernumpys2geometrypybind11xtensor-pythoncmakescikit-build-core-cconda-forgeBuild and install this library$python-mpipinstall.--no-build-isolationUsageIn[1]:importnumpyasnpIn[2]:frompys2indeximportS2PointIndexIn[3]:latlon_points=np.array([[40.0,15.0],...:[-20.0,53.0],...:[81.0,153.0]])...:In[4]:index=S2PointIndex(latlon_points)In[5]:query_points=np.array([[-10.0,60.0],...:[45.0,-20.0],...:[75.0,122.0]])...:In[6]:distances,positions=index.query(query_points)In[7]:distancesOut[7]:array([12.06534671,26.07312392,8.60671311])In[8]:positionsOut[8]:array([1,0,2])In[9]:index.get_cell_ids()Out[9]:array([1386017682036854979,2415595305706115691,6525033740530229539],dtype=uint64)Running the testsRunning the tests requirespytest(it is also available on conda-forge).$pytest.
Package: pys2let
S2LET: Fast wavelet transforms on the sphereDESCRIPTIONS2LET provides functionality to perform fast and exact scale-discretised
wavelet transforms on the sphere.INSTALLATIONThe python package,pys2let, is available onpypiand can be installed with:pipinstallpys2letAlternatively, it can be installed from a local clone of the repository for development purposes bypipinstall-e.[dev]The C package can be installed withCMakeandconan:Both can be installed using pip:pipinstall"conan<1"cmakeThenS2LETcan be compiled with:gitclonehttps://github.com/astro-informatics/s2let.git
mkdirs2let/build&&cds2let/build
cmake-DCMAKE_BUILD_TYPE=Release-DCMAKE_INSTALL_PREFIX=/usr/local-Dconan_deps=ON-Dcfitsio=ON..
make
makeinstallThe above will also download all necessary dependencies.Instructions for installing other languages can be foundhere.DOCUMENTATIONFurther documentation is availablehere.Usage for the python package is also given in the package docstring.REFERENCINGIf you useS2LETfor work that results in publication, please referencehttp://github.com/astro-informatics/s2letand cite the relevant academic paper(s):Y. Wiaux, J. D. McEwen,  P. Vandergheynst, O. Blanc,Exact reconstruction with directional wavelets on the sphere, Mon. Not. Roy. Astron. Soc., 388(2):770-788, 2008. (ArXiv)
|DOI)B. Leistedt, J. D. McEwen, P. Vandergheynst and Y. Wiaux,S2LET: A code to perform fast wavelet analysis on the sphere, Astronomy & Astrophysics, 558(A128):1-9, 2013 (http://arxiv.org/abs/1211.1680">ArXiv|DOIJ. D. McEwen,  B. Leistedt, M. Büttner, H. V. Peiris, Y. Wiaux,Directional spin wavelets on the sphere, IEEE Trans. Signal Proc., submitted, 2015 (ArXivJ. D. McEwen, M. Price,Ridgelet transform on the sphere, 27th European Signal Processing Conference (EUSIPCO), 2019 (ArXiv|DOI)J. Y. H. Chan, B. Leistedt, T. D. Kitching, J. D. McEwen,Second-generation curvelets on the sphere, IEEE Trans. Signal Proc., 65(1):5-14, 2017 (ArXiv|DOI)J. D. McEwen,  C. Durastanti, Y. Wiaux,Localisation of directional scale-discretised wavelets on the sphere, Applied Comput. Harm. Anal., 44(1), 59-88, 2018 (ArXiv|DOI)You may also like to consider citing the following papers on which the fast algorithms of S2LET are based:J. D. McEwen, M. Büttner, B. Leistedt, H. V. Peiris, Y. Wiaux,A novel sampling theorem on the rotation group, IEEE Sig. Proc. Let., 22(12):2425-2429, 2015 (ArXiv|DOI)J. D. McEwen and Y. Wiaux,A
novel sampling theorem on the sphere, IEEE Trans. Signal Proc., 59, 5876-5887, 2011 (ArXiv|DOI)LICENSES2LET is released under the GPL-3 license.  For further details seeLICENSE.txt.AUTHORSS2LETwas initially developed by Boris Leistedt, Martin Büttner, andJason McEwenbut significant contributors have since been made by a number ofothers.
Package: pys2-msgboxes
pys2-msgboxespys2-msgboxes is a module of pre-built messageboxes using the QMessageBox class from PySide2 library.InstallationUse the package manager pip to install pys2-msgboxes.pip install pys2-msgboxesFor now List of pre-built Messageboxessuccessful_msgbox()input_error_msgbox()information_msgbox()warning_msgbox() - Question Yes or No, return answerdatabase_error_msgboxerror_msgbox()UsageEach of the pre-built messageboxes take two arguments: title and text.from pys2_msgboxes import msgboxes

# Execute Successful Messagebox
msgboxes.successful_msgbox('Successful', 'Operation Finished Successfully')All the messageboxes Execute like above except warning_msgbox that return a answer of the user.Question Messagebox (warning_msgbox)from pys2_msgboxes import msgboxes

# importing the class MsgBox
from pys2_msgboxes.msgboxes import MsgBox

# This messagebox return the answer (Yes or No) of the user and saved in a variable
resp = msgboxes.warning_msgbox('Warning', 'Are your sure to perform this operation?')

# check which button (Yes or No) was pressed

if resp == MsgBox.Yes:
    # Operation when Yes is pressed
    print('"Yes" Button was pressed')
else:
    # Otherwise
    print('The "close" or "No" button was pressed')Is not necessary to put the else stament if you are not going to do any action if the close or no Button is pressed.LicenseMITChange Log0.0.1 (02/02/2021)First Release
Package: py-s2s
Py S2SThis is a simple publish and subscribe for a response over RabbitMQ. This is only half of two parts needed for "http over rabbit" intended for service to service communication.noticeThis is an asyncio library that uses aio-pika.exampleasyncdefrun():conn=RabbitConfig(host='localhost',port=5672,username='guest',password='guest',exchange='/',queue_name='my_queue'# This is a prefix, it will append a random string to the end of this.)c=Service2Service(service_name='Test Service',config=conn)headers={'authorization':'Bearer XX','content-type':'application/json'}r=awaitc.request('accounts.load',dict(test=True,name='bob'),headers=headers)print(r)# Returns a `S2S GenericResponse` dataclass
Package: pys2svg
pys2svgpys2svgis a command line tool that convertspyspreadfiles in pys or pysu format
into SVG files.It is released under theGPL v3. LICENSERepository:https://gitlab.com/pyspread/py2svgAPI Docs:https://pyspread.gitlab.io/pyspread/InstallationpipinstallpyspreadUsage$pys2svg--top0--bottom20--left1--right5--table0<my_pyspread_file.pys><my_svg_file.svg>SupportIn case of qustions, please contact thepyspread community board.
Package: pys3
PyS3Minimal wrapper for S3 functionality inboto3.Installationpipinstallpys3Examplefrompys3importPyS3# Local filefile=PyS3('/path/to/file.txt','w')file.write('Hello World!')file.close()# File on S3file=PyS3('s3://bucket_name/path/to/file.txt','w')file.write('Hello World!')file.close()Prerequisitespys3usesboto3as a back-end. Thus, credentials for AWS must be set up according to that framework. For example, place the acces key ID and secret key in theAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY.How it worksUpon creation of aPyS3file object, it is checked whether the passed file URL refers to a location on S3. If so, a local copy of the file is downloaded (provided it exists). When theclose()method is called, any modifications to the local file are uploaded.
Package: pys3landsat
pyamazonlandsatInstallationTo install you can use pypi:$ pip install pys3landsator if you want to build and install from source:$ git clone https://github.com/eamanu/pyamazonlandsat.git
$ python setup.py build
$ python setup.py installUsageTo use you must be know the name of the product to downloadAnd just run the command:$ pys3landsat -n LC08_L1TP_231080_20200128_20200210_01_T1 -o ~/download_productsFor information of the parameters you could run –help$ pys3landsat --help
usage: pys3landsat [-h] [-n NAME] [-o OUTPUT]

Download Landsat 8 images from Amazon S3

optional arguments:
  -h, --help            show this help message and exit
  -n NAME, --name NAME  Name of the product to download.
  -o OUTPUT, --output OUTPUT
                        Output path to the product.ContributionWhole contributions are welcome, please feel free to send a PR or issue.
Package: pys3utils
pys3utilsPython s3 scripts and utilities. This library is intended to
help push/pull resources from s3.UsageTo recursively sync a directory to s3 -- only syncing those files
have been recently updated, write the following in python:frompys3utilsimportutilsutils.push_project_to_s3('my/path','my-bucket-name')This will recursively walk through all files listed undermy/path,
and upload a copy to s3. Afterpush_project_to_s3has been called,
it creates and updates a hidden timestamp file inmy/path, called.s3_sync_timestamp, which will
carry the last time (in ms) when an update/push occured.On a second call topush_project_to_s3, all files that
have modifiedmtimebefore this  time stamp file will be ignored.
Package: pys5p
pyS5ppyS5p provides a Python interface to S5p Tropomi Level-1B (and 2) products.For more information on the Sentinel 5 precursor mission visit:https://earth.esa.int/web/guest/missions/esa-future-missions/sentinel-5Phttp://www.tropomi.euFor more information on the Tropomi Level-1B products visit:http://www.tropomi.eu/documents/level-0-1b-productsDocumentationOnline documentation is available fromRead the Docs.InstallationThe module pys5p requires Python3.8+ and Python modules: h5py, netCDF4, numpy and xarray.Installation instructions are provided onRead the Docsor in the INSTALL file.NoteMost of the plotting related S/W has been moved from pyS5p (v2.1+) tomoniplot.
Removed are th following modules:module biweight.py - contains a Python implementation of the Tukey's biweight algorithm.module tol_colors.py - definition of colour schemes for lines and maps that also work for colour-blind
people byPaul Tol.module s5p_plot.py - the class S5Pplot is rewritten and now available as MONplot in the module mon_plot.py.
Package: pysaavn
PySaavnSearch and Download Songs, Albums, Playlists and Artists from JioSaavn.comFeaturesMultiple SelectionHigh Quality 320kbps SongsAn Easy to Use Python API for extensibilityEasy and Interactive Command Line InterfacesUsageFor APIJust instantiate PySaavn class of the api moduleFor CLIJust type pysaavn at command prompt and use the interactive interface
Package: pysaba
Saba client library for API managementFree software: Apache-2 licenseDocumentation:https://pysaba.readthedocs.org.FeaturesCertificate authenticationUsagefromsaba.clientimportSabaClientfromsaba.auth.certificateimportCertificateAuthenticationhost='mycompany-api.sabacloud.com'user='me'password='password'cert=CertificateAuthentication(host,user,password)client=SabaClient(host,cert)print(client.courses.all())History0.1.0 (22nd March 2017)First beta release on PyPI.
Package: pysaber
PySABERDocumentationDocumentation for PySABER is available at the linkhttps://pysaber.readthedocs.io/.IntroductionPySABER is a python package for characterizing the X-ray source and detector blurs in cone-beam X-ray imaging systems. SABER is an abbreviation for systems approach to blur estimation and reduction. Once the parameters of both source and detector blurs are estimated, this package is also useful to reduce blur in radiographs using deblurring algorithms.ReferencesK. Aditya Mohan, Robert M. Panas, and Jefferson A. Cuadra. "SABER: A Systems Approach to Blur Estimation and Reduction in X-ray Imaging." arXiv preprint arXiv:1905.03935 (2019)pdfLicenseThis project is licensed under the MIT License. LLNL-CODE-766837.Installation and UsagePlease refer to the documentation at the linkhttps://pysaber.readthedocs.io/.ContributorsK. Aditya MohanRobert M. PanasJefferson A. CuadraChangelogMay 2020: Added documentation and released version 1.0.0 with changes to improve ease of use.May 2020: Moved repository fromhttps://github.com/sabersw/pysabertohttps://github.com/LLNL/pysaber.
Package: pysabertooth
PySabertoothInstallpip install pysabertoothUsagefrompysabertoothimportSabertoothsaber=Sabertooth('/dev/tty.usbserial',baudrate=115200,address=128,timeout=0.1)# drive(number, speed)# number: 1-2# speed: -100 - 100saber.drive(1,50)saber.drive(2,-75)saber.stop()MIT LicenseCopyright (c) 2017 Kevin J. WalchkoPermission 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.