Saravanan666/pypi-org huggingface dataset:
Package: git-credentials
Simple small library to provide an interface around thegit credentialGit command.
No dependencies butgitmust in the PATH.Examplefromgit_credentialsimportGitCredentials,GitCredentialDescription,GitCredentialError,GitCredentialNotStoredErrordeftest_creds(user,pw):...defask_for_creds():...cred=GitCredentials("/path/to/repo")try:response=cred.fill(GitCredentialDescription(protocol="https",host="example.com",path="/"))print(f"Request was successful. Host:{response.host}, User:{response.username}, Password:{response.password}")# Test the credentialsiftest_creds(response.username,response.password):# Tell Git the credentials are good.cred.approve(response)else:# Otherwise tell it to reject them.cred.reject(response)exceptGitCredentialNotStoredError:print("Did not know the PW :(")# Ask user for PW. You can store it then (after testing it) using approve:(user,pw)=ask_for_creds()iftest_creds(user,pw):# Tell Git the credentials are good.cred.approve(GitCredentialDescription(protocol="https",host="example.com",path="/",username=user,password=pw))exceptGitCredentialError:# Another misc. error. GitCredentialNotStoredError subclasses this.raise
Package: git-croissant
Git croissantFrench Git CLI to respect the Toubon Law in France.Installationpipxinstallgit-croissantUsageGit commands and their options and arguments are translated into French.For now the coverage is far from being exhaustive, and there is no documentation so please read the source code.Some examples:abruticlone--profondeur3https://github.com/x/y.git
abrutitire
abrutipousseDevelopmentInstallPoetrythen:poetryinstall
poetryshell

abruti...
Package: git-ctm
git-ctm =git commitTime MachineSometimes you need to create a commit with particular timestamp.git-ctmprovides a command-line toolctmfor easy committing with desired timestamp:$ctm-d'Thu Feb 8 03:14:15 2018 +0200'-m'my commit message'# is the same as$GIT_AUTHOR_DATE='Thu Feb 8 03:14:15 2018 +0200'\GIT_COMMITTER_DATE='Thu Feb 8 03:14:15 2018 +0200'\gitcommit-m'my commit message'All commits in this project are done withctmitself.InstallationFromPyPIusingpippackage manager:pipinstall--upgradegit-ctmOr install the latest sources from GitHub:pipinstallhttps://github.com/pavdmyt/git-ctm/archive/master.zipOr just putctmPEX(Python EXecutable) file somewhere in the$PATH:$gitclonehttps://github.com/pavdmyt/git-ctm.git$cdgit-ctm$sudocpctm/usr/local/bin/Nowctmcommand-line tool should be available to use, try:ctm--versionUsage$ctm--helpUsage:ctm-d<date>-m<msg>ctm-p-d<date>Commitdateandtime-m<msg>Commitmessage-pPrintdatetemplate--helpPrintusage--versionPrintversionDevelopmentClone the repository:gitclonehttps://github.com/pavdmyt/git-ctm.gitInstall dependencies:makeinstall-devLint code:makelintContributingFork it!Create your feature branch:git checkout-bmy-new-featureCommit your changes:git commit-m'Add some feature'Push to the branch:git push originmy-new-featureSubmit a pull requestMake sure tests are passingLicenseMIT - Pavlo Dmytrenko
Package: gitcy
GitcyA small python package for some github cli utilities.
Is it necessary? No.
Is it helpful? Maybe.
Does it feel better? Yes.WhyInstead of writinggitcommit-m"Title \n\nMore Description"gitpushyou can directly typectd-t"Title"-d"More Description"-pInstallUse either pipx to installpipxinstallgit+https://github.com/ahartlba/gitcy.gitor install the package in your python environment and use it there.pipinstallgitcy
Package: git-dashboard
git-dashboardgit-dashboardcreates a Dashboard to monitor the status for multiple repositories.Repositories can be organized into groups, so one can switch from one group to another seamlessly.Installation$ pip install git-dashboardUsageSimply run:$ git-dashboard &to start with the default dashboard. The program will search for git repositories in the user's home
directory and create a configuration file calledconfig.yaml.ConfigurationConfiguration file is a simple YAML file that lists the different repositories in groups.Suppose we have these 8 repos that we want to track:/home/john/Projects/foo/.git
/home/john/Projects/bar/.git
/home/john/Projects/baz/.git
/home/john/bin/.git
/home/john/nasa/proj1/.git
/home/john/nasa/proj2/.git
/home/john/nasa/proj3/.git
/home/john/misc/.gitWe can classify the above 3 repos into 3 groups like this:projects:
  - /home/john/Projects  # will include `foo`, `bar`, `baz`

