Saravanan666/pypi-org huggingface dataset:
Package: git-smartmv
git-smartmv - A tool that can decide whether to usegit mvormvThegit-smartmvcommand-line tool, written byJames Cherti,
allows moving files and/or directories without having to worry about
manually choosing whether to usegit mvormv.It can determines whether to usegit mvormvbased on the source and the
destination path:If the files/directories are being moved within a Git repository,git-smartmvusesgit mv.If the files/directories are being moved between a Git repository and a
non-Git directory or a different Git repository,git-smartmvusesmv.Installationsudo pip install git-smartmvShell aliasTo simplify the usage of this tool, you can add the following line to
your~/.bashrc:alias mv="git-smartmv"UsageThegit-smartmvcommand-line tool accepts similar arguments as themvcommand, including the source file or directory to be moved, and the
destination file or directory.usage: git-smartmv [--option] <SOURCE>... <DEST>

options:
  -w WARNING_THRESHOLD, --warning-threshold WARNING_THRESHOLD
                        This will raise a warning if the number of files or directories being moved
                        exceeds the specified amount
  -v, --verbose         Report the names of the files and/or directories as they are being moved.
  -f, --force           Force renaming or moving of files and/or directories even if the destination
                        exists.
  -p, --non-interactive
                        Do not prompt the user to confirm before executing 'mv' and/or 'git mv'
                        commands.First example:git smartmv file1 file2Second example:git smartmv file1 dir1/ file2 file3 directory/Third example (non-interactive):git smartmv --non-interactive dir1/ dir2/LicenseDistributed under terms of the GNU General Public License version 3.LinksGit-smartmv @PyPIGit-smartmv @GitHub
Package: git-smudge
git-smudgeA powerful filter driver for Git which can automatically apply local changes to the
working tree of a repository.InstallingRun$ pip3 install git-smudgeIf you're usingbash, run:$ git smudge compThis will set up tab completion forgit smudgeSetting up a filterThe first step is to run:$ git smudge setupThis will do three things:It will create.git/git-smudge.toml, and pre-populate it with comments explaining how
to define filters. For more information on the TOML format, seethe TOML site.It will rungit config filter.git-smudge 'python3 -m git_smudge.runfilter'. This tellsgithow to run our filters.It will add* filter=git-smudgeto.git/info/attributeswhich tellsgitto havegit-smudgehandle filtering for all files. Only files which match filters ingit-smudge.tomlare actually updated, however.You can rungit smudge editto edit the configuration file, or you can just open it in
your normal editor.Once you have your configuration set up, run:$ git smudge applyThis will readgit-smudge.tomland apply any filters defined there to the files in your
working tree. If you had already defined filters previously, it will reverse those changes
(using a saved copy of the old configuration). If there are any errors,git smudge applywill try to undo any changes and get back to the previous working state.If you want to undo all changes, as if a blank configuration were applied, run:$ git smudge cleanTo see what changes have been applied to files, run:$ git smudge diffIf you change the configuration and you want to preview what changes will be applied, run:$ git smudge diff --previewPluginsgit smudgesupports defining custom filters by specifying a path to a Python
script. This script should subclassGitFilter(which is pre-defined when executing the
script). A class which is namedXYZFilterwould define a filter namedXYZorxyz(filter names are case-insensitive).The filter class has two methods,cleanandsmudge. Both methods take a single
parameter,content, which is used to manage the content of the file. This object has an
attributepath, which is an instance ofpathlib.Path, and methodsget_text(),set_text(),get_binary(), andset_binary(). Most filters will be working with text,
but the data can be converted to and from binary as needed.When runninggit smudge apply, the contents of the plugin script is saved to the working
configuration so that the exact code can be run to reverse those changes even if the code
changes.
Package: gitsnapshot
gitsnapshotA simple library to load snapshots of git repository.UsageTo load git repository callload_repoas follows:fromgitsnapshotimportload_repoload_repo('~/target/directory','git@github.com/test/repo')This code creates folder~/target/directoryif this folder doesn't exists, and then
clone shallow copy of repositorygit@github.com/test/repo.
By default this function loads currentmasterbranch.To load another branch (i.e.develop) pass branch name inbranchparameter:fromgitsnapshotimportload_repoload_repo('~/target/directory','git@github.com/test/repo',branch='develop')Also you can load snapshot by tag:fromgitsnapshotimportload_repoload_repo('~/target/directory','git@github.com/test/repo',tag='v0.1.2')Or by commit hash:fromgitsnapshotimportload_repoload_repo('~/target/directory','git@github.com/test/repo',commit='abcdef')Errorsload_repofunction return optional string with error description.
Ifload_reporeturnedNonethen no errors was happened.Reusing of directoryIf you try to load repository snapshot into existing directory with another snapshot
of the same repository,load_repowill return error.
To avoid this behavior passuse_existing=Trueas argument.fromgitsnapshotimportload_repoload_repo('~/target/directory','git@github.com/test/repo',use_existing=True)In this caseload_repowill load repository index and will checkout to specified
branch, tag or commit.
Package: git-source-track
This is a tool that makes it easier to track source code changes between two
repositories. This tool was originally developed for use by the RobotPy project,
and made it easier for me to maintain a python port of various Java libraries.This tool assumes there is an ‘original’ git repository, and a ‘destination’ git
repository that is being validated. There is assumed a one to one relationship
between various original and destination files. This tool provides quick and
easy shortcuts to allow you to record metadata in the destination files that
allow you to track changes in the source files:Record which file it comes fromMark the latest manually verified revision in the destinationAllow viewing the latest modifications to the source file (if any)Update the revision metadata in the destination fileInstallpip install git-source-trackConfigurationCreate a file called ‘.gittrack’ in the root of the destination git repository
that has the following ini-style format:[git-source-track]

