Saravanan666/pypi-org huggingface dataset:
Package: rclab
A Fast And Egile Experiment ManagerMost of the experiments conducted at lab are
mainly scaning particular variables.
However when there are too many things to operate,
it will be inconvinient to do it without a managing tool.
Take Labber for example. It is an exellent tool to do experiemnts.
However Labber follows convetional software designing principles,
and it is comercial software.
The Labber system runs very bloated and it is un-operatable un-modifiable.
It heavily relay on GUI and tidious to operate.
So the managing tool Labber is only suitable to run few small scale experiments
that is conventional and easy.And for those who decide to directly use python to run experiments.
It might be the better choice for freedom and modifiability compared
to Labber.
However once the system gets complicated. It will also be tideous for
the user to manage it.
For example in the main loop of an experiemnt.
If some variables are scanned as shown as
Package: rcli
Rapidly create full-featured command line interfaces with help, subcommand
dispatch, and validation.rcliusesdocoptto give you the control over your usage messages that you
want, but adds functionality such as automatic subcommand dispatching, usage
string wrapping, internationalization, and parameter validation.InstallationInstall it using pip:pip install rcliFeaturesAutomatic creation of console scripts and entry points based on usage
strings.Argument parsing based on usage string.Usage string wrapping.Command line arguments are normalized into python function parameters.Validation of command line arguments usingPEP 484type hints.Logging with multiple levels and crash log generation.Color coded logging based on log level.Extensible subcommand generation based on entry point groups.Upcoming FeaturesAutomatic generation of bash and zsh autocompletion scripts.Internationalization of usage strings.Basic UsageTo usercli, addrclito yoursetup_requiresargument in yoursetup.pyand set theautodetect_commandsparameter toTrue.fromsetuptoolsimportsetupsetup(...,install_requires=['rcli'],setup_requires=['rcli'],autodetect_commands=True,...,)In your code, create a function with a usage string as its docstring and type
hint annotations for validation.defrepeat(message:str,num_times:int):"""Usage: repeat <message> [--num-times <num>]

    Arguments:
        message  A message to print to the console.

    Options:
        -n, --num-times <num>  The number of times to print the message [default: 1].
    """foriinrange(num_times):print(message)Once your package is installed, a new console scriptrepeatwill be
automatically generated that will validate and normalize your parameters and
call your function.Subcommand DispatchTo generate a git-style command line interface with subcommand dispatching, you
only need to create your subcommand functions and your primary command will
be automatically generated for you.defroar():"""Usage: cat-sounds roar"""print('ROAR!')defmeow():"""Usage: cat-sounds meow"""print('Meow!')This automatically generates the commandcat-soundswith the following help
message:Usage:
  cat-sounds [--help] [--version] [--log-level <level> | --debug | --verbose]
             <command> [<args>...]

Options:
  -h, --help           Display this help message and exit.
  -V, --version        Display the version and exit.
  -d, --debug          Set the log level to DEBUG.
  -v, --verbose        Set the log level to INFO.
  --log-level <level>  Set the log level to one of DEBUG, INFO, WARN, or ERROR.

'cat-sounds help -a' lists all available subcommands.
See 'cat-sounds help <command>' for more information on a specific command.
Package: rclickatell
rapidsms-clickatell===================.. image:: https://travis-ci.org/caktus/rapidsms-clickatell.svg?branch=develop:alt: Build Status:target: https://travis-ci.org/caktus/rapidsms-clickatellrclickatell is a basic `Clickatell <https://www.clickatell.com/>`_ backend for the`RapidSMS <https://www.rapidsms.org/>`_ project. Currently, rclickatell onlysupports Mobile Terminated (MT) SMS communication (sending outgoing messagesusing the Clickatell API), but could be extended in the future to supportMobile Originated (MO) messages.Requirements------------* Python 2.7 or Python 3.3+* `Django <http://www.djangoproject.com/>`_ >= 1.7* `RapidSMS <http://www.rapidsms.org/>`_ >= 0.18.0Installation------------* Install via pip::pip install rclickatellFeatures and Settings---------------------* Status Notification: rclickatell can be configured to enable Clickatell'scallback functionality. When setup, after sending a an outgoing message,Clickatell will ping the callback URL defined in your Clickatell APIaccount.Usage-----Once ``rclickatell`` is installed, add it to ``INSTALLED_APPS`` and ``INSTALLED_BACKENDS`` in settings.py::INSTALLED_APPS (...'rclickatell',...)INSTALLED_BACKENDS = {"clickatell": {"ENGINE": "rclickatell.backend"'user': '','password': '','api_id': '','callback' 3, # enable (levels 1-3) to enable Clickatell status notifications},}Testing-------Install ``tox`` and then run it::$ pip install tox$ tox
Package: rclog
rclogPackaging to the logging module in pythonInterfaceProvideset_logandget_logset_logset_logcan be configured in various ways, and there are the following configuration options:Args:
    handlers (list): _description_
    formats (list, optional): _description_. Defaults to [ "default", ].
    exist_loggers (bool, optional): _description_. Defaults to True.