nasa:
  - /home/john/nasa            # will include `proj1`, `proj2`, `proj3`
  - "!/home/john/nasa/proj2"   # exclude proj2

misc:
  - /home/john/misc  # individual repos can be listed too
  - /home/john/binNote that prefixing "!" in front of a path can exclude a repo from a group. Due to YAML
syntax, we need to enclose the path in single or double quotes.Type:$ git-dashboard -hto see the location of the configuration file.
Package: gitdata
Storage the data files (images, data test) in remote ssh servers. In git only save a register of necessary files to current commit..gitdata fileSHA1 path remote_ssh:ssh_portExample:96e93e946f7fd810b167e34561c489ce067d7ef1 data/data2.txt
c00214008bcd3fe1f5beccdf1a63d15b158bf0b3 data/data1.txt user@server:tmp/
7a7a91f5c2b5bc1f4d294de5a6166abec5364d15 data/data0.txt user@server:tmp/:1234Installationpip install gitdataUsageAdd to.gitdatafile,SHA-1and path of files contained in the directory.:git data -a directoryShow modified files, files with modifiedSHA-1:git data statusFiles with ssh column are pushed to remote ssh server:git data -pFiles with ssh column are pulled from remote ssh server, the version download is respective to the current SHA-1 in.gitdatafile.:git data -uShow files stored in the.gitdatafile:git data -l
Package: gitdata-cli
GitDataData Wrangling for Everyone.GitData is an easy to use, fast, scalable, distributed data extraction system
with a rich set of commands that provide ways to gather, manage and query data in
an unusually rich variety of ways.ConceptsGitData stores data as facts.Facts are triples of the form (subject, predicate, object) where subject is
typically an entity, predicate is typically an attribute of that entity and
object is the value of the attribute.  In the case where the attribute represents
a relationship between entities, the object is another entity.CommandsGitData shares many of the commands and concepts you are familiar with from
the git source code revision control system with some important differences
which make it ideal for working with data.Data repostitoriesData repositories are where GitData stores the data it is managing.  That data
is typically pulled in from other data sources and is stored in the data
repository for quick access.gitdata init   # initialize a new data repository
gitdata status # show repository statusRemotesRemotes are connections you can establish within your data repository to make it
easier to access data from external sources like the internet or somewhere on your
network or even a local disk.  When you add a remote you give it a name which can
then be used to refer to that remote from within the repostitory.To see the remotes for a data repository you can just run thegitdata remotecommand
which will list the names of the repositories.  If you want to see the URLs the remotes
correspond to you can use the-vflag to produce a verbose listing.gitdata remote      # list remotes
gitdata remote -v   # verbose list remotesAdding RemotesAdding a remote so you can refer to the remote by the short name is as simple as
usingremote add <shortname> <url>.Removing RemotesYou can remove a remote from your project by using thegitdata remote rm <shortname>command.ShowingData repositories are a collection of entities containing facts.  To view any
entity within the repostitory you can use thegitdata show <name>command, where
name is the name of the entity.  So, for example, if you've stored a remote
in your repostitry, you can see the details of that remote by using the show
command.FetchThe gitdata fetch command copies facts from a somewhere else into your gitdata
repository.  The location being fetched from can be a remote or can be anywhere
else you can get to from your computer.   The facts fetched will be placed into
a temporary holding area that will allow you to work with them without committing
to making them a permanent part of your repository.To fetch simplygitdata fetch <location>where<location>is either a remote
that you've already added to your repository, or any other location such as a URL
or a local file.When you runfetchit will read the data in whatever form it is and digest it
into facts ready for you to work with alongside any other data in your repository.
If you decide you want to keep the facts as part of your data repository then you
can use thegitdata addandgitdata commitcommands to add them to your data
repository.
Package: git-debranch
git-debranchGit subcommand that usesSpiffWorkflowto remove branches that are no longer needed.Installationpip install git-debranchRunninggit debranchFrom inside a git repository, runninggit debranchwill present you with a list of branches that could
be deleted. This list is presented using$EDITOR. If the environment variable is not setviis used
as the fallback.Please notegit fetch -pis run before the branch list is presented. This can be disabled by providing
the --offline switch.Usageusage: git debranch [-h] [--offline] [--dry-run]