# Original files
upstream_root = ../path/to/files

# Commit in original repository
upstream_commit = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# Files that are being validated
validation_root = path/to_files

# (optional) Commits to exclude from git log output
exclude_commits_file = foo/exclude_commits.txt

# (optional) Specify location to place validation line (first or last)
default_location = first

# (optional) Primary branch of upstream repository
upstream_branch = mainNow you can issue git commands and magic will happen!UsageSee the help command for more information.$ git source-track helpKnown issuesTool mostly tested using Python 3, but should work on Python 2Probably won’t work on Windows, due to the use of the ‘sh’ package and because
there are dependencies on unix-style tools
* May work in Windows 10 posix environmentAssumes destination files are python filesEmits python style comments on destination filesPull requests are welcome to fix any of these problems. :)AuthorDustin Spicuzza (dustin@virtualroadside.com)
Package: git-speed
git-speedGit aliases to speed you up.Seehttps://www.gitscientist.comfor more.InstallInstall from pip:pipinstallgit-speedThen install your Git aliases.git-speedwill ask if you want to update your bash prompt to include information about your Git
repo (the current branch name and whether the repo contains uncommitted changes).
We recommend you update your bash prompt.git-speedinstallUninstallgit-speeduninstall
Package: gitspy
Intuitive Git for PythonInstallDependencies: git ^2.0.0 (tested)pip install gitspyDevelopmentpoetry installExample UsageGet branchCapture will store stdout, which can then be consumed by callinggit.stdout()Default is to return returncode and print stdout and stderr to console>>>importgitspy>>>git=gitspy.Git()>>>git.init(capture=True)# ['...']0Consume stdout (a list containing a str)>>>len(git.stdout())# []1No commands have been called yet since last call tostdoutso stdout is empty>>>len(git.stdout())# []0Stdout can be accrued>>>git.init(capture=True)# ['...']0>>>git.init(capture=True)# ['...', '...']0>>>len(git.stdout())# []2Stdout is consumed>>>len(git.stdout())# []0Get commit hash>>>git.rev_parse("HEAD",capture=True)# ['...']0>>>len(git.stdout()[0])# []40
Package: gitsshgen
py-gitsshgenAutomatic generation of SSH keys for VCSWhy?I was incredibly tired of doing the same procedure over and over for dozens of different VCS hosted in cloud and on-prem. There was no full-pledge solution offered even inhubandlabfor end-to-end setup of SSH key for login to Git across different platforms.How to use?The script generates OpenSSH keypair and pushes public key to VCS using PAT (Personal Access Token) or App Password (Bitbucket only). The private key automatically goes to~/.ssh/{name}.pem+ reference to it is appended to~/.ssh/configfor automatic pickup by Git with OpenSSH configuration. The setup is assumed OpenSSH always.Supported parameters for key generation -https://asyncssh.readthedocs.io/en/latest/api.html#asyncssh.generate_private_keySupported parameters for private key export -https://asyncssh.readthedocs.io/en/latest/api.html#asyncssh.SSHKey.export_private_keyDefault settings:Algo for generation - ssh-ed25519No passphraseOutput private key with cipher AES256 with SHA256 hashing and 128 rounds of bcrypt.You can install it using pippip install gitsshgenAll actions are done interactively in terminal:usage: gitsshgen [-h] [-t T] [-api API_URL] [-n N] [-a ALGO] [-ks KEY_SIZE] [-e EXPONENT] [-p PASSPHRASE] [-c CIPHER] [-r ROUNDS] [-hn HASH_NAME] [-sl SSH_LABEL]
                 {github,gitlab,bitbucket,gogs,gitea} url u

