Saravanan666/pypi-org huggingface dataset:
Package: pyroaman
Pyroaman helps you explore Roam Research databases with Python.InstallationYou need Python 3.6 or later to use Pyroaman.Install and update using pip:$ pip install -U pyroamanA Simple ExampleFirst, you need the JSON export of a Roam database.For this demo, we will use a public one:roamhacker.$ curl https://raw.githubusercontent.com/br-g/roam-public-db/main/json/roamhacker.json -o roamhacker.jsonLoadimportpyroamandb=pyroaman.load('roamhacker.json')print(db)$ Database (276 pages, 2397 blocks)LookupLet's query blocks that contain the word "agile":some_blocks=db.lookup('agile')print(some_blocks)$ [Block (string: "Goal for myself: Fight desire to...", is_page: False, children: 1, links: 1, backlinks: 0),
   Block (string: "Agile Note Taking", is_page: True, children: 0, links: 0, backlinks: 1),
   Block (string: "[9]  This example comes from Nas...", is_page: False, children: 0, links: 0, backlinks: 0)]ExploreGet the text of a block (its string without images, references...):print(some_blocks[0].text)$ 'Goal for myself: Fight desire to have the "perfect system". Better to use and iterate improvements, rather than wait for perfect system. And by the way, is there a perfect system? Agile Note Taking?? - sprint, try, iterate'Get the children of a block:print(some_blocks[0].children)$ [Block (string: "Open organization: disorder with...", is_page: False, children: 0, links: 0, backlinks: 0)]Get its links:print(some_blocks[0].links)$ [Block (string: "Agile Note Taking", is_page: True, children: 0, links: 0, backlinks: 1)]Get backlinks:print(some_blocks[1].backlinks)$ [Block (string: "Goal for myself: Fight desire to...", is_page: False, children: 1, links: 1, backlinks: 0)]Get block's metadata:print(some_blocks[0].metadata)$ {'edit-time': 1606399607792,
   'refs': [{'uid': 'YAYZKdubo'}],
   'uid': 'XP9lZauAg',
   ':block/refs': [{':block/uid': 'YAYZKdubo'}],
   ':create/user': {':user/uid': 'kfmqimzFiIOQwL1xgoBOApXxsup1'},
   'create-time': 1599461612984,
   ':edit/user': {':user/uid': 'kfmqimzFiIOQwL1xgoBOApXxsup1'}}
