Saravanan666/pypi-org huggingface dataset:
Package: remove-duplicates
Utility to recursive search and move/delete duplicate files of the same size and context in specified folder.If the storage folder (recycle_bin) is not specified, then duplicate files will be deleted!
If the number of command line parameters is zero, then the search folder = current folder.Command line parameters-st, --start_folder (first parameter): the folder with which the recursive search begins
-rb, --recycle_bin (second parameter): optional folder for storing duplicate files (move file).
-log, --log_file: log file.
-fnp, --fn_pattern: File name pattern. Only files matching the pattern are processed!
               Provides support for Unix shell-style wildcards. Default value is "*.*"
-nr, --not_recursively": If this parameter is set, then recursive search is disabled!Call examplermdup --start_folder=E:\YoutubeChannelsCopy --recycle_bin=E:\reserved --log_file=E:\reserved\logfile.txt --fn_pattern="*.png"Work logPyPihttps://pypi.org/project/remove-duplicates/After installation use rmdup --help instead of remove_dupInternationalizationMost of the program messages are translated into five languages: English, Russian, German, Spanish, French.
Package: remove-empty-comment
remove-empty-commentLittle pre-commit script that remove empty comments from your codeIf you feel the need for separators in your code, you might as well start using functions.Installation-repo:https://github.com/Pierre-Sassoulas/remove-empty-comment/rev:1.0.2hooks:-id:remove-empty-commentBefore################ main function###############defmain():a=1b=2c=a+b#print(c)After# main functiondefmain():a=1b=2c=a+bprint(c)
Package: remove_hairs
remove_hairsFunction form removing characters from both sides of string.DocumentationThere is just one functionremove_hairs()and one decoratorremove_hairs_decorator().remove_hairs()This function is useful, when you have string and you need to remove some
characters from both sides of the string.>>>fromremove_hairsimportremove_hairs>>>remove_hairs(",a-sd,-/")'a-sd'By default, the function uses set of characters defined in.HAIRS, which
is defined as/:;,-[]<>(). You can change that usinghairsparameter:>>>remove_hairs(" - a sd: --"," -")'a sd:'remove_hairs_decorator()As the name say,remove_hairs_decorator()is just decorator forremove_hairs():@remove_hairs_decoratordefx():return",a-sd,-/"assertx()=="a-sd"Or withhairsparameter:@remove_hairs_decorator(hairs=" -")defy():return" - a sd: --"asserty()=="a sd:"InstallationThe code is hosted atPYPI,
and you can easily install it using the following command:sudopipinstallremove_hairsTestingThis project usespy.testfor testing. Just runpy.testfrom the root of the project:$ py.test
============================= test session starts ==============================
platform linux2 -- Python 2.7.6 -- py-1.4.26 -- pytest-2.6.4
collected 2 items

tests/test_remove_hairs.py ..

=========================== 2 passed in 0.02 seconds ===========================Changelog1.0.1Fixedsetup.py.1.0.0Project created.
Package: removeOaExtension
# OpenAPI-extension-removerA tool to remove extensions of an OpenAPI document so that the resulting file conformes to the specification and can be used by other OpenAPI tools.## Why did I create this tool?One day I wanted to generate HTML from my OpenAPI document but I couldn't because the tool that I was using doesn't support vendor extensions (which is a part of the OpenAPI documentation). As such, to make the process more expedite I made this simple tool.## Future workIn the future, if the need arises I plan to evolve this tool to become an OpenAPI command line utility.## NotesThis project welcomes any improvement by pull request.# How to install?Execute `sudo pip3 install removeOasExtension` on a terminal to system-wide install the tool. Exclude the pip versionif you only have one version of Python installed and don't need to differentiate it.# UsageBasic usages:**Read from stdin and output to stdout**: removeOasExtension < cat sample.json
Package: remove-old-files
Remove old filesremove-old-filesis simple utility to clear folder for example with daily database dumps and leave only 3 newest.remove-old-files--helpusage: remove-old-files [-h] -x REMOVE_OLDER_THAN [-o] [-m FILE_MASK] [-d] folder

Removing files from folder which have modify file date older than X days.

positional arguments:
  folder                Directory where are files to be removed located.

