Saravanan666/pypi-org huggingface dataset:
Package: gha-stats
mtngGenerate meeting notes from GitHub +IndicoInstallationpip install mtngInterface$mtnggenerate--helpUsage: mtng generate [OPTIONS] CONFIGGenerate a LaTeX fragment that includes an overview of PRs, Issues andoptionally an Indico agendaArguments:CONFIG  [required]Options:--token TEXT                    Github API token to use. Can be suppliedwith environment variable GH_TOKEN--since [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S][required]--now [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S][default: 2021-10-26T13:10:29]--event TEXT--help                          Show this message and exit.Configurationmtngconsumes a configuration file to specify which GitHub repositories to ingest. An example configuration could look like this:repos:
  - name: acts-project/acts
    do_stale: true
    stale_label: Stale
    wip_label: ":construction: WIP"
    do_open_prs: true
    do_merged_prs: true
    do_recent_issues: falseThis configuration will look up theacts-project/actsrepository. The output will contain sections onStale PRs and issues. If this is turned on, thestale_labelkey must be given as wellA list of open PRs, optionally filtered to not include the label given bywip_labelMerged PRs since the date given by the--sinceoptionIssues opened since the date given by the--sinceoptionIn addition and independent of this config, a meeting agenda can be attached at the end if the--eventoption is provided and contains a valid Indico URL.Making a presentationThe output ofmtng generateis a LaTeX fragment. It has to be incorporated into a set of Beamer/LaTeX slides, for example like$mtnggeneratespec.yml>gen.texwith a LaTeX file like% Preamble and beginnig of slides\input{gen.tex}% Rest of slides
