Saravanan666/pypi-org huggingface dataset:
Package: backups
BackupsTool to backup databases.Installationpip install --upgrade backupsUsage$ backups --help
Backups mysql databases

Usage:
  backups env
  backups ls                    [--file FILE] [--verbose]
  backups show JOB              [--file FILE] [--verbose]
  backups databases JOB         [--file FILE] [--verbose]
  backups run JOB               [--file FILE] [--verbose] [--dryrun]
  backups run JOB [DATABASE]    [--file FILE] [--verbose] [--dryrun]

Commands:
  env         Show the current environment
  ls          Prints the backup job names
  show        Prints the configuration for a job
  databases   Lists all databases on a backup job server
  run         Runs the backup for a job

Options:
  -f --file FILE    The backups config file (default /etc/backups/backups.yaml)
  -d --dryrun       Just prints the commands but doesn't execute them
  -v --verbose      Adds verbosity
  -h --help         Prints this help
     --version      Prints the current version

Environment variables:
  BACKUPS_FILE          The backups file (default /etc/backups/backups.yaml)
  BACKUPS_DUMPS_DIR     The dumps directory (default /tmp/backups)
  BACKUPS_MYSQLDUMP     The mysqldump binary (default picked from $PATH)
  BACKUPS_LOG_LEVEL     Default INFO
  BACKUPS_STDERR        The stderr log file (default /tmp/backups.err)

