Saravanan666/pypi-org huggingface dataset:
Package: gitlo
*****Gitlo*****A Command Line Interface made in Python. It's a simple tool that helps you to access Github API.I used Python library ``Click`` to make this application.Quick Start########Install Package::pip install gitloExamples########Get user info**************Use the ``gitlo user <username>`` command to get information of user.::$ gitlo user siddharthshringiName: Siddharth Shringi, Repos: 16, Bio: Python Developer | ML EnthusiastGet repository list of user******************Use the ``gitlo user <username>`` command to get information of user.::$ gitlo repos siddharthshringiblacksamsung.github.iocreate-your-own-adventuredatadiary_of_programming_puzzlesdjango-rest-frameworkGitlohello-worldhello_worldmarkdown-heremy-first-blogmy-first-contact-apprecipesreflectionssiddharthshringi.github.ioSong-AppThinkStats2Get language percentage of each repository******************Use the ``gitlo languages <username> <reponame>`` command to get language information in repository.::$ gitlo languages siddharthshringi Song-AppPython: 59.84%HTML: 32.96%CSS: 7.2%License******************MIT licensed. See the bundled `LICENSE <https://github.com/SiddharthShringi/Gitlo/blob/master/LICENSE>`_ file for more details.
Package: gitload
GitLoadis a simple Python API for downloading web-repositories using
only the standard library.Supported Platforms:BitBucket:https://bitbucket.org/GitHub:https://github.com/Quick Start>>>fromgitload.githubimportdownload>>>download(user='numpy',repo='numpy')WindowsPath('C:/Users/GitLoad/AppData/Local/Temp/tmp17gdig4b')InstallationInstallation usingpip(a Python package manager):gitload@dev~$pipinstallgitloadLicenseMIT License, Copyright (c) 2023 Sergei Bogdanov. SeeLICENSEfile.
Package: gitlogfeed
gitlogfeedgitlogfeedcreates an atom feed from your git log.InstallationpipinstallgitlogfeedWhen to use?If your project has plain text documentation (reStrucutedText, markdown or
gherkin) you can setup an atom feed withgitlogfeedto notify your users
about the changes of your project:gitlogfeed--repo/path/of/your/git/repo--filter-pathdocshttps://your.siteThe title and summary of the feed entry will be created from the commit
message.gitlogfeedcreates html file from every patch and the content of the
feed entry will link to the html file.The scope of the generated diff can be set with the--diff-contextoption.
You can show the entire file with a big enough limit:gitlogfeed --diff-context 5000 https://your.sitegitlogfeedcan read the git log from stdin:git log --max-count 20 | gitlogfeed -i --target-dir docs/build https://your.site
Package: git-logs
git-logscompare & filter commits based on frequency, author etcContribution GuidelinesReadCONTRIBUTION.mdInstallationpipinstallgit-logs# upgrade to latest versionpipinstall--upgradegit-logsUsageNOTE: Both git-logs and gitlogs work.By default commits will be listed bymonthgitlogs-fdayHelpoptionsError whengit not initializedTo-DoDisplay package version - also checks if installed or notAdd option to change the default display barMake date format more readable.Automate the process of publishing package topypiusingActionsHighlight weekends.Fixcolorissue on Windows Powershell/CMDAdd option to change default frequencyAdd option to list lastncommits
Package: gitlogs-mohanchinnappan
Python package for reading git logsExample usage:importargparseimportwebbrowserfromdatetimeimportdatetimeimportget_git_logsasgl# Example# python example_gl.py --git_folder  <git_folder>  --from_date 2023-08-01 --output_csv ~/git-functions/commit_logs.csvdefmain():parser=argparse.ArgumentParser(description='List Git commit logs for a given folder')parser.add_argument('--git_folder',type=str,help='Path to the Git repository folder')parser.add_argument('--from_date',type=str,help='Filter commits from the specified date (YYYY-MM-DD)')parser.add_argument('--output_csv',type=str,help='Specify the output CSV file')args=parser.parse_args()git_folder=args.git_folderfrom_date_str=args.from_datefrom_date=datetime.strptime(from_date_str,'%Y-%m-%d')iffrom_date_strelseNonecommit_logs=gl.get_git_commit_logs(git_folder,from_date)ifargs.output_csv:output_csv=args.output_csvgl.save_to_csv(commit_logs,output_csv)print(f'Commit logs saved to{output_csv}')# Copy CSV content to clipboardwithopen(output_csv,'r')ascsv_file:csv_content=csv_file.read()gl.copy_to_clipboard(csv_content)print('CSV content copied to clipboard')# Open the specified URL with the CSV dataweb_url=f'https://mohan-chinnappan-n5.github.io/viz/datatable/dt.html?c=csv'webbrowser.open(web_url)else:print('Commit Logs:')forcommitincommit_logs:print(commit)main()
Package: gitlogviz
GitLogVizGitLogViz is a tool for visualizing the Git log in a graph. It provides a simple and interactive way to explore the commit history of a Git repository.InstallationYou can install GitLogViz usingpip. Make sure you have Python and pip installed on your system.pipinstallgitlogvizUsageOnce installed, you can use GitLogViz by running thegitlogvizcommand in your terminal. By default, it will display a visual representation of the last 10 commits. You can customize the number of commits displayed using the--limitoption.# Display the latest 5 commitsgitlogviz--limit5This will show a graph of the last 5 commits.Advanced UsageGitLogViz provides flexible options for visualizing commit history. The--limitoption allows you to control the number of commits displayed in the graph. For example, to view the first 8 commits:gitlogviz--limit8To show all commits, use:gitlogviz--limitallAdditionally, you can use negative values to display commits relative to the latest, for instance:# Display the first 3 commitsgitlogviz--limit-3Experiment with different values to tailor the visualization to your needs.ContributingIf you would like to contribute to GitLogViz or report issues, please visit theGitHub repository. We welcome your feedback and contributions.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: gitly
gitly: Showing plotly graphs in githubThis is a home made lib to help you plot your fency graphs from plotly in github while using Google Colab notebook.The problem: Nbviewer from Github is static!The problem is that all fency engines that you use on notebooks doesn't run in static viewers, of course there's a lot of ways to generate static images in this libraries. But I use Google Colab by a lot in my classes and I would like to have a easy way to switch betweern dinamic plots and statics plots (to commit and share nice plots in github). So I implement this very simple implementation.Easy switch between colab and git "renderers"Just change from dinamic to static using:fromgitly.colab.plotimportGitlyPlotter# Instantiate the object using 'github' or 'git' for static plots# or 'colab' for default dinamic Plotly plotsgitly=GitlyPlotter('github')Now just pass the figure from plotly togitly.show( fig )and it's done!!!importplotly.expressaspxfig=px.scatter_3d(df,title="Random data")gitly.show(fig)Now you can commit all your fency plots in github! Congratz!Can I use both in the same Colab notebook? Sure you can!Just usegitly.config_render('colab')to switch back in the cell and renderer with default plot from Plotly.Example here!You can check that some plots you can see (used "github" view) and others that is used the standard Plotly Engine you only can see if you run this notebook in Google colab.Simple ExampleInstalationThis lib is intended to be used only on Google Colab notebooks.Open a cell and run the following code:!pip install gitly==1.0.1FeaturesThis features are only for static plots.Change the defaultsYou are able to set a default values forhight,widthandscalefor all your plots.gitly.config_render('git',default_height=600,default_width=1000)# set default values for all gitly.show()fig=px.scatter_3d(df,title="Random data")gitly.show(fig)Change thescalewhere ever you want, and all plots after will scale up or down:gitly.config_render('git',scale=0.5)# set default scale for all gitly.show()fig=px.scatter_3d(df,title="Random data")gitly.show(fig)Apply change for a specific plotOr apply an specific change only to one plot while calling.show()with more arguments:fig=px.scatter_3d(df,title="Random data")gitly.show(fig,height=333,width=777,scale=1.5)# this change will be applied only for this plotFor more, check thisexampleLicenseMITCreated without pretensions by Tiago Sanches da Silva.
Package: gitmachine
GitMachine is a python library that aims to mimic git checkout processes to
handle url aliasing and cases where submodules may need to be overriden ad-hoc.This is based on the submodule override schema in baserock, but can be used
independently of baserock build tooling.Here’s how to use it# Set some aliases, this is usually a dictionary of prefix mappings. Here
# we set a single prefix meaning, wherever we see ‘upstream:’, substitute
# it for ‘git://git.baserock.org/delta’aliases = { ‘upstream:’: ‘git://git.baserock.org/delta/’}# Make a GitMachine, specifying a ‘gits’ directory, a ‘tmp’ directory and
# the aliases. ‘gits’ is where the gits end up stored. GitMachine will name
# them in a standard way.gitmachine = GitMachine(‘gits’, ‘tmp’, aliases)# We’re going to check out ansible at the ref ebc8d48d34296fe010096f044e2b7591df37a622,
# using the upstream baserock repository. We need to make a submodule mask, which maps
# the path of the submodule in the main repository to an alternate url. It looks like
# this:ansible = {‘lib/ansible/modules/core’: { ‘url’: ‘upstream:ansible-modules-core.git’ },‘v2/ansible/modules/core’: { ‘url’: ‘upstream:ansible-modules-core.git’ },
‘v2/ansible/modules/extras’: { ‘url’: ‘upstream:ansible-modules-extras.git’ },
‘lib/ansible/modules/extras’: { ‘url’: ‘upstream:ansible-modules-extras.git’ }}# Use the arrange_into_folder method to clone upstream:ansible from git.baserock.org,
# also passing in the ref, the submodule mask, and a folder, to clone into the folder
# using the overriden sources. Here it will evaluate upstream:ansible and clone it
# into the folder ‘ansible.build’, using the submodule override mask.gitmachine.arrange_into_folder(‘upstream:ansible’, ‘ebc8d48d34296fe010096f044e2b7591df37a622’, ansible, ‘ansible.build’)GitMachine also works recursively. An example of a recursive checkout of the qt5 master
repository can be found in ‘quick-check.py’
Package: gitman
OverviewGitman is a language-agnostic dependency manager using Git. It aims to serve as a submodules replacement and provides advanced options for managing versions of nested Git repositories.SetupRequirementsPython 3.8+Git 2.8+ (withstored credentials)InstallationInstall this tool globally withpipx(or pip):$pipxinstallgitmanor add it to yourPoetryproject:$poetryaddgitmanConfigurationGenerate a sample config file:$gitmaninitor manually create one (gitman.ymlor.gitman.yml) in the root of your working tree:location:vendor/gitmansources:-repo:"https://github.com/kstenerud/iOS-Universal-Framework"name:frameworkrev:Mk5-end-of-life-repo:"https://github.com/jonreid/XcodeCoverage"name:coveragelinks:-target:Tools/XcodeCoverage-repo:"https://github.com/dxa4481/truffleHog"name:trufflehogrev:masterscripts:-chmod a+x truffleHog/truffleHog.py-repo:"https://github.com/FortAwesome/Font-Awesome"name:fontawesomerev:mastersparse_paths:-"webfonts/*"-repo:"https://github.com/google/material-design-icons"name:material-design-iconsrev:mastergroups:-name:codemembers:-framework-trufflehog-name:resourcesmembers:-fontawesome-material-design-iconsdefault_group:codeIgnore the dependency storage location:$echovendor/gitman>>.gitignoreUsageSee the available commands:$gitman--helpUpdating DependenciesGet the latest versions of all dependencies:$gitmanupdatewhich will essentially:Create a working tree at<root>/<location>/<name>Fetch fromrepoand checkout the specifiedrevSymbolically link each<location>/<name>from<root>/<link>(if specified)Repeat for all nested working trees containing a config fileRecord the actual commit SHAs that were checked out (with--lockoption)Run optional post-install scripts for each dependencywhererevcan be:all or part of a commit SHA:123defa tag:v1.0a branch:mainarev-parsedate:'main@{2015-06-18 10:30:59}'Alternatively, get the latest versions of specific dependencies:$gitmanupdateframeworkor named groups:$gitmanupdateresourcesRestoring Previous VersionsDisplay the versions that are currently installed:$gitmanlistReinstall these specific versions at a later time:$gitmaninstallDeleting DependenciesRemove all installed dependencies:$gitmanuninstallResourcesSource codeIssue trackerRelease history
Package: gitmanager
gitmanagerA simple way to keep track of multiple git projects.UsageInstall withpipsi:$ pipsi install gitmanagerInstall withpip:$ pip install gitmanagerAdd a repo:$ cd my-repo
$ gim add .Remove a repo:$ gim rm ~/my-repoCheck the current status (uncommitted changes, current branch) of all repos:$ gim statusor$ gim statusRungit pullon all repos:$ gim pullCheck local branches:$ gim branchCheck out master in all repos:$ gim masterWorks with Python 3, untested with Python 2.x.
Package: gitmanipulator
manipulate many git projectProject managementFirst, let's start to add some project to manage.gitmanipulatorprojectadd./project1project2
gitmanipulatorprojectlistIf this project doesn't have a package.json, set version manually.gitmanipulatorprojectupdate1--version1.2.3create a releaseThis feature work only for bitbucket. It will stash all your work, update the version, create a release branch, push it,
and open the browser to create a PullRequestgitmanipulatorprojectreleaseDevelopment memoryReleasing to PyPiBefore releasing to PyPi, you must configure your login credentials:~/.pypirc:[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORDThen use the included helper function via theMakefile:$ make dist

$ make dist-upload
Package: gitmantool
Git Manager ToolConsole tool for manage projects on github/gitlabInstallationInstall with pip:pip install gitmantoolInstall from source:git clone https://github.com/katmai1/gitmantool && cd gitmantoolpip install -r requirements.txtpip install -eUsageGo to your project folder and execute the new gm command.
First time ask for link of your repo, for example:https://github.com/katmai1/gitmanagerDevelopmentRequeriments for developerspip install --upgrade setuptools wheel twineHow to generate a new versionAssign version number on filesetup.pyCommit all changesgit tag 0.1 -m "tag description"git push --tags origin masterBuild package:python setup.py sdist bdist_wheelUploadtwine upload -r pypi --skip-existing dist/*
Package: gitmap
gitmapMap git commits to new commits, preserving history.UsageInstall dependencies,pip install -r requirements.txt. (python2 is currently unsupported.)Inherit the classgitmap.GitMap, and overrideblob_mapandcommit_map. Theblob_mapfunction maps a source path to a destination path, etc. Thecommit_mapfunction maps a commit message to a new message, etc.Callrun(src_repo_path, dst_repo_path). All heads will be mapped.Setremove_empty_commitstoTrueif you want to remove empty commits. (A non-empty commit may be mapped to an empty commit, depending on your map function.)Moreover, you can add blobs to each commit by overridingcommit_add, and print progress by overrideprogress. Thecommit_addreturns a list of blobs, each of which is in the same scheme asblob_map.progressis called after each commit is mapped.ExampleSeeexample.py.classMyGitMap(gitmap.GitMap):defblob_map(self,data_stream,mode,path):# keep README and LICENSEifpathin['README.md','LICENSE.txt']:returndata_stream.read(),mode,path# flatten python dirifpath.startswith('python/'):returndata_stream.read(),mode,path[len('python/'):]# delete other fileselse:returnNonedefcommit_add(self,old_commit):# add .gitignorereturn[(b'__pycache__\njittor.egg-info\n',0o100644,'.gitignore'),]defcommit_map(self,old_commit,message,author,authored_date,author_tz_offset,committer,committed_date,committer_tz_offset):# keep author, update committercommitter=git.Actor('Tailing Yuan','yuantailing@gmail.com')committed_date=time.time()returnmessage,author,authored_date,author_tz_offset,committer,committed_date,committer_tz_offsetdefprogress(self,old_commit,new_commit):# loggingprint('committed',old_commit,'=>',new_commit)remove_empty_commits=TrueMyGitMap().run('../jittor','../jittor-python-only')
Package: gitmatch
GitHub|PyPI|Documentation|Issuesgitmatchprovidesgitignore-style pattern matching of file paths.
Simply pass in a sequence ofgitignorepatterns and you’ll get back an
object for testing whether a given relative path matches the patterns.Installationgitmatchrequires Python 3.7 or higher.  Just usepipfor Python 3 (You have pip, right?) to install it:python3 -m pip install gitmatchExamplesBasic usage:>>> import gitmatch
>>> gi = gitmatch.compile(["foo", "!bar", "*.dir/"])
>>> bool(gi.match("foo"))
True
>>> bool(gi.match("bar"))
False
>>> bool(gi.match("quux"))
False
>>> bool(gi.match("foo/quux"))
True
>>> bool(gi.match("foo/bar"))
True
>>> bool(gi.match("bar/foo"))
True
>>> bool(gi.match("bar/quux"))
False
>>> bool(gi.match("foo.dir"))
False
>>> bool(gi.match("foo.dir/"))
TrueSee what pattern was matched:>>> m1 = gi.match("foo/bar")
>>> m1 is None
False
>>> bool(m1)
True
>>> m1.pattern
'foo'
>>> m1.path
'foo'
>>> m2 = gi.match("bar")
>>> m2 is None
False
>>> bool(m2)
False
>>> m2.pattern
'!bar'
>>> m2.pattern_obj.negative
True
>>> m3 = gi.match("quux")
>>> m3 is None
True
Package: gitmate
GitMate is your companion to generate commit messages, PR titles and descriptions using ChatGPT.Installationpip install gitmateUsageAdd your API keys and model typegitmate connectVerify your keysgitmate verifyCreate a commitgit add some_file.py- git commit -m "commit message"+ gitmate commitCreate a PR- gh pr create -t "some title" -b "some description"+ gitmate create-prDemohttps://user-images.githubusercontent.com/30778939/226752630-aec2c8f8-c06f-4123-8023-a0b764ac21fd.mp4
Package: gitme
gitmeCan be used to create a merge request on gitlab for a changed repostory.Desired Workflow:periodically run some tasks in a git repository that may change some filesrungitmea merge request is created, if files have changedFeaturescreates branchcreates merge requestautomergeupdates existing branch, that is not merged yetoptionsusage: gitme [-h] [-u url] [-t pat] [-a] [-g gitrepo] [-b branch] [-V]
             [-l LOGLEVEL] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -u url, --url url     url of gitlab server, defaults to http://localhost
  -t pat, --pat pat     personal access token
  -a, --automerge       automerge merge requests if pipeline succeeds
  -g gitrepo, --gitrepo gitrepo
                        repository location
  -b branch, --branch branch
                        branch name, default: gitme/update
  -V, --version         print version
  -l LOGLEVEL, --loglevel LOGLEVEL
                        loglevel: critical, error, warning, info, debug
  -v, --verbose
Package: gitmerge
GitMergeAs many developers have to use a separate Git account during work, a large amount of their work is not tracked in their personal profile which is often a good reference on resumes etc.
GitMerge solves this problem by importing meta data of your work commits to a dummy repo in your private Git account.InstallationEasiest way:pipinstallgitmergeOr you can also install it from source.
For development clone the repo and install it with-eflag.gitclonegit@github.com:bensch98/git-merge.gitcdgit-merge
pipinstall-e.If you have nice ideas, feel free to open a PR.UsageThe easiest way to use this package is via its CLI.gitmergemerge--author[GIT_NAME]--src[SOURCE_REPO]--dest[DESTINATION_REPO]--company[COMPANY_NAME]--since2021-12-31--until2022-01-10Flags:--author: Your Git username which was used for the commits. Only commits of this account will be merged into the destination repo.--src: Relative path to the source repository from which you want to import the commits.--dest: Relative path to the destination/dummy repository where the commits will be imported into. For each repository a directory and file will be created where meta data of the commits will be stored.--company: The name of the company which owns the repository. Can be omitted in the future.--since: Specifies from where on the commits should be taken into account. Can be specified as date (2021-09-30, 2021/09/30, 2021-9-1, 2021/9/30, ...) or as a delta value.--list: Can be used to view the commits which would be committed and pushed without this flag. It does nothing despite printing out the commits to the terminal.For more help use the--helpflag of the CLI.Examples for --since flag:1y: All commits of last year.1y3m: All commits of last 15 months.2w4d: All commits of last 2 weeks and 4 days (18 days).40d1y: All commits of last year and 40 days (405 days).0d: Only todays commits.--since defaults to the last 7 days if nothing was specified.
Each mode (y = year, m = month, w = week, d = days) defaults to 0 if omitted. Therefore 2d == 0y0m0w2d.
--until default to current datetimeThe package can also be imported and used like this.fromgitmerge.mergeimportMergerm=Merger('USERNAME','../PATH/TO/SOURCE/REPO','../PATH/TO/DESTINATION/REPO','COMPANY_NAME')commits=m.get_commits()m.merge(commits)m.pushTODOsDocumentation (README / Sphinx ?)UnittestsGithub Actions (workflows)Command-line interface with click (more configuration options)Help with these TODOs or good advice is greatly appreciated.
For any questions open an issue.
Package: gitmesh
Disclaimer: this project is currently only a thought experiment!This project’s goal is to build a distributed support for modern Git workflows.While Git has been a DVCS from the start, the fork & pull request model is
typical of centralized hosting systems.In my wildest dream, this project would serve as a proof of concept for the
architecture required to replace GitHub with a distributed implementation where
anybody can self-host their own repositories without losing the ability to use
the now widely appreciated power of pull requests.The minimal requirements for this system are:people can trivially customize their Git workflow using Git server hooks for
implementing things like:branch update history;repository, branch & tag permissions;deploy on push.people can browse a mesh of these servers using a “true” REST API.