Package: ghastoolkit
GHASToolkitOverviewGitHub Advanced Security (GHAS)Python Toolkit to make the lives of everyone that uses GHAS a little easier.InstallingTo installghastoolkit, you can usepipor one ofpypifamily's of tools to install:# pippipinstallghastoolkit# pipenvpipenvinstallghastoolkit# poetrypoetryaddghastoolkitUsageTo see how to useghastoolkit,take a look at the docs.LicenceThis project is licensed under the terms of the MIT open source license.
Please refer toMITfor the full terms.SupportSupport is viaGitHub Issues
Package: ghat
OverviewGHat (Github Hat Decorator/Green Hat Decorator) is a quick hack for decorating your GitHub contribution calendar with a specific date file.You can create any patterns you want on the Contribution Calendar.If you mess up everything, just delete the corresponding repository and your contribution calendar will be restored.It uses the GIT_AUTHOR_DATE and GIT_COMMITTER_DATE environmental variables to make commits appear in the past.Be warned that GHat will clobber your repository’s commit history. Therefore it’s better for you to use it on a new repository.GHat contains a main.py file and a web with JS.
The process is to customize the pattern you want through the Web page, and the Web will generate a date.txt which contains the date of the commit and the number of times it should be committed. Then main.py will read the file, make commits based on the date and number of times in the file and finally push it to your repository.Check the GHat homepage athttps://github.com/Nymphxyz/ghatfor more information.RequirementsGitPython 3.6+Works on Linux, Windows, macOS(hasn’t been tested)InstallThe quick way:pip install ghatUsageBefore you use it remember to check your git email address.
It must be same with your email in github, otherwise all commits won’t appear in the contribution calendar.git config –global user.email  “your@email.address”First cd to your repository directory.Then you have 3 choices:The simplest way is type “ghat” and follow the instructions:ghatOr use shortcut to initialize a new repository and make commit (This  willcreatetwo filesREADME.mdandwork.txt):ghat -i your_repository_url /path/to/date.fileOr use shortcut to make commits on an existing repository (This operation willcreateandoverwritefilework.txt):ghat /path/to/date.fileDocumentationCheck details athttps://github.com/Nymphxyz/ghat
Package: gha-tools
gha-toolsTable of ContentsInstallationLicenseInstallationpip install gha-toolsYou can also usepipxto directly rungha-tools.UsageAutomatically updating workflow action versionsUsegh-tools autoupdateon a workflow file or directory to automatically
update the action versions to the latest available version.By default, the command will not write changes to the file system; use--writeto have it do that.You can use--diffto see what changes would be made. This can be used in conjunction with--write.You can use--version-strategy=specificto update to a specific latest version tag instead of the major
tag, e.g.v1.2.3instead ofv1.  The default is to use the major tag, when available.$gha-toolsautoupdate--diff.github/workflowsUpdating .github/workflows/publish.yml...No changes to .github/workflows/publish.yml.Updating .github/workflows/ci.yml...--- .github/workflows/ci.yml+++ .github/workflows/ci.yml@@ -34,7 +34,7 @@requirements*txt- run: 'pip install -e . -r requirements-test.txt'- run: py.test -vvv --cov .-      - uses: codecov/codecov-action@v2+      - uses: codecov/codecov-action@v3Lint:runs-on: ubuntu-20.04GitHub Rate LimitingSince this tool uses the GitHub API, you may run into rate limiting issues.
You can specify your GitHub authentication via the environment variableGITHUB_TOKENorGITHUB_AUTH.If the value of the environment variable contains a colon (:), it will be interpreted as a username and password;
this is useful with Personal Access Tokens, which are used with your GitHub username.Licensegha-toolsis distributed under the terms of theMITlicense.
Package: ghau
GHAUGithub Auto Update package available to use for all public Github Repositories.Currently in development.GoalThe goal of this repository is to create a flexible package that can easily be implemented into any python project allowing for automatic updates through GitHub Releases.Basically I got tired of building update scripts for every program I made.FeaturesUPDATE: Automatically update distributed copies of any public GitHub repository using GitHub Releases.Clean Directory: Option to delete certain files before an update is installed.Whitelist: Protect certain files from being overwritten by update installation, useful for config files.Pre-Releases: Choose to include pre-releases in updates.Developer Mode detection: If the package detects a .git folder with files inside, it will automatically abort the update process to protect the file structure during development.Automatic Reboots: Optionally reboot into the newer program after update installation. Supports rebooting into a python script, executable, or a custom run command!Windows not supported.Authentication: Authenticate with the Github API to recieve a larger rate limit and access to your private repositories.Do not store your API token in a public location. Use environmental variables.Download assets or source code: Choose between downloading the source code or an uploaded asset!To-DoAdd proper tests (gotta figure out this one)Improve on asset and version detection.Improve developer environment detection.Cleanup & Code OptimizationInstallationDoes not support Windows!The package is posted on PyPi, so you can install it using pip, simply run:pip install ghauBasic Exampleimportghau#other importsupdate=ghau.Update(version="v0.0.1",repo="InValidFire/ghau")update.update()# rest of program codeDocumentation (WIP)Read the documentation atRead The DocsRequirementsThis script utilizesPyGithubfor its Github interactions,wcmatchfor its file filtering, andrequestsfor file downloads. All three can be found in the requirements.txt file in this repository.ContributingSee something you think you can do better? Perhaps a bug I missed? Or even a new feature implementation? All you have to do is fork this repository, make the edits, then open a pull request explaining the changes you made. Thanks for contributing! <3
Package: gh-auth
gh-authA simple Python library for web-based GitHub authentication using thedevice flow.Installationpip install gh-authUsageOn GitHub,create a GitHub or OAuth app.In your code, import theauthenticate_with_github()function and pass it your app's client ID.fromgh_authimportauthenticate_with_githubauthenticate_with_github(client_id)That's it.When called, the function will prompt users to visithttps://github.com/login/deviceand enter an eight-character code,
then continously ping GitHub for a response. Upon sucessful authentication, the function will return a token you can use
to interact with the GitHub API via libraries such asPyGithub.ScopesIf you're using an OAuth app, you'll probably also want to define what scopes you want your app to be granted. Simply pass
a list of scopes into theauthenticate_with_github()function alongside your client ID, like so:authenticate_with_github(client_id,scopes=["example_scope","another_scope"])See a full list of available OAuth scopeshere.If you're using an OAuth app and don't define any scopes, GitHub will default to granting it read-only access to the
public data associated with the account being authenticated and nothing more. (For GitHub apps,scopes are defined
on GitHuband can't be changed from this module.)Licensegh-auth's source code is released under the MIT License.
Package: ghb
# ghbThis is a small set of scripts for working with github. Unlike hub or gh
the purpose of this is not to overridegitand add functionality on
top of that. Instead this uses a git like method of looking for
executables namedghb-*and nesting them under theghbcommand. This
allows you to create simple single purpose scripts in any language.## Commands[approve](ghb/approve.py), quickly approve a PR with a GitHub review[assignme](ghb/assignme.py), assign yourself to a PR[block](ghb/block.py), block users on GitHub[clear-comments](ghb/clear_comments.py), delete all comments on a pull request[close-prs](ghb/close_prs.py), close multiple PRs from a certain author targeting a specific branch[comment](ghb/comment.py), comment on a list of issues / PRs[contributions](ghb/contributions.py), view the number of contributions you’ve made today[create](ghb/create.py), create github repos.[delete-branches](ghb/delete_branches.py), delete stale branches matching some prefix[download-release](ghb/download_release.py), download the most recent release from a repo[get-blocks](ghb/get_blocks.py), get the users you’ve blocked[greenify](ghb/greenify.py), force all statuses on a PR to be gren[langs](ghb/langs.py), get the language breakdown for a repo[ls-notifications](ghb/ls_notifications.py), list your unread notifications[me](ghb/me.py), open your GitHub profile[notifications](ghb/notifications.py), open your unread notifications in the browser[pr](ghb/pr.py), open a PR from the current branch[protect](ghb/protect.py), enable/disable branch protection for a specific repo and branch[unblock](ghb/unblock.py), unblock a GitHub user[unwatch](ghb/unwatch.py), bulk unwatch repos[watch](ghb/watch.py), watch a repoSee the header comment in each individual file for specific usage.### Installation` brew install keith/formulae/ghb `Or:` pip install ghb `(and installzsh/_ghbif you want zsh completions)### ConfigurationTo setup authentication forghbyou must add a personal access token
to your~/.netrcfile. You can generate a token
[here](https://github.com/settings/tokens). You should enable therepo,workflow,notifications, anduserscopes (you maybe be
able to omit some of those depending on which subcommands you plan to
use).Then in your~/.netrcfile add:` machine api.github.com login GITHUB_USERNAME password TOKEN `And restrict permissions withchmod 0600 ~/.netrc(this is required)
Package: ghbak
File        : README.md
Maintainer  : Felix C. Stegerman <flx@obfusk.net>
Date        : 2020-06-22

Copyright   : Copyright (C) 2020  Felix C. Stegerman
Version     : v0.1.5
License     : GPLv3+Descriptionghbak - github backupMirror (or update) github repos (and issues) and/or gists to:{basedir}/
  {github_username}/
    github/
      {repo_name}.git
      {repo_name}-issues.json
      ...
    gist/
      {gist_id}.git
      ...The base directory defaults to./{YYYYMMDD}(the current date).Examples$exportGITHUB_TOKEN=your-github-token
$ghbak--repos--gists--ssh--verboseyour-github-username
user:your-github-username
token$GITHUB_TOKENGEThttps://api.github.com/users/your-github-username/repos
...
GEThttps://api.github.com/users/your-github-username/gists
...
cloning42repos...==>repoyour-github-username/your-repo|description
$cd20200101/your-github-username/github
$gitclone--mirror-ngit@github.com:your-github-username/your-repo.gityour-repo.git
...
cloning37gists...==>gistyour-github-username|gist-id|description
$cd20200101/your-github-username/gist
$gitclone--mirror-ngit@gist.github.com:gist-id.gitgist-id.git
...===summary===backeduprepos:42backedupgists:37Help$ghbak--helpRequirementsPython >= 3.5 + click + requests.InstallingUsing pip$pipinstallghbakManuallyInstall the dependencies (as e.g. debian packages or usingpip):$aptinstallpython3-clickpython3-requests# debian/ubuntu$pipinstallclickrequests# pipThen just putghbaksomewhere on your$PATH(e.g.~/bin).License
Package: gh-commander
“GitHub Commander” implements theghcommand line tool,
which provides a ‘fluent’ interface using Click.
It allows to access the GitHub API v3 from a shell
prompt for things usually done in the browser, and also
automates tasks that otherwise are tedious at best,
when done by clicking around on a web page.Copyright ©  2015 Jürgen Hermann <jh@web.de>Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: ghcontribs
ghcontribsGenerate information about all GitHub contributions for a give user.This was developed out of a desire to create a more detailed view of my own
contributions to open-source software, including tracking where I've
contributed PRs and where I've contributed bug report issues.The requirements I had were:Get a list of Issues I've openedGet a list of Pull Requests I've openedThe goal is to build a web page that gives more information about my
contributions, and perhaps allows me to highlight a few aspects. This library
allows you to store all your contributions in a JSON file, and reload them to
generate whatever output you would like.The tools I found with similar goals didn't seem to have been updated in a long
time.
Package: ghcopy
github-copierA command line utility to clone all user repositories from Github or Bitbucket. If the repositories are already cloned,
the utility receives the changes in all branches and tries to merge the changes in the current branch with
the local repository.How to install$ cd ~$ mkdir ghcopy$ cd ghcopy$ virtualenv --python=python3 .$ source bin/activate$ pip install git+git://github.com/oleglpts/github-copier.git(recommended) or$ pip install ghcopyYou can not use a virtual environment if you do not need it. When installing without git (last line),
you will have to clone the repository, create directory ~/.ghcopy and copy the configuration files and locales:$ git clone https://github.com/oleglpts/github-copier.git$ cd github-copier/ghcopy/data$ mkdir ~/.ghcopy$ cp config.json ~/.ghcopy$ cp -r locale ~/.ghcopy$ cd ../../..$ rm -rf github-copierSee ~/.ghcopy/config.json:{
    "environment": "",
    "user": "",
    "password": "",
    "token": "",
    "type": "github",
    or
    "type": "bitbucket",
    "locale_domain": "ghcopy",
    "language": "en",
    "locale_dir": "~/.ghcopy/locale",
    "log_file": "~/.ghcopy/ghcopy.log",
    "log_format": "%(levelname)-10s|%(asctime)s| %(name)s --- %(message)s (%(filename)s:%(lineno)d)"
}You can change parameter values and specify a username and password or token if you do not want to specify them on
the command line, but then the password and token will be stored in clear text. On July 1st, 2020, basic authentication
using password to Github will no longer work, use a personal access token (PAT) with the appropriate scope to
access repositories (parameter -t --token or token in config file).
Visithttps://github.com/settings/tokensfor more information.Command Line Toolghcopy [-h] [-c CONFIG] [-o OUTPUT] [-u USER] [-p PASSWORD] [-t token]
          [-l LOG_LEVEL]

