Saravanan666/pypi-org huggingface dataset:
Package: roiextractors
ROIExtractorsAutomatically read optical imaging/segmentation data into a common APIExplore our documentation »Table of ContentsAboutInstallationDocumentationFundingLicenseAboutROIExtractors provides a common API for various optical imaging and segmentation formats to streamline conversion and data analysis. ROI stands for Region Of Interest, which is the region in a set of acquired fluorescence images which the segmentation software has determined as a neuron.Features:Reads data from 10+ popular optical imaging and segmentation data formats into a common API.Extracts relevant metadata from each format.Provides a handy set of methods to analyze data such asget_roi_locations()InstallationTo install the latest stable release ofroiextractorsthough PyPI, type:pipinstallroiextractorsFor more flexibility we recommend installing the latest version directly from GitHub. The following commands create an environment with all the required dependencies and the latest updates:gitclonehttps://github.com/catalystneuro/roiextractorscdroiextractors
condaenvcreateroiextractors_env
condaactivateroiextractors_env
pipinstall-e.Note that this will install the package ineditable mode.Finally, if you prefer to avoidcondaaltogether, the following commands provide a clean installation within the current environment:pipinstallgit+https://github.com/catalystneuro/roiextractors.git@mainDocumentationSee ourReadTheDocs pagefor full documentation, including a gallery of all supported formats.FundingROIExtractors is funded byStanford University as part of the Ripple U19 project (U19NS104590).LBNL as part of the NWB U24 (U24NS120057).LicenseROIExtractors is distributed under the BSD3 License. SeeLICENSEfor more information.
Package: roifile
Roifile is a Python library to read, write, create, and plotImageJROIs,
an undocumented and ImageJ application specific format to store regions of
interest, geometric shapes, paths, text, and whatnot for image overlays.Author:Christoph GohlkeLicense:BSD 3-ClauseVersion:2024.1.10DOI:10.5281/zenodo.6941603QuickstartInstall the roifile package and all dependencies from thePython Package Index:python -m pip install -U roifile[all]View overlays stored in a ROI, ZIP, or TIFF file:python -m roifile file.roiSeeExamplesfor using the programming interface.Source code, examples, and support are available onGitHub.RequirementsThis revision was tested with the following requirements and dependencies
(other versions may work):CPython3.9.13, 3.10.11, 3.11.4, 3.12.1Numpy1.26.3Tifffile2023.12.9 (optional)Matplotlib3.8.2 (optional)Revisions2024.1.10Support text rotation.Improve text rendering.Avoid array copies.Limit size read from files.2023.8.30Fix linting issues.Add py.typed marker.2023.5.12Improve object repr and type hints.Drop support for Python 3.8 and numpy < 1.21 (NEP29).2023.2.12Delay import of zipfile.Verify shape of coordinates on write.2022.9.19Fix integer coordinates to -5000..60536 conforming with ImageJ (breaking).Add subpixel_coordinates in frompoints for out-of-range integer coordinates.2022.7.29Update metadata.2022.3.18Fix creating ROIs from float coordinates exceeding int16 range (#7).Fix bottom-right bounds in ImagejRoi.frompoints.2022.2.2Add type hints.Change ImagejRoi to dataclass.Drop support for Python 3.7 and numpy < 1.19 (NEP29).2021.6.6…Refer to the CHANGES file for older revisions.NotesThe ImageJ ROI format cannot store integer coordinate values outside the
range of -5000..60536.Refer to the ImageJRoiDecoder.javasource code for a reference implementation.Other Python packages handling ImageJ ROIs:ijpython_roiread-roinapari_jroitoolsExamplesCreate a new ImagejRoi instance from an array of x, y coordinates:>>> roi = ImagejRoi.frompoints([[1.1, 2.2], [3.3, 4.4], [5.5, 6.6]])
>>> roi.roitype = ROI_TYPE.POINT
>>> roi.options |= ROI_OPTIONS.SHOW_LABELSExport the instance to an ImageJ ROI formatted byte string or file:>>> out = roi.tobytes()
>>> out[:4]
b'Iout'
>>> roi.tofile('_test.roi')Read the ImageJ ROI from the file and verify the content:>>> roi2 = ImagejRoi.fromfile('_test.roi')
>>> roi2 == roi
True
>>> roi.roitype == ROI_TYPE.POINT
True
>>> roi.subpixelresolution
True
>>> roi.coordinates()
array([[1.1, 2.2],
       [3.3, 4.4],
       [5.5, 6.6]], dtype=float32)
>>> roi.left, roi.top, roi.right, roi.bottom
(1, 2, 7, 8)Plot the ROI using matplotlib:>>> roi.plot()View the overlays stored in a ROI, ZIP, or TIFF file from a command line:python -m roifile _test.roi
Package: roimarker
RoimarkerAnnotates region of interest (ROI) using matplotlib
and Python.Draw rectangular ROIs with your mouseQuickly change to the next image by pressingNAdjust brightness/contrast with keysZ,X,C,VUndo withCtrl+ZInstallingpip install roimarkerUsageA) Standalone toolpython -m roimarker DIRECTORYHere, replace DIRECTORY with the folder containing all the
image files to be annotated.When finished, amarkings.jsonfile
is created to the current working directory
with the following structure:{fn1:[ROI_1,ROI_2,ROI_3,..],fn2:[ROI_1,...],...}whereROI_i=[x,y,w,h]B) In your programsimportmatplotlib.pyplotaspltfromroimarkerimportMarker# Create matplotlib figure and axfig,ax=plt.subplots()# List of images to annotateimage_fns=['image1.tif','image2.tif','image3.tif']marker=Marker(fig,ax,image_fns,'markings.json')marker.run()
Package: rointe-sdk
🌞 rointe-sdkA python 3 library to interact with Rointe Devices.rointe-sdkis a Python 3 library for the Rointe HomeAssistant integration via a REST API.Installation[Supported devices] (#supported-devices)Installationpipinstallrointe-sdkSupported devicesCurrently supported devices include:D-Series radiatorsBelize radiatorsOlympia radiatorsWi-Fi enabled towel railsThermostatContributions usedPortions fromhttps://github.com/bachya/pypi-templatePortions fromhttps://github.com/bachya/aiopurpleair
Package: roipoly
[[file:https://travis-ci.org/jdoepfert/roipoly.py.svg?branch=master]]* roipoly.pySmall python module to select a polygonal region of interest (ROI) inan image that is stored as a numpy array. The usage is similar to the[[https://mathworks.com/help/images/ref/roipoly.html][roipoly]]function present in the image processing toolbox from MATLAB.[[file:/img/ROIs.PNG]]** InstallationEither from PyPi: ~pip install roipoly~Or get the latest version from github: ~pip install git+https://github.com/jdoepfert/roipoly.py~** Running the examplesBasic usage:#+begin_SRC shellpython examples/basic_example.py#+end_SRCDrawing multiple ROIs:#+begin_SRC shellpython examples/multi_roi_example.py#+end_SRC** Usage*** Creating a ROIIn your python code, import the roipoly module using#+begin_SRC pythonfrom roipoly import RoiPoly#+end_SRCTo draw a ROI within an image present as a numpy array,  show it firstusing e.g. pylabs's =imshow=:#+begin_SRC pythonfrom matplotlib import pyplot as pltplt.imshow(image)#+end_SRCThen let the user draw a polygonal ROI within that image:#+begin_SRC pythonmy_roi = RoiPoly(color='r') # draw new ROI in red color#+end_SRCThis lets the user interactively draw a polygon within the image by clickingwith the left mouse button to select the vertices of the polygon. Toclose the polygon, click with the right mouse button. After finishingthe ROI, the current figure is closed so that the execution of the codecan continue.*** Displaying a ROITo display a created ROI within an image, first display the image asdescribed above using e.g. =imshow=. Then,#+begin_SRC pythonmy_roi.display_roi()#+end_SRCshows the created ROI on top of this image.Display multiple ROIs like so:#+begin_SRC pythonfor r in [my_roi1, my_roi2, my_roi3]r.display_roi()#+end_SRCTo additionally show the mean pixel grey value inside a ROI in theimage, type#+begin_SRC pythonmy_roi.display_mean(image)#+end_SRC*** Extracting a binary mask imageThe function =get_mask(image)= creates a binary mask for a certain ROIinstance, that is, a 2D numpy array of the size of the image array,whose elements are =True= if they lie inside the ROI polygon,and =False= otherwise.#+begin_SRC pythonmask = my_roi.get_mask(image)plt.imshow(mask) # show the binary signal mask#+end_SRCThis mask image can be used to e.g. calculate the mean pixel intensityin an image over that ROI:#+begin_SRC pythonmean = plt.mean(image[mask])#+end_SRC*** Drawing multiple ROIsSee =examples/multi_roi_example.py=** CreditsBased on a code snippet originally posted [[http://matplotlib.1069221.n5.nabble.com/How-to-draw-a-region-of-interest-td4972.html][here]]  by Daniel Kornhauser.
Package: roi-tanh-tensorflow
roi_tanh_warping_tensorflowThis is a tensorflow re-impelementation of theFace Parsing With RoI Tanh-Warpingpaper published at CVPR 2019. This is intended to be used for face-parsing training in tensorflow.Installyou can usepip install roi-tanh-tensorflowHow to useThe main function to call fromsrc.tanh_warperisapply_roi_tanh_warping. This function works as followsfromroi_tanh.tanh_warperimportapply_roi_tanh_warpingapply_roi_tanh_warping(image:np.ndarray,label:np.ndarray,size:Tuple[int])The expected input are a single image and its corresponding label.run a unit testpython -m src.roi_tanh.tanh_warper --unit_test
Package: roj
roj (Run On Jail)roj is a simple command-line tool that runs a command (login shell by default)
in the given jail, either locally or over SSH.Examples:rojabcRuns a login shell in the local jail namedabc.roj-Hadxldap1psaxlRunsps axlin the jail namedldap1on the remote SSH hostadx.rojShows the jails on the local host.roj-HpbspShows the jails on the remote SSH hostpbsp.iocage CompatibilityTheiocagejail manageruses theioc-prefix in its jail names.
To maintain compatibility withiocage,
by defaultrojshows and accepts jail names without theioc-prefix.Except if there is a conflict, then this prefix stripping behavior is disabled.
For example, if there is a jailioc-xyzand there is also another jailxyz,
then the former is shown as and must be specified asioc-test.This behaviour can be disabled using the-f/--fullflag.SSH Host (-H/--host) ConfigThe hostname given to-H/--hostis provided verbatim toOpenSSHssh(1)so the name is subject to the usualconfigurationsettings.  For example, to use a shorthand alias, ex:roj -Hadx:Host adx
        HostName adx-florence.bop.govSSH Pseudo TTY AllocationJust like OpenSSHssh(1), by default login shells are run with a pseudo TTY,
and explicit commands are run without one.
This behavior can be overridden with--tty/--no-tty(or-t/-T, as withssh(1)).Bash CompletionTo use Bash completion support ofroj:complete-C'roj --bash-complete'rojIt takes connection-related options (-H/--hostand-u/--user)
so the following works as expected:aliasroj1='roj --host=server1'complete-C`roj1--bash-complete`roj1
Package: rok4
ROK4 Python librariesTherok4package help to useROK4 projectconcepts, like Tile Matrix Sets, data pyramids or layers.InstallationRequired system packages :debian :apt install python3-rados python3-gdalTherok4package is available on :PyPI:pip install rok4GitHub:pip install https://github.com/rok4/core-python/releases/download/<version>/rok4-<version>-py3-none-any.whlUsagefromrok4.tile_matrix_setimportTileMatrixSettry:tms=TileMatrixSet("file:///path/to/tms.json")exceptExceptionasexc:print(exc)More examples in the developer documentation
Package: rok4-tools
ROK4 Python toolsTherok4-toolspackage help to useROK4 projectconcepts, like Tile Matrix Sets, data pyramids or layers.InstallationRequired system packages :debian :apt install python3-rados python3-gdalTherok4package is available on :PyPI:pip install rok4GitHub:pip install https://github.com/rok4/core-python/releases/download/<version>/rok4-<version>-py3-none-any.whlToolsPYR2PYRPYR2PYR allow to copy a pyramid from a storage to another one. It is possible to ignore slab under a provided size. Copy is parallelized. If MD5 hash are in the pyramid's list file, they are used to check integrity after copy.To obtain an example of JSON configuration, callpyr2pyr --role example. To check a JSON configuration, callpyr2pyr --role check --conf conf.json. JSON configuratio can be a file or a S3 object(use a path's prefix, for example :s3://bucket/configuration.json)UsageA full copy requires the tool call with the three modes (all need the JSON configuration), in this order :masterroleActions : write N TODO lists, in a file or s3 directory.Call :pyr2pyr --role master --conf conf.jsonagentrole :Actions : read the TODO list from the work directory and copy slabsCall (one by TODO list) :pyr2pyr --role agent --conf conf.json --split Xfinisherrole:Actions : read all TODO lists and write the output pyramid's list file and its descriptorCall :pyr2pyr --role finisher --conf conf.jsonConfigurationJSON configuration content (generated from the JSON schema withjsonschema2md bin/pyr2pyr.schema.json /dev/stdout)logger(object): Logger configuration.layout(string): Log format, according to logging python library. Default:%(asctime)s %(levelname)s: %(message)s.file(string): Path to log file. Standard output is used if not provided.level(string): Log level. Must be one of:['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL', 'NOTSET']. Default:WARNING.from(object): Pyramid to copy.descriptor(string): Path to pyramid's descriptor to copy.to(object): Pyramid to write.name(string): Output pyramid's name.storage(object)type(string): Storage type. Must be one of:['FILE', 'S3', 'CEPH'].root(string): Storage root : a directory for FILE storage, pool name for CEPH storage, bucket name for S3 storage.depth(integer): Tree depth, only for FILE storage. Minimum:1. Default:2.process(object): Processing parameters.directory(string): Directory to write copies to process, FILE directory or S3/CEPH prefix.parallelization(integer): Parallelization level, number of todo lists and agents working at the same time. Minimum:1. Default:1.follow_links(boolean): Do we follow links (data slabs in others pyramids than the 'from' one). Default:False.slab_limit(integer): Minimum slab size (if under, we do not copy). Minimum:0. Default:0.MAKE-LAYERMAKE-LAYER generate a layer's descriptor,ROK4 servercompliant, from pyramids' descriptorsUsagemake-layer [-h] --pyramids storage://path/to/pyr.json[>BOTTOM>TOP] [storage://path/to/pyr.json[>BOTTOM>TOP] ...] --name my data [--styles normal [normal ...]] [--title my data]
Package: roke
RokeRoke is a tool and a library to create identifiers. The goal is that these
identifiers should be:More or less unique.Easy to read, so you can read it to someone else over a phone, for example.Configurable: not a single pattern in how they lookCustomizable: it should be easy to do things like "make it work in spanish"To do this, inspired by a talk aboutMagic Wormhole...
I did pretty much the same thing they did.Command Line ToolBy default, Roke will give you identifiers made out of two nouns and a small number. Like this:$ roke
19-hassock-disregardYou can tell roke to print more than one identifier, so you can choose a nice one.$ roke --count 5
9-vibrissae-truth
4-bathrobe-somewhere
10-dysfunction-overview
19-aardvark-viola
5-mutt-pamphletYou can change the pattern of the identifiers:$ roke --count 5 --pattern '{noun}+{noun}'
plate+pasture
pickle+syrup
colloquy+bracelet
prisoner+businessman
membrane+approachRoke comes with two basic dictionaries:"noun" which is a list of english nouns taken fromhttp://www.desiquintans.com/nounlist"smallnum" which is the numbers from 1 to 20You can add more dictionaries by putting files with the ".txt" extension and one
word per line in any of the following places:~/.local/roke
.rokePython LibraryYou can use Roke inside your own projects by using it as a library. This example
shows how:>>> import roke
>>> roke.load_dicts()
>>> roke.gen_identifier('{noun}-{smallnum}')
'village-18'That's all there is to it.Technical NotesSo, how unique are the identifiers?If you use the default pattern{smallnum}-{noun}-{noun}there are only
925 072 020 possible identifiers. So: NOT VERY UNIQUE.Do not use this as a password or a secret!... at least not using that pattern.They should be uniqueenoughfor situations where you just need something
to be "unique for a while" in a certain environment. Like, container names,
or maybe your children.Mandatory XKCD:Full ComicWhy the name?Roke is the name of an island in Earthsea. To know more about Roke and names,
just read the Earthsea books by Ursula K LeGuin, they are awesome.
Package: rokit
Rokit: Redirection Optimization KitRokit(Redirection Optimization Kit) is a CLI tool to help wed admin/developer to test or optimize URL redirection. It's easy to integrate into your CI as smoke test and regression test for redirection testing.InstallationInstall via pip:pipinstallrokitUsageGet a redirection chain:$rokithttp://www.github.com
Redirect2time(s):http://www.github.com->https://www.github.com/->https://github.com/Verify if a url is in redirection chain:$rokithttp://www.github.comhttps://www.github.com
Redirect2time(s):http://www.github.com->https://www.github.com/->[https://github.com/][PASS]Requesttohttp://www.github.comwillredirecttohttps://github.com/LicenseLicense
Package: roktools
pyrok-toolsPython tools used in internal Rokubun projects. This repository contains the following modules:logger, a module that extends basic Python logginggeodetic, to perform basic geodetic transformation (Cartesian to Geodetic,
Cartesian to Local Tangential Plane, ...)Installationpip install roktoolsModulesLoggerExample of how to use the logger module:>>>fromroktoolsimportlogger>>>logger.set_level("DEBUG")>>>logger.debug("Debug message")2020-05-0518:23:55,688-DEBUG-Debugmessage>>>logger.warning("Warning message")2020-05-0518:24:11,327-WARNING-Warningmessage>>>logger.info("Info message")2020-05-0518:24:26,021-INFO-Infomessage>>>logger.error("Error message")2020-05-0518:24:36,090-ERROR-Errormessage>>>logger.critical("Critical message")2020-05-0518:24:43,562-CRITICAL-Criticalmessage>>>logger.exception("Exception message",ValueError("Exception message")2020-05-0518:25:11,360-CRITICAL-ExceptionmessageValueError:ExceptionmessageTraceback(mostrecentcalllast):File"<stdin>",line1,in<module>File"/Users/alexlopez/Work/00.General/01.Software/py-roktools/roktools/logger.py",line46,inexceptionraiseexceptionValueError:ExceptionmessageDeployment to PyPiThe project is published automatically using internal Gitlab CI on each commit to master to PyPi repositoryroktools
Package: rokuality-python
Rokuality Python - End to End Test Automation for Roku, XBox, Vizio, Tizen TV, LG webOS, and HDMI devices including Cable SetTop, Playstation, Tivo and more!The Rokuality platform allows you to distribute Roku, XBox, Vizio Tizen TV, LG webOS, and HDMI device end to end tests across multiple devices on your network. Our platform's goal is to provide a low cost solution for various video streaming platforms that otherwise don't offer an easily automatable solution! Download theRokuality Appand start writing tests!The official documentation has moved to theRokuality Website
Package: rokucli
Interactively control your Roku device from the command-line with vim-style key bindings.Who needs this?This was made for lazy people who live on the command line.(Story time) I was sitting on the couch with my laptop, Netflix on in the
background, when suddenly and without warning, the credits are rolling - it’s time
to find something else to watch before “Real Rob” starts playing.
The remote isallthe way over on the coffee
table. I can’t be expected to stop what I’m doing, put my laptop down, use
the remote, sit back down, and resituate myself with my laptop. There has to be
a better way…Luckily,python-rokuexists,
which makes it easy to control my Roku with
Python. Add a simple interactive CLI, and now I’m Roku-ing in style without
ever leaving the terminal.There are a few practical advantages of roku-cli vs. the remote:Responsiveness - Moving around the Roku has never been fasterEasy text entry - No more hunting around the on-screen keyboard with
the arrow keysControl any Roku in the house - If you have multiple Roku’s, you can select
which one you want to controlStay on the command line - No more context switching between your
computer and the real worldInstallationpip install rokucliOr to install the latest source:git clone https://github.com/ncmiller/roku-cli.git
cd roku-cli
python setup.py installSupported with Python 2 and 3 on Linux and Mac OS. Also works with Cygwin on
Windows. Sorry, no native Windows support.UsageTo launch the CLI:$ rokuWith no arguments, Rokus within the LAN will be discovered usingSSDP.
If only one Roku is found, then it will be selected, otherwise you’ll be
asked to select one:Found the following Roku devices:
[1]   192.168.1.116:8060 (Roku 3-4230X SW v7.2.0.4100)
[2]   192.168.1.147:8060 (Roku 3-4200X SW v7.2.0.4100)

Multiple Rokus found. Select the index of the Roku to control:
Select (1 to 2) >Alternatively, if you already know the IP address of your Roku, then launch the
CLI with the IP as the first argument:$ roku 192.168.1.118This method is much faster than SSDP.From there, you’ll be in interactive mode, and you can input keys to control
your Roku:+-------------------------------+-------------------------+
| Back           B or <Backsp>  | Replay          R       |
| Home           H              | Info/Settings   i       |
| Left           h or <Left>    | Rewind          r       |
| Down           j or <Down>    | Fast-Fwd        f       |
| Up             k or <Up>      | Play/Pause      <Space> |
| Right          l or <Right>   | Enter Text      /       |
| Ok/Enter       <Enter>        |                         |
+-------------------------------+-------------------------+
(press q to exit)
Package: rokuecp
Python: Roku (ECP) ClientAsynchronous Python client for Roku devices using theExternal Control Protocol.AboutThis package allows you to monitor and control Roku devices.InstallationpipinstallrokuecpUsageimportasynciofromrokuecpimportRokuasyncdefmain():"""Show example of connecting to your Roku device."""asyncwithRoku("192.168.1.100")asroku:print(roku)if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(main())Setting up development environmentThis Python project is fully managed using thePoetrydependency
manager. But also relies on the use of NodeJS for certain checks during
development.You need at least:Python 3.9+PoetryNodeJS 18+ (including NPM)To install all packages, including all development requirements:npminstall
poetryinstallAs this repository uses thepre-commitframework, all changes
are linted and tested with each commit. You can run all checks and tests
manually, using the following command:poetryrunpre-commitrun--all-filesTo run just the Python tests:poetryrunpytest