Saravanan666/pypi-org huggingface dataset:
Package: rel-path
relpath- relative path moduleThis module eliminates a weakness ofpathlib.Path. The classPathreturnsValueErrorif the relative-path is not a subdirectory of the base-path.Installationpipinstallrel-pathView on PyPiView on GitHubExample for error:frompathlibimportPathbase="/home"rel="/"# Error when using PathPath(rel).relative_to(base)Exceptionhasoccurred:ValueError'/'doesnotstartwith'/home'Example using relpath module:fromrelpathimportrelative_pathbase="/home"rel="/"print(relative_path(base,rel))../SupportIf you find any problems with relpath module, please report them to GitHub, and I will respond when possible. Code contributions are always welcome, and ideas for new modules, or additions to existing modules, are also appreciated.
Package: relsad
RELSADRELSAD– RELiability tool for Smart and Active Distribution networks,
is a Python-based reliability assessment tool that aims to function as
a foundation for reliability calculation of modern distribution systems.
The tool allows for Monte Carlo simulation based reliability analysis of modern
distribution networks, and sequential simulation of the network
behavior with user-defined loading and failure evolution to investigate the impact
of the introduction of for instance ICT components.The package supports user-selected time steps over a user-defined time period.
In the tool, active components such as microgrids, distributed generation,
batteries, and electrical vehicles are implemented.
To evaluate smart power systems, ICT (Information and Communication Technology)
components such as automated switches, sensors, and control systems
for the power grid are also implemented.
In addition to component implementation, in order to evaluate the reliability
of such complex systems, the complexity, dependencies within a system,
and interdependencies between systems and components are accounted for.
For now, only radial systems are supported.The tool can be used in modern distribution network development to evaluate
the influence of active components on the network reliability. Relevant use cases
include investigating how:The introduction of microgrids with active generation
affects the customers in the distribution network and vice versaVehicle-to-grid strategies might mitigate load peaks and
improve the distribution network reliabilityThe reliability of the ICT network impacts the
distribution network reliabilityInstallationSeehttps://relsad.readthedocs.io/en/latest/installation.html.FeaturesMonte Carlo simulation based reliability analysis of modern distribution networksSequential simulation of the network behavoir with user-defined loading and failure evolutionDependenciesThe package dependencies can be found inpyproject.toml.UsageExamples using well known test networks are included and presented inhttps://relsad.readthedocs.io/en/latest/usage/main.html.DocumentationThe official documentation is hosted on Read the Docs:https://relsad.readthedocs.io/en/latest/ContributorsWe welcome and recognize all contributions. You can see a list of current contributors in the contributors tab.HelpIf you have questions, feel free to contact the author.
Package: relshell
relshell========.. image:: https://travis-ci.org/laysakura/relshell.png?branch=master:target: https://travis-ci.org/laysakura/relshellA framework to manage shell commands' inputs/outputs as relational data... contents:: :local:For users---------Unfortunately, `relshell` is not documented so well yet.See `relshell/test/test_practical_use_*.py <https://github.com/laysakura/relshell/blob/master/relshell/test/>`_ as well as`API reference <http://packages.python.org/relshell>`_ .For developers--------------API reference#############Sphinx-powered documents are available on http://packages.python.org/relshellBuilding and uploading documents################################.. code-block:: bash$ ./setup.py build_sphinx$ browser doc/html/index.html$ ./setup.py upload_sphinxTesting#######.. code-block:: bash$ ./setup.py nosetests$ browser htmlcov/index.html  # check coverageUploading packages to PyPI##########################.. code-block:: bash$ emacs setup.py   # edit `version` string$ emacs CHANGES.rst$ ./setup.py sdist uploadOr use `zest.releaser <https://pypi.python.org/pypi/zest.releaser>`_, a convenient tool for repeated release cycles.TODO (ugly Japanese)####################- relshellプロセス ===(thread)===> シェルオペレータ ===(fork)===> シェルコマンドプロセス という流れを作る(Queueもいるね)- shellstreaming/README.rst にあるような感じで，batchをop間でやりとりできるようにする- シェルプロセスは非同期でも扱いたい．そもそもpopenとかがそういうインターフェースだし．- デバッグオプションをonにしたらどんな動作しているのかくらい出力してあげたい- daemonizeできる条件- in_batchをstdinからとり，out_batchを(stdout|file)に出す- 「in_batch_xに対する出力分out_batch_xがここまでですよ」と定義できる(例えば，空行はout_batch_xの終わりですよ，とか)- enjuには使える
Package: reluble
RelubleA thin PyTorch wrapper which performs static and dynamic analysis of the computational graph to
prevent latent errors.InstallpipinstallrelubleTestsInstall the testing dependencies:pytest, e.g. withpip install pytest.torchvision, e.g. withpip install torchvision. This is probably
installed alongside torch.Clone the repository and change into the root:gitclonegit@github.com:arcadelab/reluble.gitcdrelubleTo run all the tests, simply runpytest. It is recommended to disable capturing, e.g. with:pytest-sThese tests can take a long time, particularly if you are running on CPU. It is recommended to run
on GPU. Some of the tests will produce output files in./outputs/.To show corruptions working for a good net, run:pytest-stests/test_training.py::TestCorruptions::test_good_NetAnd for a bad net:pytest-stests/test_training.py::TestCorruptions::test_bad_NetIn this case, theLearningErroris the desired behavior.
Package: relyonai
relyonaiPython RuntimeInlineAI Calls🤖 AI language extension.📉 Reduces code size.🐍 Can use python runtime objects.💿 Caches calls, so it's fast on re-runing.✅ Fixes mistakes internallly.🎁 Saves runtime context for reusing.⭐️ UsesFew-ShotandCOTunder the hood.WarningSeeReflections.UsagepipinstallrelyonaiexportOPENAI_API_KEY=...fromrelyonaiimportaif=ai('get print hello world func')f()fromrelyonaiimportconfigconfig.model='gpt-4'config.clear_cache()Seetestsfor more.ReflectionsAlthough the idea is working to some extent, it remains largely impractical for the time being. It falls short in a few crucial areas:ReliabilityandConsistency: The code that's being generated is not consistently accurate, with minor prompt modifications often leading to significant changes.Controllability: GPT-3.5, which was the primary model for the development of0.1, practically ignores system messages and often fails to follow few-shot examples, even for simple calls.PrivacyandSecurity: This conserns could be largely mitigated by clever prompting and potentially runtime sandboxing (like patching Python'sopencall or something similar).GPT-4 is expected to be a major leap over all axes with usable clever system messages and better Few-Shot/COT, but it needs to become publicly accessible, approximately 5x cheaper and roughly 2x faster to be practical for this task.0.2 PlansNotethis is a rough draftimprove qualitygpt-4: new system prompt and better cotmore tests + add reliability testsinclude invocation context (ai, ±5 above/below exprs)include project info / files / pip / hardware / os / time / etc.final result checkdifferent prompt for different py versionsother runtimes: bash, remote, c++, browser, etc.bootstrap the package itlsef (just for the fun of it)better introspectionrichdialogue printing (+spinner)much better error handlingview source code/docmore granular sessions (trees)advanced cachingredislimit size (up to ~20mb)save pre-compiled codeasyncaaiagptaembLicenseMIT
Package: remagic
remagicWorking with regex made easier!Partly inspired frommagic-regexpfor Nodefromremagicimport*pattern1=create(DIGIT)# matches any digitpattern2=char_in("aeiou")# matches any char in "aeiou"pattern3=~pattern2# negates the pattern in pattern2,# i.e. match everything except characters in "aeiou"pattern4=pattern1+pattern3# finally compile, use standard flags as optional argumentR=pattern4.compile()# use the regex laterInstallationInstall from PyPI:pip install remagicWork in Progress!DocumentationTODO:docsKnown bugsimproper behaviour withany_of
Package: re-map
re-mapPackage for managing multiple regext pattern replacement change location map.May be usefull when there is a necesity to have original text, text altered using regex pattern replacements and a map of said replacements.
One scenario where this may proove usefull is machine learning "text2text# problems (e.g. translation, text normalization, etc.).install$pipinstallre-mapexampleCodefromre_mapimportProcessornumbers={5:'five',8:'eight',10:'ten'}orginal_numbers={1:'first',2:'second'}modifiers=[(r'der (G\.) Be',{1:'Graham'}),(r' (&) ',{1:'and'}),(r' (etc)\.',{1:'et cetera'}),(r' ((\d+)((st)|(nd)|(rd)|(th))) ',{2:lambdax:orginal_numbers[int(x)],3:''}),(r' (\d+) ',{1:lambdax:numbers[int(x)]}),]text='Alexander G. Bell ate 10 apples & 8 cucumbers. The 1st apple was rotten, the 2nd was too, also the third, fourth etc.'withProcessor(text)asprocesor:forpattern,replacement_mapinmodifiers:procesor.process(pattern,replacement_map)decorated_text,decorated_processed_text=procesor.decorate()print(text)print(decorated_text)print(procesor.processed_text)print(decorated_processed_text)print(procesor.span_map)OutputAlexanderG.Bellate10apples&8cucumbers.The1stapplewasrotten,the2ndwastoo,alsothethird,fourthetc.
Alexander00Bellate11apples23cucumbers.The455applewasrotten,the677wastoo,alsothethird,fourth888.
AlexanderGrahamBellatetenapplesandeightcucumbers.Thefirstapplewasrotten,thesecondwastoo,alsothethird,fourthetcetera.
Alexander000000Bellate111apples22233333cucumbers.The44444applewasrotten,the666666wastoo,alsothethird,fourth888888888.[((10,12),(10,16)),((22,24),(26,29)),((32,33),(37,40)),((34,35),(41,46)),((51,52),(62,67)),((52,54),(67,67)),((77,78),(90,96)),((78,80),(96,96)),((113,116),(129,138))]
Package: remapdict
remapdictReally simple Python function for arbitrarily remapping dictionary keys value pairs with arbitrary transformations and convenience configuration like passthrough and error handling.DocumentationExample usage:user={'email':'email@email.com','firstName':'Foo','lastName':'Bar','status':'active','type':'administrator','tenantId':1,}payload=remap_dict(user,const={'password':'password'},passthrough={'email','status','type',},mapper={'first_name':'firstName','last_name':'lastName','tenant_id':'tenantId',},transformer={'full_name':lambdax:f'{x["firstName"]}{x["lastName"]}'})>>>payload{'status':'active','email':'email@email.com','type':'administrator','password':'password','first_name':'Foo','last_name':'Bar','tenant_id':1,'full_name':'Foo Bar'}
Package: remappy
OverviewREMAP (Chernyavsky & Wortmann, 2007, DOI 10.1029/2006GC001442) provides an easy to use interface for 1-dimensional reaction-transport modeling in porous media, and provides explicit support for kinetic stable isotope fractionation calculations.The original program was written as matlab program. Remappy provides a python wrapper to the original code which can be run viaoct2py.News:April 6th: v 0.0.0.8 build process now uses setuptools which should automatically create an executable remap.py script.April 5th: v 0.0.0.4, installation path is now updated during installation, non-python files are now included in installation script. Updated installation instructionsMarch 30th: Initial releaseInstallationpython -m pip install remappywill install all necessary files and dependenciesyou can now import remap into your python code (see below)The install process should have created a standalone remap.py script which you can run from the command line. Tryremap.py --help. This works for linux, and should work for Mac and Windows as well. If it fails you need to follow your os specific instructions on how to create an executable python program. On linux, it is sufficient to linkremap.pyto a directory which is in your path (often/usr/local/bin/) and set is a executable. Tools likehttps://datatofish.com/executable-pyinstaller/will also work on Mac and Windows.Usageremap.py: This behaves similar to the original remap but provides extended command-line parsing options, runremap.py --helpfor detailsyou can also import the library and use it inside of your own python code. The remap data will be returned as pandas dataframe.importremapimportpathlibasplimportpandasaspdfn:str="hg.rmp"# remap config filecwd:pl.Path=pl.Path.cwd()# get the current working directoryfqfn:pl.Path=pl.Path(f"{cwd}/{fn}")# fully qualified file nameifnotfqfn.exists():# check if file existraiseFileNotFoundError(f"Cannot find file{fn}")# run remap and return results as dataframedf:pd.DataFrame=remap.run_remap(str(fname))or use theoct2pyinterface directlyfromoct2pyimportoctaveoctave.addpath("/path/to/remap.m")fn="hg.rmp"# name of remap configuration file# call remap[c,conc,r,v,par]=octave.start_remap(fn,nout=5)DocumentationSee thepdf-docsfolder for the original REMAP documentation (see, e.g.https://github.com/uliw/remappy)Todoport more matlab code to pythonprovide more examplesdo more testingLicenseremappy: reaction-transport modeling Copyright (C), 2022 Ulrich G. WortmannThis 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 3 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, seehttps://www.gnu.org/licenses/.
Package: remarkable
# remarkable[![Build Status](https://secure.travis-ci.org/michaeljoseph/remarkable.png)](http://travis-ci.org/michaeljoseph/remarkable)[![Stories in Ready](https://badge.waffle.io/michaeljoseph/remarkable.png?label=ready)](https://waffle.io/michaeljoseph/remarkable) [![pypi version](https://badge.fury.io/py/remarkable.png)](http://badge.fury.io/py/remarkable)[![# of downloads](https://pypip.in/d/remarkable/badge.png)](https://crate.io/packages/remarkable?version=latest)[![code coverage](https://coveralls.io/repos/michaeljoseph/remarkable/badge.png?branch=master)](https://coveralls.io/r/michaeljoseph/remarkable?branch=master)![remarkable](https://github.com/michaeljoseph/remarkable/raw/master/resources/remarkable.jpg)## OverviewA mashup of http://lab.hakim.se/reveal-js and http://remarkjs.com* CLI that processes a MarkDown file and emits an HTML presentation## UsageInstall `remarkable`:pip install remarkable## CLIRun the cli:```remarkable.Usage:remarkable [options] remark <path-to-markdown-file> [<title>]remarkable [options] reveal <path-to-markdown-file> <title>remarkable -h | --helpOptions:--debug               Debug.-h --help             Show this screen.```Example:```$ remarkable remark application-to-platform.mdINFO:remarkable.cli:Created remark.html$ remarkable reveal application-to-platform.md application-to-platformINFO:remarkable.cli:Created application-to-platform/index.html```## Documentation[API Documentation](http://remarkable.rtfd.org)## TestingInstall development requirements:pip install -r requirements.txtTests can then be run with:nosetestsLint the project with:flake8 changes tests## API documentationGenerate the documentation with:cd docs && PYTHONPATH=.. make singlehtmlTo monitor changes to Python files and execute flake8 and nosetestsautomatically, execute the following from the root project directory:stir
Package: remarkable-cli
remarkable-cliAn unofficial command line interface (CLI) for interacting with the Remarkable paper tablet written in pure Python.Featurespull raw reMarkablexochitlfiles directly to the local machineconvert raw.rmpayloads into readable.pdfpull reMarkable web-interfacepdfdocuments directly to the local machineIn the workspush/pullpdffiles to reMarkable for annotation & readingpush/pullepubfiles to reMarkable for annotation & readinglive-share reMarkable screen to local machine... and more!Getting Startedpipinstallremarkable-cli# Pull raw xochitl files and render them into readable pdfremarkable-cli-apull# with DEBUG logging, clean the local backup directory before pulling all the raw xochitl files and rendering pdfremarkable-cli-vvvv-aclean-local-apull# show the CLI usage/helpremarkable-cli-hLicenseApache-2.0Copyright 2021, Alexander Wong

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: remarkable-fs
remarkable-fsallows you to see the contents of your reMarkable as a normal
folder on your computer. All your documents and folders are visible; you can
copy documents to and from the reMarkable, create folders, and move and delete
folders and files. You cannot, however, edit documents that are
already on the reMarkable (apart from moving or deleting them).It supports PDF files, EPUB files, and handwritten notes, but does not
yet support annotated PDFs (they are exported without annotations).This software is in an early stage of development. I take no responsibility if
it deletes your files or bricks your reMarkable! Do not use it if you are
unwilling to lose all your documents. Use at your own risk!Installationremarkable-fsworks on both Linux and macOS. Support for macOS may
be a bit patchy as I myself run Linux, but at least the basics should
work. To install it, you will need to have first installed:FUSE. If on macOS, get this from theFuse for macOSproject. If
on Linux, your package manager should have it.pip, the Python package installer. You can install this by runningsudo easy_install pipin a terminal.Then, to installremarkable-fs, run the following command in a
terminal:sudo pip install remarkable-fsNote for Linux users:remarkable-fssupports both Python 2 and 3,
but for handwritten notes it works much faster onPython 2.RunningMake an empty directory on your computer. This directory is where your
documents will appear. Then runremarkable-fs. You will be
prompted for the path to this directory; type it in. (On macOS, you
can instead drag the directory to the terminal window at this point.)You will then be prompted for the root password of your reMarkable.
You can find this by opening the settings menu of the reMarkable,
choosing “About”, scrolling to the very bottom, and finding the
paragraph beginning: “To do so, this device acts as a USB ethernet
device…” (If you don’t want to have to type in the root password
every time you runremarkable-fs, follow the instructions on
passwordless login from thereMarkable wiki.)If all goes well, you will find all your documents in the directory
you chose. You can copy PDF or EPUB files there, and they will appear
on the reMarkable; you can also move files around. Go wild!(On macOS, your reMarkable will also appear in the finder under the
menu Go -> Computer.)When you are finished, you can stopremarkable-fsby pressing ctrl-C.Note that your reMarkable will be unresponsive for the time you haveremarkable-fsrunning. It should start responding as soon as you closeremarkable-fsor unplug the USB cable. If for some reason it doesn’t, you
can force your reMarkable to restart by holding down the power button for five
seconds, letting go, and then pressing the power button for another second.CopyrightThe software is licensed under the MIT licence, apart from the file
remarkable_fs/rM2svg.py. That file is is licensed under the GNU LGPL
version 3, and is taken fromhttps://github.com/phil777/maxio.
Package: remarkable-keyboard
remarkable_keyboardUse your reMarkable as a wireless mouse and keyboard.Demo VideoUsageCopythis pdfto your device.pipinstallremarkable-keyboard
rekeyboardBy default,10.11.99.1is used as the address.Examples# specify address, password (listed under Settings > About)rekeyboard--address192.168.1.100--passwordPASSWORD# pubkey loginssh-keygen-f~/.ssh/remarkable-N''ssh-copy-id-i~/.ssh/remarkable.pubroot@10.11.99.1
rekeyboard--key~/.ssh/remarkable
Package: remarkable-mouse
remarkable_mouseUse your reMarkable as a graphics tablet.Special thanks tocanselcikandLinusCDEfor inspiration.Quick StartOn the host machine with the tablet plugged in via USB:pipinstallremarkable-mouse
remouseBy default,10.11.99.1is used as the address.  Find your password in the reMarkable'ssettings menu.  If you are on Linux using X11, you can use the--evdevoption for pressure support.To use the--regionflag, you may need to install thepython3-tkorpython3-tkinterpackage with your package manager.Examplesspecify monitor, orientation, passwordremouse--orientationright--modefit--monitor1--passwordfoobarpasswordless loginssh-keygen-mPEM-trsa-f~/.ssh/remarkable-N''ssh-copy-id-i~/.ssh/remarkable.pubroot@10.11.99.1
remouserunning with pressure sensitivity (Linux only)sudo--preserve-env=USER,PATHenvremouse--evdevUsageusage: remouse [-h] [--debug] [--key PATH] [--password PASSWORD] [--address ADDRESS] [--mode {fit,fill,stretch}] [--orientation {top,left,right,bottom}] [--monitor NUM] [--region] [--threshold THRESH]
               [--evdev]

use reMarkable tablet as a mouse input

optional arguments:
  -h, --help            show this help message and exit
  --debug               enable debug messages
  --key PATH            ssh private key
  --password PASSWORD   ssh password
  --address ADDRESS     device address
  --mode {fit,fill,stretch}
                        Scale setting. Fit (default): take up the entire tablet, but not necessarily the entire monitor. Fill: take up the entire monitor, but not necessarily the entire tablet. Stretch:
                        take up both the entire tablet and monitor, but don't maintain aspect ratio.
  --orientation {top,left,right,bottom}
                        position of tablet buttons
  --monitor NUM         monitor to output to
  --region              Use a GUI to position the output area. Overrides --monitor
  --threshold THRESH    stylus pressure threshold (default 600)
  --evdev               use evdev to support pen pressure (requires root, Linux only)
Package: remarkable-sim
remarkable_simInstallTkinter is a dependency. (python3-tkin Debian/Ubuntu)pip install remarkable-simUsageresimresimwill create 3 FIFOs atevent0,event1, andevent2in the current directory and will attempt to read fromfb.pgm10 times per second.  The application under test should write to this framebuffer file and read evdev events from the FIFOs.