Check https://github.com/ptdorf/backups#backups for more infoSetupCreate abackups.yamlfile with content similar to:backups:jobs:acme:connection:type:mysqlhost:!Env${BACKUPS_DB_HOST:acme.com}username:!Env${BACKUPS_DB_USERNAME:backup}password:!Env${BACKUPS_DB_PASSWORD}options:# Dumps the entire server into a single file (this is the default)server:true# By default it will create a single dump file for each database found# Uncomment to only backups specific databases (one on each file)# databases:# - main_db# - other_dbcompress:-type:zippasword:!Env${BACKUPS_ZIP_PASSWORD}upload:-type:s3bucket:acme-backupsprefix:databasesenabled:truenotify:-type:slackchannel:"#backups"webhook:!Env${BACKUPS_SLACK_WEBHOOK:https://hooks.slack.com/services/x/y/z}Notice the use of the environment variables, likeBACKUPS_DB_HOST, used in
combination with the!Envyaml resolver. If they exist they get resolved to
their values. Use the format${VAR_NAME:default_value}to usedefault_valueif$VAR_NAMEis not defined.Now run it withbackups run acme --file backups.yamlYou can use theBACKUPS_FILEenv var instead:export BACKUPS_FILE=backups.yaml
backups run acme
Package: backup-sendgrid-templates
backupSendgridTemplatesBackup the dynamic templates of a Sendgrid account.Backup files can be stored on your local file system or a S3 bucket.Requirementspython 3.8 or higherInstallationCreate and activate a virtual environment. Thenpython -m pip install backup-sendgrid-templatesSetupSome environment variables are required:SENDGRID_API_KEY- Sendgrid API key with full access (https://app.sendgrid.com/settings/api_keys)SENDGRID_TEMPLATES_BUCKET_NAME- the name of your bucket if you want to use S3 as destinationSENDGRID_TEMPLATES_BASE_PATH- the path where to store files on your file systemThe Sendgrid api key must have full access (more infohere).UsageRun at command line> backup_sg_on_file_system     # to create the backup files on your local file system
> backup_sg_on_s3              # to create the backup files on a S3 bucketRun inside a scriptfrom backup_sendgrid_templates.service import BackupSendgridTemplatesService
from backup_sendgrid_templates.strategies import FileSystemStrategy, S3Strategy

BackupSendgridTemplatesService(strategy=FileSystemStrategy()).run()
# or BackupSendgridTemplatesService(strategy=S3Strategy()).run()Two files are created for each template: a .json file containing the template metadata (like name, subject, etc.)
and an HTML file with the template content.Restoring a templateCreate a new template on the Sendgrid website.
In thedesignpage, open theBuildtab and expand theadvancedsection.Click onImport Drag & Drop HTMLand paste the html content retrieved from the backup.ReferencesSend an email using a Sendgrid dinamyc transactional template:https://docs.sendgrid.com/ui/sending-email/how-to-send-an-email-with-dynamic-transactional-templatesSendgrid API:https://docs.sendgrid.com/for-developers/sending-email/api-getting-startedOfficial Python wrapper by Sendgrid:https://github.com/sendgrid/sendgrid-python
Package: backuptools
backup-toolsBackup, restore, version control local data to google drivePrerequisitesPython >= 3.6InstallpipinstallbackuptoolsUsageCreate config fileCreate and download google account service json filecredentials.jsonforgoogle drive serviceShare Google Drive folder for Service Account emailGetidof Google Drive folder and put tobackuptools.config.jsonbelowCreatebackuptools.config.jsonwith content:{"drive_credentials":"<path/to/credentials.json>","drive_root_id":"<id_of_drive_folder>","resources":[{"type":"GoogleDriveBackupResource","name":"<resource_name>","args":{"local_resource_path":"<path/to/local/source>","local_backup_folder_path":"<path/to/local/backup/folder>","drive_backup_folder_path":"<path/to/drive/backup/folder>"}}]}BackupWith auto namebackuptools-R<resource>backupWith specific namebackuptools-R<resource>backup<version>Restorebackuptools-R<resource>restore<version>List versionList all local and remote versionbackuptools-R<resource>lsList local only versionbackuptools-R<resource>ls--localList remote only versionbackuptools-R<resource>ls--remoteCreate local versionWith auto namebackuptools-R<resource>createWith specific namebackuptools-R<resource>create<version>Extract local versionbackuptools-R<resource>extract<version>Push versionPush one local version to remotebackuptools-R<resource>push<version>Push all local versions to remotebackuptools-R<resource>push--allPull versionPull one remote version to remotebackuptools-R<resource>pull<version>Pull all remote versions to localbackuptools-R<resource>pull--allSync versionsUpload all local versions to remote and download all remote versions to localbackuptools-R<resource>syncRemove versionRemove one version on local and remotebackuptools-R<resource>rm<version>Remove one version on localbackuptools-R<resource>rm<version>--localRemove one version on remotebackuptools-R<resource>rm<version>--remoteRemove all version on local and remotebackuptools-R<resource>rm--allRemove all version on localbackuptools-R<resource>rm--all--localRemove all version on remotebackuptools-R<resource>rm--all--remoteDevelopmentPrerequisitespipenvinstallTestCreate Google Drive Service account and download json keyCopy to file to pathcredentials/credentials.jsonCreate filetest/local_config.pywith content:ROOT_ID="1rbi0gr7yMAFKqEgx-pBp6kKJx1Z4Tcgm"CREDENTIALS_PATH='credentials/credentials.json'Test command line./test.sh
Package: backup-to-s3
Installation$[sudo]pipinstallbackup-to-s3$[sudo]npmi-gbackup-to-s3How it works<s3-bucket-name>/<slug>/<year>/<year-month>/<year-month-day>/name-<datetime>.tar.gzConfigenvironment variables (optional):variabledescriptiondefault valueBACKUP_TO_S3_BUCKETs3 bucket namebackup-to-s3-<account-id>BACKUP_TO_S3_EXCLUDE_FROMexclude patterns$XDG_CONFIG_HOME/backup-to-s3/exclude.txt, e.g.~/.config/backup-to-s3/exclude.txtExamples$cd~
$backup-to-s3gitreadme42.com
Package: backup-utils
Backup UtilsThe goal of this project is to create a front to a backup program like Borg.
Indeed, Borg is a really great tool for backup,
but I always write a bash script to specify directories I want to save.
I also use Rclone to synchronize my backup to a remote.
And finally, I need to backup my database.There are three steps to backup :Database exportArchivingSynchronizeFor each step, you can use multiple drivers for multiple tools.
Also if something goes wrong, all Exceptions are catches to send a notification.By default, database export usemysql, archivingborg, and synchronizerclone.Visitdocumentationfor more details.
Package: backup-with-rsync
Backup WithrsyncDoes what it says. Useful for frequent syncing between two devices with
similar directory hierarchies. I use it for daily copying (over ssh)
between one laptop (desktop replacement at home) to the other (more
portable laptop).Why?rsynchas a lot of switches, and it’s exhausting to loop over them
with say--deleteflag for certain directories and not for others.
With this script one can specify all that in a configuration file and
just sync whenever you want.Featuresyamlconfiguration to specify directories and flagsOverriding arguments supported at command line.SensiblersyncdefaultsExample configurationhost:user@portableroot:/home/usersupported_dirs:Documents:delete:falseDownloads:delete:falseMail:delete:trueVideos:delete:true
Package: backutil
backutilPython Backup UtilityDescription:backutilis a wrapper for the pythontarfilelibrary. Astarfileis a standard Python library, usingbackutilwill provide a cross-platform and simple backup utility.Installation:Install usingpip:sudo pip3 install backutilUsage:❯ backutil --help
usage: backutil [-h] [--path PATH [PATH ...]] [-o OUTFILE] [--webdav URL]
                [--remote REMOTE PATH] [--encrypt RECIPIENT] [-z] [--rm] [-v]
                [-q] [-i] [-V]

Python backup utility

optional arguments:
  -h, --help            show this help message and exit
  --path PATH [PATH ...]
                        path(s) to backup
  -o OUTFILE, --outfile OUTFILE
                        output file of backup
  --webdav URL          WebDav URL to upload to
  --remote REMOTE PATH  Remote WebDav path to upload to
  --encrypt RECIPIENT   Use gpg to encrypt file
  -z, --zip             use gzip to compress the backup file
  --rm                  remove local backup file
  -v, --verbose         enable verbose output
  -q, --quiet           suppress output
  -i, --insecure        ignore SSL certificate warnings
  -V, --version         print version of backutilExample commands:Backup two files to a .tar archive:❯ backutil --path tmp.txt tmp2.txt --outfile ~/Documents/file.tarBackup and compress to .tar.gz archive:❯ backutil --path tmp.txt tmp2.txt --outfile ~/Documents/file.tar.gz -zBackup to a .tar archive verbosely:❯ backutil --path tmp.txt tmp2.txt --outfile ~/Documents/file.tar -vBackup and compress to a .tar.gz archive, supressing output:❯ backutil --path tmp.txt tmp2.txt --outfile ~/Documents/file.tar.gz -z -qBackup file, zip it and upload to Nextcloud Webdav as file.tar.gz in the Nextcloud user's root directory:❯ backutil --path tmp.txt tmp2.txt --outfile ~/file.tar.gz --webdav 'https://cloud.example.com:8080/' --remote file.tar.gz -zBackup files, zip them and upload the archive to Nextcloud Webdav as file.tar.gz in the Nextcloud user's root directory, then remove the local archive:❯ backutil --path tmp.txt tmp2.txt --outfile ~/file.tar.gz --webdav 'https://cloud.example.com:8080/' --remote file.tar.gz -z --rmConfiguration:Backutil supports a configuration file storing details, which enables non-interactive usage of backups (in case you'd like to run backutil as a cron job or something similar).Place the file in your home directory as.backutil.conf. Currently this is the configuration you can use:[WEBDAV]
Username = username
Password = mysupersecretpassword
#Command = command_to_print_passwordI would recommend not storing your password in plaintext and usegpg,passor some other secure way to print your password from the command line without storing it unencrypted. That is why the 'Command' directive is supported in the configuration.Additional Information:Currently WebDav functionality has only been tested on an instance of Nextcloud.
Package: backward
A simple programming language and inference engine powered bybackward chaining.
When given rules and facts, it will deduce new information.Installationpip install backwardUsage>>>frombackwardimportBackward>>>ctx=Backward()>>>_=ctx.evaluate("a => b")>>>_=ctx.evaluate("b => c")>>>_=ctx.evaluate("= a")# a is true>>>ctx.evaluate("a b c")# are b and c true?[True,True,True]You can also typepython-mbackwardinto your shell to enter an interactive REPL.SyntaxC => E          # C implies E
A & B & C => D  # A and B and C implies D
A | B => C      # A or B implies C
A & !B => F     # A and not B implies F
C | !G => H     # C or not G implies H
V ^ W => X      # V xor W implies X
A & B => Y & Z  # A and B implies Y and Z

= A B G         # Initial facts : A, B and G are true. All others are false.
G V X           # What are G, V and X ?ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Package: backwards-regression
Backwards Regression Python Library Version 0.2.0 - Automated feature selection in linear and logistic regression models.The Backwards Regression Python Library is an open-source toolkit for automated feature selection in regression models. It supports both linear and logistic regression, dynamically selecting the appropriate method based on the target variable, and allows users to specify the optimization method.Installationpipinstallbackwards_regression==0.2.0Load Package## Load Packagefrombackwards_regressionimportfit_logistic_regression
frombackwards_regressionimportfit_linear_regressionUsage## (Linear) With interactions included - set to True and Without Interactions included - set to Falseresult,dropped_vars=fit_linear(X,y,threshold_in=0.01,threshold_out=0.05,include_interactions=True,verbose=True,method='pinv')## Print Selected featuresprint("Final included features:",result)## Print Eliminated featuresprint("Dropped variables:",dropped_vars)## (Logistic) With interactions included - set to True and Without Interactions included - set to Falseresult,dropped_vars=fit_logistic(X,y,threshold_in=0.01,threshold_out=0.05,include_interactions=True,verbose=True,method='bfgs')## Print Selected featuresprint("Final included features:",result)## Print Eliminated featuresprint("Dropped variables:",dropped_vars)Key FeaturesAutomated backward regression for linear and logistic regression models.Inclusion and exclusion of features based on user-defined significance thresholds.Optional specification of optimization method for model fitting.Optional inclusion of interaction terms for enhanced model complexity.This library is suitable for data scientists, researchers, and practitioners working with regression problems who seek a streamlined approach to feature selection. The library intelligently adapts to the nature of the target variable, supporting both linear and logistic regression models, and allows for customization in the regression fitting process.Documentation & ExamplesFor documentation and usage examples, visit the GitHub repository:https://github.com/knowusuboaky/backwards_regression-0.2.0Author: Kwadwo Daddy Nyame Owusu - BoakyeEmail:kwadwo.owusuboakye@outlook.comLicense: MIT
Package: backwork-backup-consul
backwork-backup-consulAdds support for Consul backups tobackwork.RequirementsThis plug-in is build on top ofconsul,
so you will need to haveconsulinstalled.If not, you can install theconsulcli following theinstallation instructions.InstallingYou can usepipto install this plug-in:$pipinstallbackwork-backup-consulUsingAfter installing the plug-in you will be able to use thebackup consulandrestore consulcommands
onbackwork.backwork backup consul$backworkbackupconsul--help
usage:backworkbackupconsul[-h][file]BackupaConsulcluster.Ituses`consul`soit's required to have it installed and added to the system'sPATH.Youcanuseanyoftheargumentssupportedby`consulsnapshot
save`.Use`consulsnapshotsave--help`formoreinformation.

positionalarguments:fileoutputsnapshotfilename(optional)optionalarguments:-h,--helpshowthishelpmessageandexitYou can pass any option that you would normally use onconsul snapshot save, e.g.:$backworkbackupconsul-http-addr=http://127.0.0.1:8500The only exception is-hwhich is reserved for the help/usage message.backwork restore consul$backworkrestoreconsul--help
usage:backworkrestoreconsul[-h]file

RestoreaConsulcluster.RestoreaConsulcluster.Ituses`consul`soit's required to have it installed and added to the system'sPATH.Youcanuseanyofthearguments
supportedby`consulsnapshotrestore`.Use`consulsnapshotrestore--help`formoreinformation.

positionalarguments:fileinputsnapshotfilename

optionalarguments:-h,--helpshowthishelpmessageandexitYou can pass any option that you would normally use onconsul snapshot restore, e.g.:$backworkrestoreconsul--http-addr=http://127.0.0.1:8500The only exception is-hwhich is reserved for the help/usage message.
Package: backwork-backup-files
backwork-backup-filesAdd support for file backups onbackwork.RequirementsThis plug-in is build on top oftar.InstallingYou can usepipto install this plug-in:$pipinstallbackwork-backup-filesUsingAfter installing the plug-in you will be able to use thebackup filesandrestore filescommands
onbackwork:backwork backup files$backworkbackupfiles-h
usage:backworkbackupfiles[-h]-fFILE

Backuponeormorefiles.Ituses`tar-cz`whichgzipstheoutput.Youcan
useanyoftheargumentssupportedby`tar`.Addalistoffilesand
directoriesyouwantbackedupasthelastthingintheline.Use`tar--help`formoreinformation.

optionalarguments:-h,--helpshowthishelpmessageandexit-oFILE,--outputFILEoutputgzippedfilepathYou can pass any option that you would normally use withtar:$backworkbackupfiles-ofoo.tgz--verbose/tmp/var/logAs shown in the--helpmessage, there is one required arguments you
must use in your backup process.-o FILEor--output FILEwill save the output oftarinto a
file.backwork restore filesusage:backworkrestorefiles[-h]input

Restoreoneormorefilesfroma.tar.gzfile.Ituses`tarxvzf`.Youcan
useanyoftheargumentssupportedby`tar`.Use`tar--help`formore
information.

positionalarguments:input.tar.gzfiletorestorefrom

optionalarguments:-h,--helpshowthishelpmessageandexitImportant:There is a conflict with the-hargument since it is reserved
for the help/usage message. Use--dereferenceto follow symlinks.Building and PublishingTravis will publish builds for you. To build, push a tag to the repo:git tag -a v0.1.2 -m 'v0.1.2'
git push --tags
Package: backwork-backup-mongo
backwork-backup-mongoAdds support for MongoDB backups tobackwork.RequirementsThis plug-in is build on top ofmongodump,
so you will need to havemongo-toolsinstalled.If you already have themongodserver ormongoclient installed then you
should havemongodump. If not, you can install them using theofficial packagesor build fromsource.InstallingYou can usepipto install this plug-in:$pipinstallbackwork-backup-mongoUsingAfter installing the plug-in you will be able to use thebackup mongoandrestore mongocommands
onbackwork.backwork backup mongo$backworkbackupmongo--help
usage:backworkbackupmongo[-h]BackupaMongoDBdatabase.Ituses`mongodump`soit's required to have itinstalled and added to the system'sPATH.Youcanuseanyofthearguments
supportedby`mongodump`.Use`mongodump--help`formoreinformation.

optionalarguments:-h,--helpshowthishelpmessageandexitYou can pass any option that you would normally use onmongodump, e.g.:$backworkbackupmongo--user=user--password=pass--host=mongoThe only exception is-hwhich is reserved for the help/usage message, so the
host needs to be passed as--host.backwork restore mongo$backworkrestoremongo--help
usage:backworkrestoremongo[-h]RestoreaMongoDBdatabase.Ituses`mongorestore`soit's required to have itinstalled and added to the system'sPATH.Youcanuseanyofthearguments
supportedby`mongorestore`.Use`mongorestore--help`formoreinformation.

optionalarguments:-h,--helpshowthishelpmessageandexitYou can pass any option that you would normally use onmongorestore, e.g.:$backworkrestoremongo--user=user--password=pass--host=mongodumpsThe only exception is-hwhich is reserved for the help/usage message, so the
host needs to be passed as--host.
Package: backwork-backup-mysql
backwork-backup-mysqlAdd support for MySQL backups onbackwork.RequirementsThis plug-in is build on top ofmysqldump,
so you will need to it installed.mysqldumpis part of themysqlclient.cd .InstallingYou can usepipto install this plug-in:$pipinstallbackwork-backup-mysqlUsingAfter installing the plug-in you will be able to use thebackup mysqlandrestore mysqlcommands
onbackwork:backwork backup mysql$backworkbackupmysql-h
usage:backworkbackupmysql[-h][--gzip][-oOUTPUT]BackupaMySQLdatabase.Ituses`mysqldump`soit's required to have itinstalled and added to the system'sPATH.Youcanuseanyofthearguments
supportedby`mysqldump`.Use`mysqldump-h`formoreinformation.

optionalarguments:-h,--helpshowthishelpmessageandexit--gzipcompressoutputfile(requiresgziptobeinstalled)-oOUTPUT,--outputOUTPUToutputfilepathYou can pass any option that you would normally use onmysqldump:$backworkbackupmysql--host192.168.99.1-uroot-ppassword--port32769--all-databasesAs shown in the--helpmessage, there are two extra arguments you can use in
your backup process--gzipand-o.--gzipwill compress the output and requires thegzipcommand to be
available in your system.-o OUTPUTor--output OUTPUTwill save the output ofmysqldumpinto a
file.backwork restore mysqlusage:backworkrestoremysql[-h][--gzip][-iINPUT]RestoreMySQLdatabases.Ituses`mysql`soit's required to have itinstalled and added to the system'sPATH.

optionalarguments:-h,--helpshowthishelpmessageandexit--gzipdecompressbackupfilebeforerestoring(requiresgziptobeinstalled)You can pass any option that you would normally use to connect to your mysql instance:$backworkrestoremysql--host192.168.99.1-uroot-ppassword--port32769--gzip--input=="mybackup.archive.gz"Important:There is a conflict with the-hargument since it is reserved
for the help/usage message. User--hostto pass the hostname.
Package: backwork-backup-postgresql
backwork-backup-postgresqlAdd support for PostgreSQL backups onbackwork.RequirementsThis plug-in is build on top ofpg_dump,
so you will need to it installed.pg_dumpis part of thepostgresqlclient.InstallingYou can usepipto install this plug-in:$pipinstallbackwork-backup-postgresqlUsingAfter installing the plug-in you will be able to use thebackup mysqlcommand
onbackwork.backworkbackuppostgresql-h
usage:backworkbackuppostgresql[-h][--gzip][-oOUTPUT]-PPASSWORD

BackupaPostgreSQLdatabase.Ituses`pg_dump`soit's required to have itinstalled and added to the system'sPATH.Youcanuseanyofthearguments
supportedby`pg_dump`.Use`pg_dump--help`formoreinformation.

optionalarguments:-h,--helpshowthishelpmessageandexit--gzipcompressoutputfile(requiresgziptobeinstalled)-oOUTPUT,--outputOUTPUToutputfilepath-PPASSWORD,--passwordPASSWORDPostgreSQLconnectionpasswordYou can pass any option that you would normally use onmysqldump:$backworkbackuppostgresql-Ppassword--host=192.168.99.1--username=root--port=32769--dbname=MY_DATABASEAs shown in the--helpmessage, there are two extra arguments you can use in
your backup process--gzipand-o.--gzipwill compress the output and requires thegzipcommand to be
available in your system.-o OUTPUTor--output OUTPUTwill save the output ofpg_dumpinto a
file.Important:There is a conflict with the-hargument since it is reserved
for the help/usage message. User--hostto pass the hostname.