optional arguments:
  -h, --help            show this help message and exit
  -x REMOVE_OLDER_THAN, --older-than REMOVE_OLDER_THAN
                        Remove files older than X (s)econds/(m)inutes/(h)ours/(D)ays. Example: 3D for 3 days.
  -o, --only-if-newer   Remevove older files than X smhD only if there are any newer files found.
  -m FILE_MASK, --file-mask FILE_MASK
                        Regexp matching filenames for removing. Example: ".*-db-dump-.*"
  -d, --dry-run         Dry run, withouth removing files.Example how to leave only 3 days old dumpsremove-old-files-x3D-o/dumps
Package: remove-quarantine
remove_quarantine pypi packageA package that on install removes quarantine bit from Indigo installed Plugins, from both Plugins and Plugins (Disabled) foldersUsage:  Should be used behind the scenes to remove quarantine plugin related issues by plugin authors.The package consists of very little, but on pip3 install remove_quarantine will run a script to remove quarantine bit from Indigo plugin packagesSimply having this in the requirements.txt file means with pip3 install of this library all current indigoPlugin bundles within Plugin and Plugin (Disabled) folders are unquarantined.  This includes the current folder which is having libraries install into it.
In my test this completely resolves the binary quarantine issue.It is hard coded to Indigo version through lack of any possible other approach.  Hence will need new releases with Major Indigo version changes.InstallationTo install the package, run:pip3installremove_quarantine==2023.2.*With version here equally the Indigo version you wish to apply to.  Note the last star updating to latest minor/patch version.UsageHere's how you can use the package:Add it to requirements.txtrequirements.txt contents:remove_quarantine==2023.2.*added to always update to any minor version/patch changesNo import in code needed.   No further code needed.
Version number == Indigo version numberPotential issuesIf pip has cached the package and version then the unquarantine command will not be executed with import alone.
This can be overcome by using the --no-cache-dir with pip3 install
eg.pip3install--no-cache-dirremove_quarantine==2023.2.*If this option is not available, then the below aspects can be used early in import process.eg. plugin.py, remove_quarantine==2023.2.* in requirementsfromremove_quarantineimportremove_quarantine,show_loggingremove_quarantine()importloggingimportindigoOther usageBelow is not needed, simply have this in the requirements.txt file means with every pip3 install of this library all current indigoPlugin bundles within Plugin and Plugin (Disabled) folders are unquarantined.  This includes the current folder which is having libraries install into it.
In my test this completely resolves the binary quarantine issue.fromremove_quarantineimportremove_quarantine,show_loggingprint(show_logging())## Will display logging of installation removal of quarantine bitsresults_remove=remove_quarantine()print(results_remove)## Will re-run the quarantine removal process and print the results from this.pip3remove_quarantineLicenseThis project is licensed under the MIT License - see the LICENSE file for detailsMIT LicenseCopyright (c) [2023]Permission 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:
Package: removesalt
removesaltAdd a short description here!A longer description of your project goes here…Making Changes & ContributingThis project usespre-commit, please make sure to install it before making any
changes:pip install pre-commit
cd removesalt
pre-commit installIt is a good idea to update the hooks to the latest version:pre-commit autoupdateDon’t forget to tell your contributors to also install and use pre-commit.NoteThis project has been set up using PyScaffold 4.1.4. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: removinator
A library for controlling the Smart Card Removinator device.The Smart Card Removinator is a hardware device designed for automation of
smart card testing with physical tokens. Testing with physical tokens often
requires smart cards to by removed and inserted from the card reader to trigger
things like screen locking, or simply to test multiple models of tokens or with
different certificates. The Smart Card Removinator electronically switches the
card that is connected to a reader from a bank of cards in response to commands
issued to it over a serial interface.The removinator library provides a convenient way of interfacing with the
serial interface of the Smart Card Removinator from Python programs.See the Smart Card Removinator project page for more information:https://github.com/nkinder/smart-card-removinatorRequirementsRuntimepyserialInstallation and testingpipsetuptools >= 18.0wheel
Package: remQte
remQteRemote Control for Samsung smart TVs newer than 2016.Requirementspython3.9+PyQt6wakeonlansamsungtvwsssdpyInstallLinux and co.python -m pip install remQte

remQteWindowspy -m pip install remQte

remQte.exeBuild Python Package from sourcegit clone https://github.com/barfnordsen/remQte.git

cd remQte