Delete local git branches

options:
  -h          show this help message and exit
  --offline   Do not run online operations such as fetch and prune
  --dry-run   Do not actually delete branchesEditing the Branch ListWhen$EDITORis invoked, it will contain a series of lines. Comment lines begin with#and any line that
is not empty or a comment is assumed to be the name of a branch to delete locally. You can update this list
by either removing or commenting branches that you want to keep. Branches that appear safe to delete are
uncommented by default. Branches that may not be safe to delete are left commented by default. When you save
and close$EDITORany uncommented branches will be deleted usinggit branch -D.DevelopingIn my opinion this project turned out to be quite pleasurable to work with. Please feel free to play with
the code.TODO.mdhas some loose TODO items that may turn into issues at some point.Development Installationpip install -r dev_requirements.txtYou likely want to be inside a venv. This wlll give you an editable installation so you can run the program
and see changes. If you add a new bpmn/json file then you need to re-run this command.Using SpiffArena for BPMN editsSpiffArenais used to make edits to the BPMN files that are
bundled with this program. To start the editor runmake run-editor. You will be presented with a message
once started to go tohttp://localhost:8001(assuming the default configuration is used). The editor
requiresdockeranddocker composeto run.From there you can edit the diagrams but you cannot run them from within SpiffArena at this time. Some work
would need to be done to support our customConnector Proxythat is not http based. You can however run
theScript Taskunit tests, which were very helpful during development.When finished you canmake stop-editor. If you would like to pull the latest version of SpiffArena usemake update-editor.
Package: git-del-br
git-del-brDeleting Merged BranchesUsage:usage: git-del-br [-h] [-ls] [-r] [-l] [-a] [-t time] [-br branch]
                     [-pre prefix] [-suf suffix]

Tool for deleting remote and local merged branches from Git

optional arguments:
  -h, --help            show this help message and exit
  -ls, --list           Lists the branches (not delete)
  -r, --remote          remove merged branches
  -l, --local           Remove local branches
  -a, --all             Removes both local and remote merged branches
  -t time, --time time  All branches after t-time which the branch is merged
                        (in days) default = -1 means infinite days
  -br branch, --branch branch
                        Branch from which other branches will be analysed
                        (default = current_branch)
  -pre prefix, --prefix prefix
                        Filter branches based on prefix
  -suf suffix, --suffix suffix
                        Filter branches based on suffixYou can find more details about the projecthere.Examples:For listing remote merged branches which haven’t been touched since