optional arguments:
  -h, --help show this help message and exit
  -c CONFIG, --config CONFIG config file (default: ~/.ghcopy/config.json)
  -o OUTPUT, --output OUTPUT output directory (default: ~/RemoteCopies)
  -u USER, --user USER user name (default: parameter user from config file)
  -p PASSWORD, --password PASSWORD password (default: parameter password from config file)
  -t TOKEN, --token TOKEN personal access token (PAT) (default: parameter token from config file)
  -b HUB, --hub HUB repository type: github, bitbucket (default: parameter type from config file)
  -l LOG_LEVEL, --log_level LOG_LEVEL logging level: CRITICAL, ERROR, WARNING, INFO, DEBUG or NOTSET (default: INFO)RequirementsGitPython>=3.0.8PyGithub>=1.46bitbucket-python>=0.2.2
Package: ghcr-badge
ghcr-badge: Generate ghcr.io container's status badgeMotivationhttps://github.com/badges/shields/issues/5594Deploymenthttps://ghcr-badge.egpl.dev/https://ghcr-badge.deta.dev/Available paths/<package_owner>/<package_name>/tags?color=...&ignore=...&n=...&label=...&trim=...defaults:color=#44cc11,ignore=latest,n=3,label=image tagshttps://ghcr-badge.egpl.dev/eggplants/ghcr-badge/tags?trim=major👉:/<package_owner>/<package_name>/latest_tag?color=...&ignore=...&label=...&trim=...defaults:color=#44cc11,ignore=latest,label=versionhttps://ghcr-badge.egpl.dev/eggplants/ghcr-badge/latest_tag?trim=major&label=latest👉:/<package_owner>/<package_name>/develop_tag?color=...&label=...defaults:color=#44cc11,label=develophttps://ghcr-badge.egpl.dev/ptr727/plexcleaner/develop_tag👉:/<package_owner>/<package_name>/size?color=...&tag=...&label=...&trim=...defaults:color=#44cc11,tag=latest,label=image sizehttps://ghcr-badge.egpl.dev/eggplants/ghcr-badge/size👉:Common parameterslabelparameterlabel=hello:ignoreparameterUse the ignore parameter to filter returned tags, supports pattern matching and a comma separated list.ignore=latestignores thelatesttag (default).ignore=sha256*ignores all tags prefixed withsha256.ignore=v0.0.1,latest,sha256*ignores thelatestandv0.0.1tags, and all tags prefixed withsha256*.trimparametertrim=patchtrims^v?\d+\.\d+\.\d+[^.]*$tags.trim=majortrims^v?\d+\.\d+[^.]*$tags.colorparameterAvailable color names and hex codes are listed onhere.NoteGenerated badge will be cached for 3666 seconds in GitHub'sCamoserver.
To update immediately, send PURGE request to the badge Camo link.curl-XPURGE"https://camo.githubusercontent.com/..."DevelopmentInstallpoetryRunpoetry install && poetry shell && pre-commit installLaunch live server withtask dev
Package: ghcrypt
A tool to encrypt things (for humans, primarily of the developer type) using keys that
already exist (connected to nearly everyones personal github account to do things like
checkout and clone and such).Warning:not nuke proof, not recommended for extremely secure things so don’t
whine if the NSA or other agency/country is still able to break the encryption
applied here.How to useCopy ghcrypt.ini to ~/.ghcrypt.ini (skip if already done).Fill in values in ~/.ghcrypt.ini (skip if already done).Create and install this folder into a
virtualenv (skip if already done) orpip install ghcrypt(whichever works for you).Use$ ghcryptto send and read things.Profit!
Package: ghc-utils
ghc-utilsutilities for interacting with github classroomInstallationpip install ghc-utilsUsagegradesFirst, create a file namedstudents.txtcontaining each student's github id, one per line.To download all grades for an assignment namedassignment-01from an organization namemyorgand save it togrades.csv:ghc-utils grades -u <your_githubid> -t <your_github_token> -o <myorg> -a assignment-01 -s students.txt -g grades.csvghc-utils grades --help
Usage: ghc-utils grades [OPTIONS]

  Download all grades for an assignment.