python -m buildFeaturesQt6 GuiTV discovery using ssdpimporting Channel_list_[$modelstring].zip filesTurning TV on using wakeonlanIssues and TippsFeel free to submit issues and Tipps.This is my first software project with python and qt so please be patient with me :)
Package: remrpc
REdis Msgpack RPCInstallationpipinstallremrpcExampleimportredisimportremrpcdefadd(a,b):returna+bdefsub(a,b):returna-bdefmulti():return"Hello","World"defkvfunc(k="key",v="val"):return"{0}={1}".format(k,v)defnonreturn():print("Non Return")classCallObject:def__call__(self,name):return"Hello{0}".format(name)if__name__=="__main__":pool=redis.ConnectionPool(host="127.0.0.1",port=6379,password="123456")rpc1=remrpc.RPC(redis.Redis(connection_pool=pool),"channel:rpc1")rpc2=remrpc.RPC(redis.Redis(connection_pool=pool),"channel:rpc2")rpc1.register(add)rpc1.register(sub)rpc1.register(multi)rpc1.register(kvfunc)rpc1.register(CallObject(),'sayhello')rpc1.register(nonreturn)try:invoker=rpc2.invoker("channel:rpc1")print(invoker.add(1,2))print(invoker.sub(9,5))print(invoker.multi())print(invoker.kvfunc(k="KEY",v="VALUE"))print(invoker.sayhello("World"))print(invoker.nonreturn())print(invoker.nonexistent())exceptremrpc.TimedoutRPCase:print("> RPC Timedout:{0}".format(e))exceptremrpc.CallErrorRPCase:print("> RPC Call Error:{0}".format(e))exceptremrpc.ExceptionRPCase:print("> RPC Exception:{0}".format(e))rpc1.close()rpc2.close()
Package: remrunner
Remote RunnerTransfer a local script file to a remote host and execute it.RequirementsPython 2.7 and Python 3 are supported.Paramiko 1.10+.Installpip install remrunnerSynopsisfrom remrunner import runner
r = runner.Runner(host, username)

rval, stdout, stderr = r.run('/path/to/local/script.py')
if rval:
    print(stderr)
else:
    print(stdout)