positional arguments:
  {github,gitlab,bitbucket,gogs,gitea}
                        instance type
  url                   instance url
  u                     instance username

optional arguments:
  -h, --help            show this help message and exit
  -t T                  personal application token
  -api API_URL          API URL endpoint
  -n N, --name N        name for private key
  -a ALGO, --algorithm ALGO
                        algorithm for keypair (default is ssh-ed25519)
  -ks KEY_SIZE, --key-size KEY_SIZE
                        key size (only for RSA)
  -e EXPONENT, --exponent EXPONENT
                        exponent (only for RSA)
  -p PASSPHRASE, --passphrase PASSPHRASE
                        passphrase for OpenSSH key (default is None)
  -c CIPHER, --cipher CIPHER
                        cipher for OpenSSH key (default is aes256)
  -r ROUNDS, --rounds ROUNDS
                        rounds for OpenSSH key (default is 128)
  -hn HASH_NAME, --hash-name HASH_NAME
                        hash name for OpenSSH key (default is sha256)
  -sl SSH_LABEL, --ssh-label SSH_LABEL
                        ssh label in VCSExample with token:gitsshgen bitbucket bitbucket.org testusername -t testtokenIf you don't provide token, script will open browser on page where you can make one, and ask you to enter it.gitsshgen bitbucket bitbucket.org testusernameVCS CompatibilityGithubGitlabGogsBitbucketGitea
Package: git-ssh-key
git-ssh-keymanager multi git repo ssh keys in one machine, with multi private or public repo.this command will auto generate the key and add it to your ssh configusagepipinstallgit-ssh-keyrun command with your repo link likegit-ssh-keyhttps://github.com/alingse/git-ssh-key.gitit will print the new alias repo link and the new public key,Newrepoaddress:git@github.com-f5851eb:alingse/git-ssh-key.git
Newrepopublicrsakey:/Users/alingse/.ssh/github.com-f5851eb.id_rsa.pubthe public key has already been configured in your ssh config file, remember add it to repo's setting keys (https://github.com/user/repo/settings/keys)and then just clone like thisgitclonegit@github.com-f5851eb:alingse/git-ssh-key.gitmore options seegit-ssh-key--helpgit-ssh-key-cgit.ssh.config--keys./../-tweb-backendgit@github.com:alingse/git-ssh-key.gitHow it workI ever see some stackoverflow and github gist, and just make them a toolgit-ssh-keywill read.ssh/config(default) and write into an alias host config.like thisHost github.com-f5851eb
HostName github.com
User git
IdentityFile /Users/alingse/.ssh/github.com-f5851eb.id_rsathef5851ebis tag, default generate by hash(url)Developpdm seehttps://pdm.fming.dev/pdminstall