past 3 months (last commit was 3 months ago)git-del-br -ls -r -t=90For deleting those branchesgit-del-br -r -t=90For listing local branches which start withdevprefixgit-del-br -ls -l -pre='dev'For deleting those branchesgit-del-br -l -pre='dev'INSTALL:You can install this from pip usingpip installgit-del-br.CONTRIBUTION:Fork the project. Create a branch frommasterorgh-pagesand
submit a PR to the same.LICENSE:The mighty MIT license. Please checkLICENSEfor more details.
Package: gitdep
gitdepDependency management between git repositories made easyAboutGit-Dependencies is a tool that allows developers to establish and resolve dependencies between git projects just like it is done by a package manager.PrinciplesWhether it's a scripted language or a compiled language, sometimes a build is required outside the traditional package management system (like doing an integration test between release candidates or working on bleeding edge branches), so a dependency relation must be expressed in terms of source code rather than deployed packages.Although git-submodules works well for cloning dependencies into projects, the subdirectory approach makes it unsuitable for libraries, where dependencies are not subdirectories.Most build systems try to solve this, but we think they shouldn't, mostly because it ties management responsibilities to software where the build is the actual star of the show. Furthermore, it will require every dependant project to use their choice of build system.We believe that a dependency manager for source code should be simple and able to get you the dependencies that you asked, where you asked, with versioning restrictions resolved (or inform you of any conflicts) and let you decide how to handle it.Versioning with GITThe relation between versions (hashes and tags) is extracted from the git's internal tree, so a hashAis older thanBif itAis an ancestor ofB. Because of that,gitdepcan also detect version conflicts when projects depend on hashes from incompatible branches.QuickstartInstallgitdepthroughpip install --user gitdep;Create agd.txtfile in the root directory of your project;Express dependencies in the format:REPO_URL RELATION HASH_OR_TAG, whereRELATIONcan be either==,<=or>=;Clone and resolve the dependencies to yourclone_dirdirectory of choice by callinggitdep clone_dir.The last command will clone and scan repositories recursively until the dependencies for all repositories are met.To be easily integrated with existing tools and scripts,gitdep clone_dirwill print the resulting list of cloned repositories tostdoutalong with their versions:foriin$(./gd.pyinclude/2>/dev/null|cut-d' '-f2);doecho"Cloned repository$i"doneMulti-resolveFor testing, one may require additional dependencies, sogitdepalso supports a list of dependency files in the same format asgd.txt, just callgitdep clone_dir project_dep_file test_dep_fileand it will resolve the dependencies together.
Package: git_dependency_installer
Git dependency pythonA packaged used to manage dependencies in git repositories for python projects.Prepare your projectInstall scriptYour projects need to contain bash installation file which looks like this:#!/usr/bin/env bashPYTHON=$1ENVIRONMENT=$2CHILD=$3DIR_NAME=$(dirname$0)CURRENT_PATH=$(pwd)# Remove previous failed builds.rm-rf*.egg-infobuilddistset-eif[["$ENVIRONMENT"="dev"||"$ENVIRONMENT"="prod"]]thenecho"Running installation with python '$PYTHON' and path (script: '$DIR_NAME', pwd:$CURRENT_PATH) in '$ENVIRONMENT' environment."${PYTHON}-mpipinstallgit-dependency-installer--upgrade--force-reinstall${PYTHON}$DIR_NAME/setup.pysdistif[["$CHILD"="--child"]]then${PYTHON}-mpipinstalldist/*--install-option=--environment="$ENVIRONMENT"--install-option="$CHILD"else${PYTHON}-mpipinstalldist/*--install-option=--environment="$ENVIRONMENT"fielseecho"Unsupported environment!"exit1fi# Remove build leftovers.rm-rf*.egg-infobuilddistSetup.py fileAlso, you need to modify your projects' setup.py files to:fromgit_dependency_installer.setup_helperimportprepare_setup,install_depsPACKAGE_VERSION='major.minor.bugfix'# Example: 1.0.0.PROJECT_NAME='<your-project-name>'# Example: my-cool-s3-dependency.DESCRIPTION='<your-project-description>'# Example: Library used to work with S3 buckets.PARENT_PROJECT_NAME='<your-main(parent)-project-name>'# Example: my-cool-project.INTERNAL_DEPENDENCIES=[['my-cool-other-dependency','2.*.*','my-team/my-cool-other-dependency'],...]EXTERNAL_DEPENDENCIES=['requests==2.18.4','Django==2.0.3',...]prepare_setup(PACKAGE_VERSION,PROJECT_NAME,DESCRIPTION,PARENT_PROJECT_NAME)install_deps(EXTERNAL_DEPENDENCIES,INTERNAL_DEPENDENCIES)Prepare your gitTaggingStart git-tagging your commits. Example, for development tag your commits like this dev-2.1.0, for production tag your commits like this: 2.1.0.Using sshSetup SSH file for your git repositories and start using SSH over HTTPS.CreditsThis package is a direct copy of the package git-dependency-python by Laimonas Sutkus, except pip version assertion is removed, as the asserted version (18.1) is outdated and doesn't allow installation of some newer packages.
Package: gitdeploy
Git DeployA service that updates local directories based on changes to a remote git repositoryFree software: GNU General Public License v3Documentation:https://gitdeploy.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-07-22)First release on PyPI.
Package: gitdir
gitdirMinimal and colorful output 🌈Works onLinux,MacOS, andWindowsSupport recursive downloadingInstall$pip3install--usergitdir# Yes, thats all :)Usageusage: gitdir [-h] [--output_dir OUTPUT_DIR] [--flatten] urls [urls ...]

Download directories/folders from GitHub

positional arguments:
  urls                  List of Github directories to download.

optional arguments:
  -h, --help            show this help message and exit
  --output_dir OUTPUT_DIR, -d OUTPUT_DIR
                        All directories will be downloaded to the specified
                        directory.
  --flatten, -f         Flatten directory structures. Do not create extra
                        directory and download found files to output
                        directory. (default to current directory if not
                        specified)Packge EntryYou can usepython -m gitdir/python3 -m gitdirin case the short command does not work.ExitingTo exit the program, just pressCTRL+C.LicenseMIT LicenseCopyright (c) 2019 Siddharth Dushantha