Package: pyro-api
Pyro APIGeneric API for modeling and inference for dispatch to different Pyro backends.TestingFor testing API compatibility on different backends, install pytest and other test dependencies that includes backends likefunsorandnumpyroand run the test suite:pip install -e .[test]
pytest -vsThis library has no dependencies and can easily be installed for testing your particular Pyro backend
implementation. You can use the following pattern and test your backend on models in thepyroapi.testingmodule.frompyro_api.dispatchimportpyro_backendfrompyro_api.testingimportMODELS# Register backendwithpyro_backend(handlers='my_backend.handlers',distributions='my_backend.distributions',...):# Test on models in pyro_api.testingformodelinMODELS:f=MODELS[model]()model,model_args=f['model'],f.get('model_args',())model(*model_args)...# further testing
Package: pyroarc
pyroar Transofrmation PackageWhen Py roars, it produces such powerful package
This package scans any pandas datafram and gives recommendation about the required data engineering and data wrangling for the data using statistical methods
You can performs the follwoing:Missing Values treatment (dropping and imputation)Outliers detection (using Tuckey Inter Quartile Range (IQR), z-score test for normaly distributed data and skewed data)Feature transformations ( reciprocal, squared, and log)Scaling for Normal and Noraml Distribuated Featrures.Statistical testing using Shapiro and Jaque-bera for numerical featuresStatistical testing using Chai-square for categorical features.Recommendation for re-grouping classes of categorical variablesThe following features will be implemented in the future realeases:Grouping and binning using statistical testing for ordinal featuresStatistical testing for numerical variables (poission test)
. The source code is available atGithub-flavored Markdown.
Package: pyrobase
Copyright (c) 2011-2018 The PyroScope Project <pyroscope.project@gmail.com>This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Package: pyrobex
pyrobexPython bindings forROBEXbrain extraction.This package comes with ROBEX v1.2 for Linux. Windows is not currently supported.Free software: BSD licenseDocumentation:https://pyrobex.readthedocs.io.InstallThe easiest way to install the package is with:pip install pyrobexAlternatively, you can download the source and run:python setup.py installBasic UsageThis package provides a CLI (to the CLI) of ROBEX for convenience and
testing which can be accessed through, e.g.,:robex path/to/t1w_image.nii -os path/to/stripped.nii -om path/to/mask.niiThe real use-case of this package is by importing robex and using it within
another script or neuroimaging pipeline, e.g.,importnibabelasnibfrompyrobex.robeximportrobeximage=nib.load('path/to/t1w_image.nii')stripped,mask=robex(image)ReferencesIf you use this package in support of an academic publication, please cite:@article{iglesias2011robust,
  title={Robust brain extraction across datasets and comparison with publicly available methods},
  author={Iglesias, Juan Eugenio and Liu, Cheng-Yi and Thompson, Paul M and Tu, Zhuowen},
  journal={IEEE transactions on medical imaging},
  volume={30},
  number={9},
  pages={1617--1634},
  year={2011},
  publisher={IEEE}
}History0.4.2 (2021-05-25)Use black code style and add tests, docs.0.4.1 (2021-05-06)Improve logging.0.4.0 (2021-05-06)Fix logging in CLI.0.3.0 (2021-05-06)Fix to antspy backend.0.2.0 (2021-05-06)Fixes the distribution of ROBEX on PyPI.0.1.0 (2021-05-05)First release on PyPI.
Package: pyroblack
Telegram MTProto API Framework for PythonDocumentation•Issues•SupportpyroblackElegant, modern and asynchronous Telegram MTProto API framework in Python for users and botsfrompyrogramimportClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from pyroblack!")app.run()pyroblackis a modern, elegant and
asynchronousMTProto APIframework. It enables you to easily interact with the main Telegram API through a user account (custom client) or a bot
identity (bot API alternative) using Python.Key FeaturesReady: Install pyroblack with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance cryptography library written in C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3install-UpyroblackResourcesCheck out the docs athttps://eyMarv.github.io/pyroblack-docsto learn more about pyroblack, get started right
away and discover more in-depth material for building your client applications.Join the official group athttps://t.me/OpenFileZand stay tuned for news, updates and announcements.
Package: pyrobloxbot
pyrobloxbotA python library to control the roblox character and interact with game ui through keyboard inputsThis library usespydirectinputto control the keyboardIt has a decorator to ensure that the roblox window is in focus before sending keyboard inputsThere is also a global failsafe that can be triggered usingcontrol + mto avoid your bot getting out of controlThe failsafe hotkey can be changed usingset_failsafe_hotkeyExample:#Sets the failsafe hotkey to control + shift + yset_failsafe_hotkey("ctrl","shift","y")InstallationInstall pyrobloxbot usingpip install pyrobloxbotUsage/Examplesimportpyrobloxbotasbot#Send a message in chatbot.chat("Hello world!")#Walk forward for 5 secondsbot.walk_forward(5)#Reset player characterbot.reset_player()DocumentationChangelog
Package: pyrobo
PyroboPyrobo contiene frases de la película colombiana La vendedora de rosas
de Víctor Gaviria, basada en el cuento La vendedora de cerillas
(The little match girl) de Hans Christian Andersen.Software libre: licencia MITDocumentación:https://pyrobo.readthedocs.ioCréditosEste paquete fue creado conCookiecuttery la plantilla de proyecto deaudreyr/cookiecutter-pypackage.Historial0.1.0 (2018-03-10)Primera publicación en PyPI.0.4.0 (2020-08-07)Agrega la funcióncuentame()para versiones cultas de las frases.Expande la CLI para las nuevas opciones.Agrega las frases disponibles en Wikiquotes que no estaban disponibles.
Package: py-roboat-enviro
py-roboat-enviroA python wrapper for the Roboat environmental data RESTful APIInstallationInstall via pip:$ pip install py_roboat_enviro [--upgrade]DocumentationFull documentation can be foundhere.Dependencies for Local DevelopmentIf you wish to build the local documentation or run unit tests, there are a few additional dependencies. Those can be installed by:pip install -e ".[docs, tests]"Building docs locallymake -C docs clean
make -C docs htmlRun tests locallypytest tests/test_api.py -sLicenseThis library is licensed under the MIT license. The full text of the license can be found in this repository at LICENSE.txt.
Package: pyroborock
pyroborockSeehttps://github.com/89jd/roborock_commsfor details on how I go to this point.Using the keys from roborock app, it is possible to communicate with the roborock without needing to use the Xiamoi Miio app.It creates a new class overriding the python-miio vacuum class, but uses the tuya-ipc library to communicate
Package: pyroborock-grizmin
pyroborockSeehttps://github.com/89jd/roborock_commsfor details on how I go to this point.Using the keys from roborock app, it is possible to communicate with the roborock without needing to use the Xiamoi Miio app.It creates a new class overriding the python-miio vacuum class, but uses the tuya-ipc library to communicate
Package: pyrobot
Homepage:http://pyrobot.readthedocs.org/importrefrompyrobotimportRoboBrowser# Browse to Rap Geniusbrowser=RoboBrowser(history=True)browser.open('http://rapgenius.com/')# Search for Queenform=browser.get_form(action=re.compile(r'search'))form['q'].value='queen'browser.submit_form(form)# Look up the first songsongs=browser.select('.song_name')browser.follow_link(songs[0])lyrics=browser.find(class_=re.compile(r'\blyrics\b'))lyrics.text# \n[Intro]\nIs this the real life...# Back to results pagebrowser.back()# Look up my favorite songbrowser.follow_link('death on two legs')lyrics=browser.find(class_=re.compile(r'\blyrics\b'))lyrics.text# \n[Verse 1]\nYou suck my blood like a leech...PyRobot combines the best of two excellent Python libraries:
Requests and BeautifulSoup. PyRobot represents browser sessions using
Requests and HTML responses using BeautifulSoup, transparently exposing
methods of both libraries:importrefrompyrobotimportRoboBrowserbrowser=RoboBrowser(user_agent='a python robot')browser.open('https://github.com/')# Inspect the browser sessionbrowser.session.cookies['_gh_sess']# BAh7Bzo...browser.session.headers['User-Agent']# a python robot# Searched the parsed HTMLbrowser.select('div.teaser-icon')# [<div class="teaser-icon"># <span class="mega-octicon octicon-checklist"></span># </div>,# ...browser.find(class_=re.compile(r'column',re.I))# <div class="one-third column"># <div class="teaser-icon"># <span class="mega-octicon octicon-checklist"></span># ...
Package: pyRobotics
A Python API to create modules that connect to our BlackBoard (our “home-made” message-passing and shared variables hub… somewhat equivalent to ROS)
(We also have a C# and C++ APIs. Respectively Robotics and uRobotics libraries, also in BioRoboticsUNAM repository.)These softwares are all part of the work developed at the Bio-Robotics Laboratory at UNAM, and are used in our service robots.### DocumentationThe documentation for pyRobotics is [here](http://bioroboticsUNAM.github.io/pyRobotics). Examples can be found in the [github repository](http://github.com/BioRoboticsUNAM/pyRobotics).
If someone should be interested in knowing more about any of these projects, you can contact me at adrianrc[dot]89[at]gmail[dot]com.### Installation
YOU DON’T NEED TO DOWNLOAD THE ENTIRE SOURCE PACKAGE, JUST A DISTUTILS PACKAGE FROM THEdistFOLDER.To install the library from a distutils package (pyRobotics-<version>.tar.gzfrom thedistfolder), simply extract the content from the package and runsudo python setup.py install.You can delete the uncompressed source folder and compressed package now, the library should have been copied to a source folder in your operating system.### IMPORTANT NOTEThe files at the top level folder in the [source repository](http://github.com/BioRoboticsUNAM/pyRobotics) are examples, the actual library is in the pyrobotics folder.LICENSEThis software is distributed under the MIT License.
Package: pyrobotstxt
pyrobotstxt: Python Package forrobots.txtFilespyrobotstxtpackage can be used to (systematically) generaterobots.txtfiles. Moreover, this package comes in handy for creating and includingASCIIimages inrobots.txtfiles.In future releases, it would be possible to parse and analyzerobots.txtfile generated using any software (not limited topyrobotstxt)Whats in pyrobotstxt?We believe in monolithic software development and created this tiny package that does its job without any bloat. It is useful forCreateingrobots.txtFileParsing arobots.txtFile [in progress]Analyzingrobots.txtFile [in progress]How to Use pyrobotstxt?You can find detailed tutorial onpyrobotstxt tutorial website. You can consultpyrobotstxt documentation websitefor API reference.ContributePull Requests, Feature Suggestions, and collaborations are welcome.About UsThis work is a collaborative effort ofseowings, andserpwings.
Package: pyrobustness
AboutA simple util library for creating applications which needs to keep running, despite abnormalitiesInstallingpip install pyrobustnessUsageTimeout example:fromrobust.toolsimporttimeout@timeout(5)defvery_long_job():importtimewhileTrue:print("Zzz")time.sleep(1)very_long_job()Retry example:fromrobust.toolsimportretry@retry(5)defvery_broken_method():print(".")raiseRuntimeError("Something is broken...")whileTrue:very_broken_method()Circuit Breaker example:importtimefromrobust.toolsimportbreakercounter=0@breaker(limit=5,revive=5)defvery_broken_method():nonlocalcounterifcounter<=5:counter+=1raiseRuntimeError("Something is broken...")else:print("We've made it!")whileTrue:try:very_broken_method()exceptRuntimeError:passexceptException:breaktime.sleep(5)very_broken_method()Version History1.1:Additional type for alarm - threading to support Windows OS, or certain cases when signal is not working as supposedCircuitBreaker pattern, inspired by speech by Daniel Riti @Pycon 20161.0: Initial version
Package: pyroc
pyroc is a package for analyzing receiver operator characteristic (ROC) curves.
It includes the ability to statistically compare the area under the ROC (AUROC) for two or more classifiers.Quick startInstall:pip install pyrocUse:import pyroc
import numpy as nppred = np.random.rand(100)
target = np.round(pred)
# flip 10% of labels
target[0:10] = 1 - target[0:10]
W = pyroc.auroc(target, pred)# second prediction
pred2 = pred
pred2[10:20] = 1 - pred2[10:20]
auroc, ci = pyroc.auroc_ci(target, [pred, pred2])
print(auroc)
print(ci)DocumentationDocumentation is available onreadthedocs. An executable demonstration of the package is available onGitHub as a Jupyter Notebook.InstallationTo install the package with pip, run:pip install pyrocTo install this package with conda, run:conda install -c conda-forge pyroc
Package: pyrocatto
PyrocattoA fork with improvements over the good ol' Elegant, and asynchronous Telegram MTProto API framework in Python for users and botsfrompyrogramimportClient,filtersapp=Client("my_account")@app.on_message(filters.private)asyncdefhello(client,message):awaitmessage.reply("Hello from Pyrogram!")app.run()SupportIf you'd like to support the parent project,Pyrogram, you can consider:Become a GitHub sponsor.Become a LiberaPay patron.Become an OpenCollective backer.Key FeaturesReady: Install Pyrogram with pip and start building your applications right away.Easy: Makes the Telegram API simple and intuitive, while still allowing advanced usages.Elegant: Low-level details are abstracted and re-presented in a more convenient way.Fast: Boosted up byTgCrypto, a high-performance cryptography library written in C.Type-hinted: Types and methods are all type-hinted, enabling excellent editor support.Async: Fully asynchronous (also usable synchronously if wanted, for convenience).Powerful: Full access to Telegram's API to execute any official client action and more.Installingpip3installpyrocattoWith speedups (like tgcrypto):pip3installpyrocatto[speedups]Resources (from the parent project)Check out the docs athttps://docs.pyrogram.orgto learn more about Pyrogram, get started right
away and discover more in-depth material for building your client applications.Join the official channel athttps://t.me/pyrogramand stay tuned for news, updates and announcements.
Package: pyrocatto-bot
pyrocatto botA multiclient bot that leverages pyrogram's smart plugins system.InstallationWith optional speedups (Installs packages like TgCrypto for Pyrogram):pip install pyrocatto_bot[speedups]Without optional speedups:pip install pyrocatto_botUsage:after setting up sessions and writing the configurationMake sure to be in the directory the plugins are located in!python -m pyrocatto_bot --session-dir <session_dir> --config <config_file>For debugging:python -m pyrocatto_bot --session-dir <session_dir> --config <config_file> --debugSetting up sessions to use in configs:For User account:python -m pyrocatto_sg create-user-session --session-dir <session_dir>For Bot account:python -m pyrocatto_sg create-bot-session --session-dir <session_dir>Example configuration:user: &user
  plugins:
    root: 'plugins.user_plugins'
    include: Null
    exclude: Null

  addons:
    wheel_userids:
      - 1698923450

sessions: # name: {options}
  cattobot: {<<: *user}Your own client sets:#custom: &custom
  <<: *default # This line ensures non recursive inheritance from default client set
  plugins:
    root:
      - 'plugins.extra_plugins'
    include:
      - 'extra_plugin'
    exclude:
      - 'unwanted'

  addons:
    wheel_userids:
      - 12312421
      - 25235423
      - 21424111
      - ...

sessions:
  something: {<<: *custom}A single value to modify:extra_plugins: &extra_plugins
  root: 'extra_plugins'

sessions:
  something: {<<: *default, *extra_plugins}
  anotherthing: {<<: *default, plugins: {root: 'extra_plugins'}}
Package: pyrocatto-session-generator
pyrocatto session generatorInstallationWith optional speedups (Installs packages like TgCrypto for Pyrogram):pip install pyrocatto_sg[speedups]Without optional speedups:pip install pyrocatto_sgSetting up sessions:For User account:python -m pyrocatto_sg create-user-session --session-dir <session_dir>For Bot account:python -m pyrocatto_sg create-bot-session --session-dir <session_dir>
Package: pyRockBlock
pyRockBLOCKpyRockBLOCKis the definitive Python 3 library for users of the RockBLOCK.RequirementsPython 3.6 and newerInstallationThis installs a package that can be used from Python (import pyRockBlock).To install for all users on the system, administrator rights (root)
may be required.From PyPIpyRockBlock can be installed from PyPI:python -m pip install pyRockBlockConnecting to your RockBLOCKOnce your rockBLOCK has been connected to your device via USB you will need to find its local address.Linux / macOSList all local devices:ls /dev/tty*The name will vary depending on machine but will generally include USB in the name (e.g./dev/ttyUSB0or/dev/tty.usbserial-FTH9I1S5)WindowsList COM devices:modeWhen connected to my machine the port wasCOM6but this will vary, it can be helpful to run the command before connecting to see what port becomes active.Starting pyRockBLOCKOnce you have the address of your device, create an instance of RockBlock and call the connect method:from pyRockBlock import RockBlock

rb = RockBlock(<device address>)
rb.connect()
Package: pyrocketbot
RocketPyBotPython lib for create rocketchat bot with getupdate like TelegramBotsThis library is based onrocketchat_APIInstallationpipinstallpyrocketbotUsageimportosfrompyrocketbotimportRocketBotusername=os.environ.get('ROCKET_USERNAME')password=os.environ.get('ROCKET_PASSWORD')server_url=os.environ.get('ROCKET_SERVER_URL')proxy_dict={"http":"http://127.0.0.1:2080","https":"https://127.0.0.1:2080",}bot=RocketBot(username,password,server_url)# bot = RocketBot(username, password, server_url, proxy_dict=proxy_dict)@bot.command(r'/start')defstart(message,match_list):bot.send_message(message['rid'],'hi')@bot.command(r'/echo (.*)')defecho(message,match_list):bot.send_message(message['rid'],match_list[0])if__name__=='__main__':print('Bot started')bot.run(chat_type='d',sleep=0.5)Note :in run method you can setchat_typeto 'd' for direct message or 'c' for channel message and setsleepfor sleep time per update
Package: pyrocko
PyrockoA seismology toolkit for PythonInstallationPyrocko can be installed on various operating systems and in many different
installation styles. Please consult thePyrocko Installation Manualfor details.System wide installation from sourcegit clone https://git.pyrocko.org/pyrocko/pyrocko.git
cd pyrocko
python install.py deps system
python install.py systemUser installation from sourcegit clone https://git.pyrocko.org/pyrocko/pyrocko.git
cd pyrocko
pip install .  # only install into isolated environments like this!Installation with AnacondaAnaconda3 packages are available for Linux, OSX and Windows (details).conda install -c pyrocko pyrockoUser installation with Python pipBinary pip packages are available for Linux and Windows (details).pip install --user pyrocko
pip install --user --only-binary :all: PyQt5DocumentationDocumentation and usage examples are available online athttps://pyrocko.org/docs/currentCommunity SupportCommunity support athttps://hive.pyrocko.org.CitationThe recommended citation for Pyrocko is: (You can find the BibTeX snippet in theCITATIONfile):Heimann, Sebastian; Kriegerowski, Marius; Isken, Marius; Cesca, Simone; Daout, Simon; Grigoli, Francesco; Juretzek, Carina; Megies, Tobias; Nooshiri, Nima; Steinberg, Andreas; Sudhaus, Henriette; Vasyura-Bathke, Hannes; Willey, Timothy; Dahm, Torsten (2017): Pyrocko - An open-source seismology toolbox and library. V. 0.3. GFZ Data Services.https://doi.org/10.5880/GFZ.2.1.2017.001LicenseGNU General Public License, Version 3, 29 June 2007Copyright © 2017 Helmholtz Centre Potsdam GFZ German Research Centre for Geosciences, Potsdam, GermanyPyrocko is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Pyrocko is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, seehttp://www.gnu.org/licenses/.ContactSebastian Heimann;sebastian.heimann@gfz-potsdam.deMarius Isken;marius.isken@gfz-potsdam.deMarius Kriegerowski;marius.kriegerowski@gfz-potsdam.deHelmholtz Centre Potsdam German Research Centre for Geoscienes GFZ
Section 2.1: Physics of Earthquakes and Volcanoes
Helmholtzstraße 6/7
14467 Potsdam, Germany