pdmbuild

pdmrungit-ssh-key--helppublishadd oncepdmconfigpublish.usernamexxx
pdmconfigpublish.passwordyyypdmpublishmore TODOshow public key ?add more test ?better giturlparse
Package: git-stacktrace
git-stacktracegit-stacktrace is a tool to help you associate git commits with stacktraces.It helps you identify related commits by looking at:commits in given range that touched files present in the stacktracecommits in given range that added/removed code present in the stacktraceSupported LanguagesPythonJavaJavaScriptDevelopmentRun tests with:toxInstallation$pipinstallgit_stacktraceUsageRungit stacktracewithin a git initialized directory.usage:gitstacktrace[<options>][<RANGE>]<stacktracefromstdinLookupcommitsrelatedtoagivenstacktrace.positionalarguments:rangegitcommitrangetouseoptionalarguments:-h,--helpshowthishelpmessageandexit--since<date1>showcommitsmorerecentthanaspecificdate(fromgit-log)--serverstartawebservertovisuallyinteractwithgit-stacktrace--portPORTServerport-f,--fastSpeedthingsupbynotrunningpickaxeifthefileforalineofcodecannotbefound-b[BRANCH],--branch[BRANCH]Gitbranch.Ifusing--since,usethistospecifywhichbranchtorunsinceon.Runsoncurrentbranchbydefault--versionshowprogram'sversionnumberandexit-d,--debugEnabledebugloggingFor the Python API see:git_stacktrace/api.pyTo run as a web server:git stacktrace--server--port=8080orGIT_STACKTRACE_PORT=8080 git stacktrace--serverUse the web server as an API:$curl\-d'{"option-type":"by-date", "since":"1.day", "trace":"..."}'\-H"Content-Type: application/json"\-XPOSThttp://localhost:8080/ExamplesExample output:$ git stacktrace --since=1.day < trace
Traceback (most recent call last):
 File "webapp/framework/resource.py", line 72, in _call
   result = getattr(self, method_name)()
 File "webapp/resources/interests_resource.py", line 232, in get
   if self.options['from_navigate'] == "true":
KeyError


commit da39a3ee5e6b4b0d3255bfef95601890afd80709
Commit Date: Tue, 19 Jul 2016 14:18:08 -0700
Author:      John Doe <johndoe@pinterest.com>
Subject:     break interest resource
Link:        https://example.com/D1000
Files Modified:
   - webapp/resources/interests_resource.py:232