Package: git-dmb
git-dmbA convenient command-line tool helping you keep repositories clean.git-dmb on PyPI is technically a "virtual" or "meta" package
that leverages Setuptools' featureinstall_requiresto pull in the current latest version
of packagegit-delete-merged-brancheswhich comes with commandgit-dmband the actual software.The motivation behind this package is to protect users againstattacks like Pytosquatting, primarily.
Package: gitdraw
GitdrawA simple tool for generating git graphs from a set of git commandsGetting StartedInstallingEither clone directly from the repo or install using pippipinstallgitdrawRunning the testsThe project tests are run withpytestautomatically in pipelines. To run
them manually find thepytestscript command in.gitlab-ci.ymland run it from the root of the repository.pytest:stage:Testscript:-<this command>Running the toolThe tool is run usingpython3.7. For help text use:python3.7-mgitdraw.__main__-hIt takes a single input file containing a list of git commands and
outputs a SVG representationpython3.7-mgitdraw.__main__-iinfileThe tool currently supports the following commands:git checkout <branch>git commitgit branch <branch>git merge <branch>Built WithSeerequirements.txtfor the full details of external
packages. A number are used just for testing so won't be required if you
don't intend to run the testsExamplesThere are a number of autogenerated examples that can be viewedherealong with their source text.
Package: gitdump
█▀▀ █ ▀█▀ █▀▄ █░█ █▀▄▀█ █▀█  version
█▄█ █ ░█░ █▄▀ █▄█ █░▀░█ █▀▀  1.0.1Usageusage: gd [-h] [-u USERNAME] [-l LOCATION]

Dump all repos of a github account at once.

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        username of the github account
  -l LOCATION, --location LOCATION
                        location to save dumped repos
Package: git-dumper
git-dumperA tool to dump a git repository from a website.InstallThis can be installed easily with pip:pip install git-dumperUsageusage: git-dumper [options] URL DIR

Dump a git repository from a website.

positional arguments:
  URL                   url
  DIR                   output directory

optional arguments:
  -h, --help            show this help message and exit
  --proxy PROXY         use the specified proxy
  -j JOBS, --jobs JOBS  number of simultaneous requests
  -r RETRY, --retry RETRY
                        number of request attempts before giving up
  -t TIMEOUT, --timeout TIMEOUT
                        maximum time in seconds before giving up
  -u USER_AGENT, --user-agent USER_AGENT
                        user-agent to use for requests
  -H HEADER, --header HEADER
                        additional http headers, e.g `NAME=VALUE`Examplegit-dumper http://website.com/.git ~/websiteDisclaimerUse this software at your own risk!You should know that if the repository you are downloading is controlled by an attacker,
this could lead to remote code execution on your machine.Build from sourceSimply install the dependencies with pip:pip install -r requirements.txtThen, simply use:./git_dumper.py http://website.com/.git ~/websiteHow does it work?The tool will first check if directory listing is available. If it is, then it will just recursively download the .git directory (what you would do withwget).If directory listing is not available, it will use several methods to find as many files as possible. Step by step, git-dumper will:Fetch all common files (.gitignore,.git/HEAD,.git/index, etc.);Find as many refs as possible (such asrefs/heads/master,refs/remotes/origin/HEAD, etc.) by analyzing.git/HEAD,.git/logs/HEAD,.git/config,.git/packed-refsand so on;Find as many objects (sha1) as possible by analyzing.git/packed-refs,.git/index,.git/refs/*and.git/logs/*;Fetch all objects recursively, analyzing each commits to find their parents;Rungit checkout .to recover the current working tree
Package: gitea-actions-webscraper
Gitea Actions WebscraperInstall with:pip install gitea_actions_webscraperExample usage:fromgitea_actions_webscraperimportGiteaActionsWebscraperimportjsonprint('Verifying Gitea Actions Webscraper configuration...')gitea_actions_webscraper=GiteaActionsWebscraper('https://codeberg.org','User/Repository','YOUR_i_like_gitea_COOKIE')print('Gitea Actions Webscraper configuration verified!')actions=gitea_actions_webscraper.getFirstActionsPage()lastAction=actions[0]print(lastAction.commitTitle)print(json.dumps(lastAction.getArtifacts(),indent=4))print(json.dumps(lastAction.getLogs(),indent=4))messages='\n'.join([stepLog['message']forstepLoginlastAction.getStepLogs(0)])print(messages)