Options:
  -u, --username TEXT           your github username  [required]
  -t, --token TEXT              your github personal access token
                                (https://docs.github.com/en/free-pro-
                                team@latest/github/authenticating-to-
                                github/creating-a-personal-access-token)
                                [required]
  -o, --organization TEXT       github organization name, e.g., tulane-
                                cmps2200  [required]
  -a, --assignment-prefix TEXT  assignment name prefix, e.g., assignment-01
                                [required]
  -s, --student-file PATH       text file with one student github id per line
                                [required]
  -g, --grade-file PATH         output csv file  [required]
  --help                        Show this message and exit.Note that passwords are deprecated, so you'll have to create aPersonal Access Token; only read access is required.History0.1.1 (2020-09-03)First release on PyPI.0.1.2 (2020-09-20)Change password to personal access tokens.
Package: ghdiff
ghdiffGenerate Github-style HTML for unified diffs.Changes0.4 (2014-06-13)Add iPython magic (mgaitan)0.3 (2014-04-06)Fix Python 3 issue when running as a command-line script.0.2Detect character encoding when reading files (Nyoroon)PEP-8 clean up (laulaz)Fix display problem when text line is too long (laulaz)0.1initial release.diffGenerate a diff and output Github-style HTML for it.>>>importghdiff>>>fromsiximportprint_>>>print_(ghdiff.diff("a\nb","b\nb"))<style type="text/css">
...
</style>
<div class="diff">
    <div class="control">@@&nbsp;-1,2&nbsp;+1,2&nbsp;@@
    </div>
    <div class="delete">-a</div>
    <div class="">&nbsp;b</div>
    <div class="insert">+b</div>