Lines Added:
   - "if self.options['from_navigate'] == "true":"Change Log1.0.0Add Python 3.8 support drop Python 2.7 support (https://github.com/pinterest/git-stacktrace/pull/33)0.9.0Add support for javascript (https://github.com/pinterest/git-stacktrace/pull/24)0.8.1Add several missing rare git file states (T, U, X)0.8.0Fix pickaxe support for python3Improve java traceback supportImprove the python api0.7.2Fix python traceback parsing with no code on last line (https://github.com/pinterest/git-stacktrace/pull/13)0.7.1Fix python traceback parsing where code is missing (https://github.com/pinterest/git-stacktrace/issues/10)Add –debug flag0.7.0Add python 3 support0.6.0Support arbitrary sized abbreviated hashesClarify CLI help message0.5.0Match file line numbers in stacktrace to lines changed in commitsDifferentiate files added, deleted and modifiedprint stacktrace headers and footersFix git pickaxe error (Use ‘–’ to separate paths from revisions)Add initial java stacktrace support. Begin supporting basic java stacktraces, some more complex formats are not supported yet.0.4.1Get ready for pypi0.4.0Initial open source commit
Package: git-stalk
git-stalk-cliA command line interface for checking your/peer's activity today.Installationpipinstallgit-stalkDemoLimitationsStalking too much might lead to "API Rate Limit Exceeded for your IP".Releasing new versiongitcheckoutmastergitfetchgitmergetoxbumpversionminor--tag--commitgitpushoriginmaster--tagsAuthorAashutosh RathiMade from scratch byAashutosh Rathi
Package: gitstat
GitStat-统计代码提交次数的小工具安装方法pip install gitstat使用方法gitstat [options...]说明默认统计运行时刻到一年前时段内当前目录下所有Git仓库中的Git默认用户的提交次数和代码行数.本工具会忽略掉数据文件的提交,可以通过-f多次添加要统计的文件扩展名,例:gitstat -f .exe -f .txt.可以使用-s-e指定统计的开始时间和结束时间,使用-a指定统计的用户名,-t指定扫描根路径.帮助gitstat --help
Package: gitstatic
Git pages staticA github pages implements for any git repository hostingUsageup commandexport GITSTATIC_CONF=/etc/gitstatic/config.cfg
gunicorn -w 4 -b 127.0.0.1:5000 app:appconfig.cfgREPOSITORY_PATH = "/Users/timothy/Workspace"
BRANCH = "gh-pages"License MIT
Package: gitstats
GitstatVisualizes overall code commits for multiple Git repositories. The red
indicates my own commits whereas the blue indicates your teammates’.Installationpip install gitstatsUsageThe following example shows howgitstatsdiscovers all Git repositories
in the home directory to consolidate all commit logs.Git Repository Analysisgitstats analyze ~ > gitstats.jsonThe target directory may be a single repository.gitstats analyze ~/work/project_x > gitstats.jsonIf you would like to exclude certain repositories, put a.excludefile in
each directory you want to exclude from the statistics. Note that the content
of the file is irrelevant.Generating Commit Graphsgitstatsgenerates annual commit graphs that are similar to what GitHub
shows on each user’s page. However, the major difference is thatgitstatsdifferentiates your commits from others based on your email address(es).gitstats generate_graph gitstats.json 2017 --email ${your_email} > 2017.svgIf you have multiple email addresses, you may pass them as follows:gitstats generate_graph gitstats.json 2017 --email ${your_email1} --email ${your_email2} > 2017.svg
Package: gitstats-abilian
git-statsA fork of the classic utility gitstats, with a modernized code base.Used byAbilianto help with our code audits.Installationpipinstallgitstats-abilianorpipxinstallgitstats-abilianusagegitstats<git-repo><output-dir>Credits / historyOriginal forkOriginal source on SourceforgeExamples of output
Package: gitstats-forked
gitstats for python 3Git history statistics generatorForked fromKaivnD/gitstatsfor support python3Installpipinstallgit+https://github.com/eggplants/gitstats# ORpipinstallgitstats-forkedUsage$ gitstats -h
usage: gitstats [-h] [-c K=V] [-V] gitpath [gitpath ...] outputpath

Git history statistics generator

positional arguments:
  gitpath               repo path to look up
  outputpath            dir path to output result

options:
  -h, --help            show this help message and exit
  -c K=V, --config K=V  override configuration value (default: None)
  -V, --version         show program's version number and exit

Default config values:
  - max_domains=10
  - max_ext_length=10
  - style='gitstats.css'
  - max_authors=20
  - authors_top=5
  - commit_begin=''
  - commit_end='HEAD'
  - linear_linestats=1
  - project_name=''
  - processes=8
  - start_date=''

Please see the manual page for more details.For Examplegitstats-cstart_date=2021-07-14<gitdir><outputdir>
Package: gitstats-py
GitstatsGitstats is a project that calculates some user metrics for a set of Github projects. This project aims to be as configurable and easy to update as possible, so other users could add their own metrics or output formats, contributing to the project.InstallationYou can install gitstats with pip:pip install gitstats-pyor locally install the source code:git clone https://github.com/diverso-lab/gitstats
cd gitstats
pip install .UsageOnce installed, you can run the tool just by typing the commandgitstatsin shell.For this to work, you need a config.txt file in your current working directory. There is anexample configfile in the project. Do not copy the config above as it does not support comments:[global]
# Starting date (YYYY-MM-DD)
date = 2022-9-30
# Here you must introduce a personal access token from your Github developer settings
token = token
# Introduce which metrics you want to get
metrics = CommitCount,LinesOfCode,Issues,Tests
# Introduce the expected values for each metric in the same order
expected_values = 12,240,6,6

[repos]
# List of repos to be analized. URLs below first must be indented.
urls = https://github.com/...
    https://github.com/...
    https://github.com/...Then, you should get ametricsdirectory with the results, and analertsdirectory telling which users have not reached the expected values.
Package: git-status
Installation$[sudo]pipinstallgit-statusExamples>>>importgit_status>>>git_status.get(".")Mpath/to/modifiedApath/to/addedDpath/to/deletedRpath/to/renamed??path/to/untrackedStatusclass>>>status=git_status.Status(".")>>>status.A['path/to/added']>>>status.M['path/to/modified']>>>status.D['path/to/deleted']>>>status.R['path/to/renamed']>>>status.untracked['path/to/untracked']readme42.com
Package: git-status-cli
gitstatusGet the status of all your gits in one command!Installationpipx install gitstatusInstallation with pipx (or pip but pipx is preferred) will make the gitstatus command available globally:CLI UsageUsage: gitstatus [OPTIONS]

  Get the status of all your gits in one command!

Options:
  --help  Show this message and exit.Before use, gitstatus must be configured by editing the config.yaml file (it will automatically be created if it does not exist):The syntax is plain YAML:gitstatus will execute git status for each of your repositories and will repeatedly ask you to issue commands until all of your repositories are in a clean state:Any submodule is automatically handledAuthorsAlexandre Janvrin, penetration tester at Beijaflore (https://www.beijaflore.com/en/)LicenseAGPLv3+, see LICENSE.txt for more details.URLshttps://pypi.org/project/git-status-cli/https://github.com/LivinParadoX/gitstatus/
Package: gitstery-generator
The Git Murder Mystery GeneratorThis projectgeneratesa "gitstery" git repository.NOTICE:This is not the Git Murder Mystery repository. For that, please visithttps://github.com/nivbend/gitstery.Installpip install gitstery-generatorOr clone this repository and thenpip install ./python setup.py install.UsageTo generate a new repository at/tmp/gitstery:gitstery generate /tmp/gitsteryTo verify a repository:gitstery verify /tmp/gitstery
gitstery verify https://github.com/nivbend/gitstery.git
gitstery verify git@github.com:nivbend/gitstery.gitIf you have your own fork of the gitstery repository you'd like to update:gitstery push /tmp/gitstery <your repository URL>Or:gitstery generate --push /tmp/gitsteryThe following environment variables replace some commonly used values:Environment VariableUsageGITSTERY_TEMP_DIRThe directory in which to generate the new repositoryGITSTERY_SEEDThe random seed to use (useful for reproducible "builds")GITSTERY_TARGET_REPOURL of the remote repositoryDataEnglish:List of given names:Social Security's top 1000 names for 2018.List of surnames:2000 US CensusAcknowledgmentsThe "murder mystery" repository this project generates was inspired by similar projects:SQL Murder Mystery.The Command Line Murders.
Package: gitsub
gitsubHelp you keep updated with software development on multiple git
repositories.Requirementspython 3.5+pip 6.0+git 2.7+InstallationInstallgitsubwithpip:sudopipinstallgitsubUsageRead new updates from repositories:gitsubList current repository list:gitsublsAdd new repositories:gitsubaddpath_1path_2...Synchronize repositories with upstream:gitsubsync