r.close()UsesGreat when using scripts to collect information from a large number of remote hosts.No need to maintain scripts across multiple systems. Only the script versions on the local host need to be maintained.DetailsNamed files are copied to a temp location (./.remrunner/[PID]/) on the remote
host, permissions are set to 0700, and script is then executed.On cleanup, the [PID] directory and all contents are removed before closing
the connections.APIClass Runnerinit(host, user, kwargs)host: Required. IP Address or FQDNuser: Optional. Defaults to current running user on local machine.keyword-args:auto_add: (Boolean) Defaults to True. Set Paramiko Client.AutoAddPolicy.run(script, sudo, timeout, opts)Run the named local script on remote host.script: Path to script on local machinesudo: (Boolean) Defaults to False. When true, the execution command on
remote machine will be prefaced with “sudo “timeout: (seconds, optional) Defaults to 10opts: optional command-line arguments that will be passed to remote script.close()Clean up temporary directories on remote host and close SSH and SFTP sessions.ExamplesRun remote script with sudo:r.run(script, True)Run remote script and specify a 60 second timeout:r.run(script, False, 60)Run remote script with timeout and optional arguments:r.run(script, False, 15, "--verbose --interval=4")Known IssuesCurrently, as this is intended to be used for automation,remrunnerassumes
that SSH keys to allow password-less logins are already in place.
There is no option to prompt for password or ssh passphrase.
Maybe in a future release.To DoCould use better exception handling in a few places.
Needs a tests.
Probably needs sanitizing/de-tainting of optional user arguments.AuthorJeff Leary (sillymonkeysoftware -at- gmail -dot- com)
Package: remt
Remt is note-taking support tool for reMarkable tablet.FeaturesreMarkable tablet operationslist files and directoriescreate directoriesexport a notebook as PDF file using reMarkable tablet renderer or
Remt project rendererexport an annotated PDF document using reMarkable tablet renderer or
Remt project rendererimport a PDF documentcreate index of PDF document annotationsinteractive selection of files on a tablet usingfzfcommandcache of reMarkable tablet metadata to speed up tablet operations;
caching supports multiple devicesRemt project renderer supportsexport of large files and usually produces smaller PDF files comparing
to the reMarkable tablet rendererprocessing of multi-page notebooks and PDF filesmost of the drawing toolsRemt project can be used as a library for UI and other applicationsAcknowledgementsKudos tohttps://github.com/phil777/maxiohttps://github.com/reHackable/maxiohttps://github.com/reHackable/scriptshttps://plasma.ninja/blog/devices/remarkable/binary/format/2017/12/26/reMarkable-lines-file-format.htmlhttps://github.com/Samathy/pdfcommentextractorDisclaimerThis project isnotan official project of the reMarkable company.LicenseRemt project is licensed under terms of GPL license, version 3, see COPYING
file for details. As stated in the license, there is no warranty, so any
usage is on your own risk.
Package: remtorch
Example of usageimportiofromPILimportImageimportnumpyasnpimporttorchfromremtorchimportRemoteDatasetclassImageDataset(RemoteDataset):defprepare_item(self,item):buf=io.BytesIO(item)buf.seek(0)img=Image.open(buf)returnnp.array(img)ds=ImageDataset('servername','username','password','/path/to/files',batchsize)dl=torch.utils.data.DataLoader(ds,batchsize)forimgindl:# do smth
Package: remu
A framework for likelihood calculations and hypothesis testing using binned events and response matrices.SetupInstalling development version from sourceIt is recommended to run this software in a virtual Python environment
(virtualenv). This ensures that all required packages are present in the tested
version and do not interfere with other packages installed on the system. The
easiest way to do so, is to simply sourcesetup.shafter checking out the
source code:$ . setup.shThis will automatically do something along these lines:$ # Create a new virtual environment
$ virtualenv ENV
$ # Activate the environment
$ . ENV/bin/activate
$ # Upgrade pip to the latest version (optional)
$ pip install --upgrade pip
$ # Install all required packages
$ pip install -r requirements.txt
$ # Install actual package
$ pip install -e .It will only create a new virtual environment if one does not exist already.
You can also specify which Python version to use by providing the respectivevirtualenvargument tosetup.sh, e.g.. setup.sh-ppython3. You
might need to install additional system libraries to compile all packages.ReMU requires Python >=3.7.Installing official releases withpipAlternatively you can install official releases directly withpip:$ # Create a new virtual environment
$ virtualenv ENV
$ # Activate the environment
$ . ENV/bin/activate
$ # Upgrade pip to the latest version (optional)
$ pip install --upgrade pip
$ # Install remu and its dependencies
$ pip install remu==1.0.0If you want to make sure the optional dependencies are also installed,
use pip’s ‘Extras’ syntax:$ # install remu including all optional dependencies
$ pip install remu[mcmc]==1.0.0TestsRun all test cases of the framework:$ pip install -r test-requirements.txt
$ ./run_tests.shOnline documentationOnline documentation including examples can be found on the project’s readthedocs page:https://remu.readthedocs.ioCitingIf you use ReMU in a publication, please cite it as follows:L. Koch, ReMU - Response Matrix Utilities, http://github.com/ast0815/remu, doi:10.5281/zenodo.1217572Or just use the DOI and let your bibliography manager handle the rest for you.
You can cite specific versions of the software too. Just follow the link
behind the DOI badge and choose the DOI specific for the release.
Package: remu-operator
Remu-OperatorThis is framework to separate the resolution of operator precedence and associativity from parsing time,
by using a concise algorithm instead of Shunting Yard algorithm.Taine Zhaois the author of this algorithm, and has named it "Operator Bubbling".fromremu_operatorimportOperator,binop_reduceprecedences={'+':1,'*':2,"^":3,}left=Falseright=Trueassociativities={'+':left,'*':left,'^':right}defcons(v):returnlambdal,r:'({}{}{})'.format(l,v,r)x=binop_reduce(cons,[1,Operator("+"),2,Operator("*"),3,Operator("^"),4,Operator("^"),5,Operator("+"),6,Operator("*"),7],precedences,associativities)assertx=='((1 + (2 * (3 ^ (4 ^ 5)))) + (6 * 7))'
Package: remy
Remy is a tool for managing Chef repositories and automating the addition and
management of cookbooks with a chef server using Jenkins and GitHub.For the Jenkins integration to work properly, the following plugins are required:Github PluginJenkins Git client pluginThe following Jenkins plugin is optionally supported:Jenkins Hipchat PluginRemy requires Python 2.6 or 2.7[![PyPI version](https://badge.fury.io/py/remy.png)](http://badge.fury.io/py/remy) [![Downloads](https://pypip.in/d/remy/badge.png)](https://crate.io/packages/pamqp) [![Build Status](https://travis-ci.org/gmr/remy.png?branch=master)](https://travis-ci.org/gmr/remy)CommandsRemy currently supports the following commandscookbooks: This command should be invoked by jenkins to automatically add or update cookbooks or their dependencies as submodules in chef-repogithub: Install the Jenkins service hook into a GitHub Projectnew-cookbook: Setup a new cookbook job in Jenkins
Package: re-name
Example PackageThis is a tool that you can update file names in batchre_name [old patten] [new patten]optional parameters-f --file This will make changes on file(s), you can only review the changes without this
--ext        Specify the file types you want to update
-s --suffix  Will append suffix. # stands for the sequence for file listre_name -f '-\d' ""hello1-1.txt  ---->  hello1.txtre_name -f 55 ll -s "#"he55o1.txt  ---->  hello1-1.txt
he55o2.txt  ---->  hello2-2.txt
he55o3.txt  ---->  hello3-3.txtre_name -f "55" "ll" --prenumhe55o1.txt  ---->  001_hello1-1.txtre_name -f "55" "ll" --prenum 5he55o1.txt  ---->  00001_hello1-1.txt
Package: rename-after-writing
A python-library to help with the completeness of files when moving, copying and writing.
Writing a file is not atomic. In the worst case the process writing the file
dies while the file is not yet complete.
Also in some network-file-systems, the destination of amoveorcopymight show up before it is complete.
Incomplete files are a potential risk for the integrity of your data.
In the best case your reading process crashes, but in the worst case the incompleteness goes unnoticed.
This package reduces the risk of having incomplete files by making all writing
operations write to a temporary file in the destination’s directory first before renaming it to its final destination.
On most file-systems this final renamig is atomic.Installpip install rename_after_writingFunctionsopenJust like python’s built inopen()but when writing (mode=w) everything is writen
to a temporary file in the destination’s directory before the temporary file is renamed to the final destination.importrename_after_writingasrnwwithrnw.open("my_file.txt","wt")asf:foriinrange(10):f.write(input())copyCopies the file first to a temporary file in the destinations directory
before moving it to its final path.importrename_after_writingasrnwrnw.copy(src="machine/with/src",dst="other/machine/in/network/dst")moveSome implementations of network-file-systems might raise anOSErrorwitherrno.EXDEVwhen anos.rename()is going across the
boundary of a physical drive.
In this case, this package’scopyis used to copy the file beore unlinking
the source-file.importrename_after_writingasrnwrnw.move(src="machine/with/src",dst="other/machine/in/network/dst")
Package: renameat2
python-renameat2This is a Python wrapper (usingCFFI) around Linux'srenameat2system call. Withrenameat2, you can atomically swap two files, choose if existing files are replaced, and create "whiteout" files for overlay filesystems.RequirementsThis package requires Python 3.6. I tried building it for Python 3.5 and got some syntax errors with the type declarations. I don't care about Python 3.5 personally so I didn't bother fixing it. If you care about Python 3.5 and want to write a patch to make it work there too, I would consider merging it.This package requires Linux, becauserenameat2is a Linux-specific system call. Your kernel must be version 3.15.0 or newer to userenameat2; it does not exist in older kernels. Importing this module will raise aRuntimeErrorif you are not running on Linux or if your kernel is older than 3.15.0.This package does not have any libc requirements; glibc includes a wrapper forrenameat2in version 2.28 and newer, but this is significantly newer than the glibc in any of themanylinuxcontainers. In order to avoid inflicting any libc requirements on the user, this package brings its own wrapper function that makes the system call directly.StatusStableish? It's just a single system call and I can't imagine doing too much more with the interface. I did use this project to brush about 11 years of dust off of my Python packaging techniques, though, so let me know if you see anything amiss. Pull requests are welcome.LinksDocumentationPyPIGitHub repositoryLicenseThis package is provided under theMIT License.
Package: rename-beep-files
Rename Beep FileThis script is useful to rename all files inside a folder.Indeed it replaces all the instances of a target string (target) in the base name of each file with the character specified (char).The default values are:target =+char =(space character)It is a very simple tool but very useful when directly downloading zip files from folders from theBeep site. But its usage can be extended.InstructionsInstall the script.pipinstallrename-beep-filesUse it in the terminalrename-beep-fileYou may include several options:recursivetargetcharfolder path$rename-beep-files-husage:rename-beep-files[-h][-r][-tTARGET][-cCHAR][paths[paths...]]Processrenamesallthefileintothetargetdirectory.

positionalarguments:pathsSpecifyallthefoldersinwhichexecutetherenaming

optionalarguments:-h,--helpshowthishelpmessageandexit-r,--recursiveExecutetherenameactionrecursivelyintoallsubdirectoriesoftargetedfolder-tTARGET,--targetTARGETSpecifythecharactertoreplace-cCHAR,--charCHARSpecifythecharacterwithwhichyouwanttoreplace