</div>The css option controls whether or not the output includes CSS.>>>print_(ghdiff.diff("blah blah blah\nb","blah zxqq blah\nb",css=False))<div class="diff">
    <div class="control">@@&nbsp;-1,2&nbsp;+1,2&nbsp;@@
    </div>
    <div class="delete">-blah&nbsp;<span class="highlight">blah</span>&nbsp;blah</div>
    <div class="insert">+blah&nbsp;<span class="highlight">zxqq</span>&nbsp;blah</div>
    <div class="">&nbsp;b</div>
</div>diff accepts lists of strings representing lines as well.>>>print_(ghdiff.diff(["blah blah blah","b"],["blah zxqq blah","b"]))<style type="text/css">
...
</style>
<div class="diff">
    <div class="control">@@&nbsp;-1,2&nbsp;+1,2&nbsp;@@
    </div>
    <div class="delete">-blah&nbsp;<span class="highlight">blah</span>&nbsp;blah</div>
    <div class="insert">+blah&nbsp;<span class="highlight">zxqq</span>&nbsp;blah</div>
    <div class="">&nbsp;b</div>
</div>IPython magicghdiff also works as an IPython magic:In[1]:%load_extghdiffIn[2]:%ghdiffvar1var2See anotebook examplecolorizecolorize takes an existing unified diff and outputs Github-style markup.>>>print_(ghdiff.colorize("""\... index 921100e..8b177e1 100755
... --- a/src/ghdiff.py
... +++ b/src/ghdiff.py
... @@ -10,20 +10,24 @@ def escape(text):
...  default_css =\"\"\"\...  <style type="text/css">
...%s... -</style>\"\"\"% (open(os.path.join(os.path.dirname(__file__), "default.css")).read(),)
... +</style>
... +\"\"\"% (open(os.path.join(os.path.dirname(__file__), "default.css")).read(),)
... +"""))<styletype="text/css">...</style><divclass="diff"><divclass="control">@@&nbsp;-10,20&nbsp;+10,24&nbsp;@@&nbsp;def&nbsp;escape(text):</div><divclass="">&nbsp;default_css&nbsp;=&nbsp;"""&nbsp;&lt;style&nbsp;type="text/css"&gt;</div>
<div class="">&nbsp;%s</div>
<div class="delete">-&lt;/style&gt;"""&nbsp;%&nbsp;(open(os.path.join(os.path.dirname(__file__),&nbsp;"default.css")).read(),)</div><divclass="insert">+&lt;/style&gt;</div><divclass="insert">+"""&nbsp;%&nbsp;(open(os.path.join(os.path.dirname(__file__),&nbsp;"default.css")).read(),)</div>
<div class="insert">+</div>
</div>