Keyword Args:
    "{format_name}_format" (str, optional): _description_. Defaults to "<%(asctime)s>[%(levelname)s]%(name)s:%(message)s".
    "{format_name}_datefmt" (str, optional): _description_. Defaults to "%Y-%m-%d %H:%M:%S".
    "{handler_name}_class" (str, optional): _description_. Defaults to "Console".
    "{handler_name}_formatter" (str, optional): _description_. Defaults to "default".
    "{handler_name}_level" (str, optional): _description_. Defaults to None.
    "{handler_name}_filename" (str, optional): _description_. Defaults to None.
    "{handler_name}_maxBytes" (int, optional): _description_. Defaults to None.
    "{handler_name}_backupCount" (int, optional): _description_. Defaults to None.
    "{handler_name}_encoding" (str, optional): _description_. Defaults to "utf8".get_logTheget_logfunction can get theloggerobject, you can set the name, the file name that the default is called
Package: rclone
Rclone for Python🚀 Python wrapper for rclone.Requirements🐍Python>=3.6⬇️ Installationpipinstallrclone⌨️ Usagefromrclone.rcloneimportRclonerc=Rclone()📕 Examplespathname='gdrive:/remote/path'# you can also use a local pathrc.copy('foo.txt','remote:/path/to/dst')# 100%|███████████████████████████████████████| 0.16/0.16 [00:00<00:00,  1.13MB/s]rc.move('bar.bin','remote:/path/to/dst')# 100%|███████████████████████████████████████| 0.16/0.16 [00:00<00:00,  1.34MB/s]rc.unit='B'rc.copy('foo.txt','remote:/path/to/dst')# 100%|███████████████████████████| 159414.0/159414.0 [00:00<00:00, 1003822.00B/s]rclone.ls('remote:/path/to/dir')# ['foo.bin', 'bar.txt', 'foo/']rclone.lsjson('remote:/path/to/dir')# [#     {#         'Path': 'bar.txt',#         'Name': 'bar.txt',#         'Size': 0,#         'MimeType': 'text/plain; charset=utf-8',#         'ModTime': '2022-03-22T13:07:53.557168464-04:00',#         'IsDir': False#     }# ]rclone.ls('remote:/path/to/dir','-R')# you can supply additional flags to any command as positional argments# ['foo.bin', 'bar.txt', 'foo/', 'foo/foo1.txt', 'foo/foo2', 'foo/bar/foobar.txt']rclone.size('remote:/path/to/dir')# {'total_objects': 5, 'total_size': 170397}You can also use whatever subcommands/flags withexecute():#rclone.execute('ls "remote:/path/to/dir" --exclude *.txt')#       27 foo.bin#   159414 foo.csv.zip#     4808 rclone.py
Package: rclonecli
rcli - CLI Interface for rclonercliis a CLI interface for rclone that can:Download files and foldersSearch to navigate to a directoryCache remotes for quicker access timeNavigated through vim-like key bindings or arrow keysRequirementsPython >= 3.8rclone >= 1.53 and configured to at least one remoteInstallTo install on any system:pip install rcloneclior install locally by running:python3 -m build .
pip3 install dist/*.whlor develop locally by simply running:python3 -m rcliUsingTo startrcli, run:rcli remote:Whereremote:is the name of the remote, making sure to include the semicolon. If you are developing on this project, use the-vflag to get the output from thelogginglibrary into arcli.logfile.ContributingIf you find or think of a feature that would makerclibetter, feel free to pull request.
Package: rclone-crypt
rclone_crypt_pyEnglish,简体中文Python implementation of encryption/decryption for rclone (crypt storage)UsagefromrcloneimportCrypt# Initialize# Pass in passwd1 and passwd2# The password here is the password for creating the crypt, not the password in the rclone configuration file# If passwd2 is not set, the second parameter can be omittedcrypt=Crypt('PvrhK9lOaJMdJO2','bjnW66SNkUuV4hX')# To use passwords directly in the rclone configuration file(obscured password), you should set the passwd_obscured parameter to True.# crypt = Crypt('SpnX0yEFxpNJjo9bxd3xAlVoXA7F4cr3C0SA-zmfzw', 'ziWH7jKYerB6o5vHnaXAvISTguFD6ZFJFbhT3BlLVQ', True)# File encryption/decryptioncrypt.File.file_decrypt(input_file_path,output_file_path)crypt.File.file_encrypt(input_file_path,output_file_path)# File path encryption/decryption# obfuscatecrypt.Name.obfuscate_encrypt('Hello,Word')crypt.Name.obfuscate_decrypt('188.Nkrru,cuxj')#standardcrypt.Name.standard_encrypt('Hello,Word/你好，世界')crypt.Name.standard_decrypt('tj0ivgsmd9vh4ccfov7f739in0/lb8g1ak1849smj6mlmpv2c5aio')fromrcloneimportCryptcrypt=Crypt('PvrhK9lOaJMdJO2','bjnW66SNkUuV4hX')# bytes decryptionwithopen('test.bin','rb')asf:f.seek(8)# Skip the fixed file header b'RCLONE\x00\x00'init_nonce=f.read(24)# Read the noncef.seek(5*(1024*64+16),1)# Skip 5 data blocksinput_bytes=f.read(10*(1024*64+16))# Read 10 data blocksoutput_bytes=crypt.File.bytes_decrypt(input_bytes,init_nonce,5)# Decrypt the data blocks# bytes encryptionimportnaclwithopen('test.bin','wb')asf:f.write(b'RCLONE\x00\x00')# Write the standard headerinit_nonce=nacl.utils.random(24)# Generate a random nonce (24 bits)f.write(init_nonce)# Write the noncewithopen('origin.bin','rb')asfl:origin_bytes=fl.read(1024*64*10)# Read 10 data blocksi=0whileorigin_bytes:f.write(crypt.File.bytes_encrypt(origin_bytes,init_nonce,i))origin_bytes=fl.read(1024*64*10)i=i+10
Package: rclone-decrypt
rclone-decryptStatusDescriptionrclone-decryptis a utility which will decrypt files that were encrypted withrclone. The anticipated use-case is that a user has
independently downloaded anencryptedfile or directory directly from a
remote cloud storage (Backblaze B2/Amazon Drive/Dropbox/etc...) and now wants to
decrypt it.Given an rclone.conf file, this tool is simply a wrapper aroundrclonewhich
sets up a "local remote" to host the downloaded encrypted files and then callsrclone copyin order to decrypt the files into a desired output folder.Ostensibly I did this because my family backs-up our local NAS to a remote host
but the rest of my family prefers to download files one-off from the cloud host
and are not comfortable using the rclone CLI. This offers a CLI in addition to
an easy-to-use GUI to make life simple.NotesUse at your own risk! Be sure you have copies of anything you're trying to
decrypt, just in case something goes wrong!When decrypting files with encrypted filenames or folder names, the directory
or filename mustonlyconsist of the encrypted version. For example, if an
encrypted file was downloaded aspath_to_encypted_file_4567asd8fasdf67asdfwhere4567asd8fasdf67asdfis the encrypted part, the filename must be
renamed to exclude thepath_to_encypted_file_portion. Otherwise rclone will
complain about invalid encryption names.Windows isnotcurrently supported, although it probably would not take very
much work to get it there. I do not have ready access to a windows environment
on which to test.I'd love to make the GUI look more modern, but most solutions involve a style
which seems incompatible withtkinterdnd2which provides the drag
and drop feature.Installationpip3 install rclone-decryptRequirementsGeneralrclonemust be installed and in$PATHPython environmentPython >= 3.7 <3.12Python-tkmust be installed if using the GUIExecutableUNDER DEVELOPMENTAn OSX.appis generated but is currently untested.UsageCLI usage> rclone-decrypt --config /path/to/rclone.conf --files /path/to/file/or/dir/Example usages:> rclone-decrypt --config rclone.conf --files /home/my_encrypted_dir
> rclone-decrypt --config rclone.conf --files /0f12hh28evsof1kgflv67ldcn/9g6h49o4ht35u7o5e4iv5a1h28
> rclone-decrypt --config rclone.conf --files /home/my_encrypted_file.binGUI usageIf the python package is installed directly then the GUI can be invoked from the
command line, as shown below. Otherwise the packaged binary can be downloaded
and executed directly.Files can be dropped directly into the big white box.As files are dropped, if no output directory has been provided though the file
dialog, an output directory called 'out' will be created at the same directory
level as the last dropped file to be decrypted.A default location forrclone.confis provided, others can be browsed for.rclone-decrypt --guiDevelopmentsource .venv/bin/activate
poetry install
poetry run pytest
poetry run flake8
deactivate
Package: rclonedeobscure
Rclone deobscureDescriptionA simple script to decryptobscured/encrypted passwordsfrom RcloneFeaturesCan deobscure, and also obscure (equivalent ofrclone obscure)Options$ python rclonedeobscure.py -h
usage: rclonedeobscure.py [-h] [-d DEOBSCURE | -o OBSCURE]

version: 1.0

options:
  -h, --help            show this help message and exit
  -d DEOBSCURE, --deobscure DEOBSCURE
                        Obscured/encrypted password to deobscure/decrypt
  -o OBSCURE, --obscure OBSCURE
                        Plain-text password to obscure/encryptExamplesdeobscure$ python rclonedeobscure.py -d "j_NGTXg4iQHiNwmNXTT6goDab0un-q6XvHXbSuhxzqprLGUZXSNCWwI_qAl1iLTIIRtNug"
[+] obscured password	: j_NGTXg4iQHiNwmNXTT6goDab0un-q6XvHXbSuhxzqprLGUZXSNCWwI_qAl1iLTIIRtNug
[+] deobscured password	: CorrectHorseBatteryStaple0123456789!obscure$ python rclonedeobscure.py -o "passw0rd"
[+] plaintext password	: passw0rd
[+] obscured password	: F7VL23kUgcFtx9AFXtflKP5PHLiUxzl9

$ python rclonedeobscure.py -d "F7VL23kUgcFtx9AFXtflKP5PHLiUxzl9"
[+] obscured password	: F7VL23kUgcFtx9AFXtflKP5PHLiUxzl9
[+] deobscured password	: passw0rdDependencies and installationTheeasiest wayto setup everything:pip install rclonedeobscureand then directly use$ rclonedeobscureOr manually install requirements:pip install -r requirements.txtChangelogversion 1.0 - 2023-02-26: Initial commitCopyright and licenseLicenced under the MIT Licence, as the Rclone project is.All trademarks, service marks, trade names and product names appearing on this repository are the property of their respective owners.I don't own anything on rclone, neither am I affiliated or working on the project.ContactThomas Debize < tdebize at mail d0t com >
Package: rclone-ls
rclone_lsList files/dirs and their sizes in a given rclone path.Example usage$ ./rclone_ls googledrive:/backup
8196	.DS_Store
1747191312	books/
1503049236	downloads/
930638960	temp/
total:	8225934615


$ ./rclone_ls -H googledrive:/backup
8.2 kB	.DS_Store
1.7 GB	books/
1.5 GB	downloads/
930.6 MB	temp/
total:	2.7 GB


$ ./rclone_ls /home/david/books
259333833  book1.pdf
4534544    book2.pdf
total:  263868377


$ ./rclone_ls -h
usage: rclone_ls [-h] [-H] [--debug] rclone_path

List files/dirs and their sizes in a given rclone path. For instance: rclone_ls remote:/path

positional arguments:
  rclone_path  rclone path

options:
  -h, --help   show this help message and exit
  -H           Use unit suffixes: Byte, Kilobyte, Megabyte...
  --debug      Enable debug modeNoteThetotaloutput is printed in stderr.
To prevent it from being displayed, you can add the following to the command line:2>/dev/null.Therclone_pathparameter can also accept a local folder path like/home/david/books.InstallationManually install rclone:https://rclone.org/downloads/Configure your rclone remotes:https://rclone.org/commands/rclone_config/$ pip install rclone_lsChatGPT Python Developer AssistanceI sought assistance from ChatGPT during the the development and publication of this simple Python script, and I must say it was absolutely incredible. I'm sharing atranscript of our conversation.
Package: rclone-manager
RClone ManagerDefine multiple tasks using rclone to sync files from one cloud storage to another.Documentation:https://rclone-manager.readthedocs.io/en/latest/FeaturesDefine multiple tasksDefine timeouts for each taskCallbacks to run scripts after tasks completeRun tasks in parallelSave logs to filesInstallationRequirementsRCloneInstall from PyPIpipinstallrclone-managerExample UsageMove files from Local to Google Drivefromrclone_managerimportRClonesrc='./test_folder'dst='gdrive:rclone-test-folder'RClone(src,dst).move().run()print('Done')Copy files but terminate whenever you wantfromrclone_manager.rcloneimportRClonesrc='./test_folder'dst='gdrive:rclone-test-folder'rclone=RClone(src,dst).copy()rclone.run(wait=False)# Do something elserclone.terminate()
Package: rclone-python
rclone-python ☁️A python wrapper for rclone that makes rclone's functionality usable in python.
rclone needs to be installed on the system for the wrapper to work.Features ⚒️Copy, move and sync files between remotesDelete and prune files/directoriesList files in a directory including properties of the files.List available remotes.Generate hashes from files or validate them with their hashsum.Create new remotesCheck available remotesCreate and manage public links.Check the currently installed rclone versions and if updates are available.Installation 💾rclone_pythoncan be installed using pippipinstallrclone-pythonor by cloning this repository and running from within the root of the projectpipinstall.How to use 💡All functionally of this wrapper is accessible throughrclone.
The following example checks if rclone is installed.fromrclone_pythonimportrcloneprint(rclone.is_installed())TrueCreate new remoteCreate a new rclone remote connection with rclone's default client-id and client-secret.fromrclone_pythonimportrclonefromrclone_python.remote_typesimportRemoteTypesrclone.create_remote('onedrive',RemoteTypes.onedrive)Additionally, client-id and client-secret can be used with many cloud providers.fromrclone_pythonimportrclonefromrclone_python.remote_typesimportRemoteTypesrclone.create_remote('onedrive',RemoteTypes.onedrive,client_id='YOUR_CLIENT_ID',client_secret='YOUR_CLIENT_SECRET')Copyfromrclone_pythonimportrclone# copy all file in the test_dir on OneDrive to the local data folder.rclone.copy('onedrive:data','data',ignore_existing=True,args=['--create-empty-src-dirs'])Copying onedrive:data to data ⠸ ━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━  47% 110.0/236.5 MiB 0:00:04├─video1.webm                ⠸ ━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━  31% 24.4/78.8 MiB   0:00:06├─video2.webm                ⠸ ━━━━━━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━  45% 35.5/78.8 MiB   0:00:03└─video3.webm                ⠸ ━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━  35% 27.6/78.8 MiB   0:00:05DeleteDelete a file or a directory. When deleting a directory, only the files in the directory (and all it's subdirectories)
are deleted, but the folders remain.fromrclone_pythonimportrclone# delete a specific file on onedriverclone.delete('onedrive:data/video1.mp4')Prunefromrclone_pythonimportrclone# remove the entire test_dir folder (and all files contained in it and it's subdirectories) on onedriverclone.purge('onedrive:test_dir')Get Hashfromrclone_pythonimportrclonefromrclone_python.hash_typesimportHashTypesprint(rclone.hash(HashTypes.sha1,"box:data"){'video1.webm': '3ef08d895f25e8b7d84d3a1ac58f8f302e33058b', 'video3.webm': '3ef08d895f25e8b7d84d3a1ac58f8f302e33058b', 'video2.webm': '3ef08d895f25e8b7d84d3a1ac58f8f302e33058b'}DebugFor debugging progress related functionality, set the DEBUG flag to true:rclone.DEBUG=TrueThis will make the wrapper print the raw rclone progress.
Package: rcluster
rcluster makes launching and accessing an R cluster on AWS simple and
accessible.This repository will:Create a connection to your AWS accountCreate and save an AMI with the software and configuration neededAllow you to launch a manager and a stated number of worker nodes,
automating the network connections between them and hosting a common
NFS-based home folder under the defaultclusteruser:“/home/cluster” is shared between manager and all workers“/home/cluster/hostfile” contains the IPs of accessible worker
nodes and spare manager nodes, repeated based on the number of
available worker coresclusteruser’s “.Rprofile” defines the R functiondefaultCluster()that automatically reference the hostfile to
create a PSOCK-based clusterAfter that, login to RStudio Server as normal on the manager, rundefaultCluster(), and use the returned parallel cluster object withparLapply()and its peers.Getting StartedFirst, you must create and save locally your AWS access key ID and
secret access key
(instructions).Next, runrcluster-configfrom your command line. Note that this
function will, by default, write your AWS access key and secret access
key to a hidden folder in your user directory with no additional
security.There are currently three functions to launch and manage an R cluster:rcluster- Launch an R cluster on AWS using the default
configuration file. This function will open your default browser to
the RStudio Server login page on the manager instance once it is
live.rcluster-open- Access an active R cluster (opens a new tab in
your web browser to the RStudio Server instance, if available).rcluster-terminate- Terminate all instances associated with yourrclusterconfiguration.