Saravanan666/pypi-org huggingface dataset:
Package: github-latest
An example package. Generated with cookiecutter-pylibrary.Free software: BSD 2-Clause LicenseInstallationpip install github-latestYou can also install the in-development version with:pip install https://github.com/TaylorMonacelli/python-github_latest/archive/master.zipDocumentationhttps://python-github_latest.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.0 (2021-10-23)First release on PyPI.
Package: githublfs
githublfs is a Python library currently exposing a single method to upload and commit a file to a Github repository
using git LFS.Seehttps://git-lfs.github.com/Installationpip install githublfsUsage>>> from githublfs import commit_lfs_file
>>> commit_lfs_file(repo="AnesFoufa/githublfs",
                    token="gh_token_with_repo_scope",
                    branch="main",
                    path="assets/logo.jpg",
                    content=b"binary file content",
                    message="my commit message")To authenticate, an access token with repo scope is neede. See:https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-tokenDependenciespython = “^3.7”PyGithub = “^1.55”requests = “^2.28.1”Implementation detailsThis library uses LFS’ Basic Transfer API. Seehttps://github.com/git-lfs/git-lfs/blob/main/docs/api/basic-transfers.mdProduction warningThis library is still experimental. If you use it in production, please pin the exact version in your requirements, including the minor number.
Package: github_listener
The simple library that calls user’s registered functions whenever github events happen.How to installYou can install Github Listener using pip :$pipinstallgithub_listenerFeature SupportNotification…If you have things you want, please tell me throughissues.Examplefromgithub_listenerimport(GithubAccount,GithubListener,)account=GithubAccount("username","password")listener=GithubListener(account)@listener.notificationdefon_notification(change):# Do things that you want to do whenever the github's notification occurs.passlistener.run()# infinite loopfromgithub_listenerimportGithubAccountfromgithub_listener.github_apiimportNotificationAPIaccount=GithubAccount("username","password")api=NotificationAPI(account)groups=api.get_notification_groups()# Do something using notification informations.For more detail examples, GoExamples.ContributionWelcome any kind of contribution!
Package: github-maintainer
Command line tool to help you in the role of an Open Source project maintainer on GitHub.ReadsMAINTAINERSfile to find repositories you are responsible forAllows listing open issues and pull requestsWhy?One could argue that the GitHub “watch” feature (+ notifications) should be enough to get along,
but what if I want to watch many repositories but only maintain a few?GitHub has no notion of a “project maintainer”,
therefore we use the convention of putting aMAINTAINERSfile in the root of each git repository.Each person listed in theMAINTAINERSfile is responsible for managing issues, pull requests and keeping code quality.This tool should support you as a maintainer in doing so easily from the command line.Usage$sudopip3install-Ugithub-maintainer$github-maintainerconfigure# initial setup$github-maintainerrepositories# list my repos$github-maintainerissues# list my issues$github-maintainerpull-requests# list my PRs$github-maintainerpatch'myorg/.*'Dockerfile'openjdk:8.*'openjdk:8-123# replace patternsRunning Unit Tests$python3setup.pytest--cov-html=trueReleasing$./release.sh<NEW-VERSION>
Package: githubmirror
A small script to keep a local bare copy of every repo in a Github
organization, for faster cloning and deploysInstallDownload and run:$ python setup.py installOr install fromPyPi:$ pip install githubmirrorUsageTo initialize a bare repository on your local machine for every repository in
your Github organization:$ github-mirror init <organization>By default, github-mirror will create the repositories in your current working
directory. Override this using the –workdir option.When your repositories have been initialized, you can now trigger a git fetch
for each repo by running:$ github-mirror sync <organization>To only sync or initialize a single repo, use the –only-repo=<repo> option.SecurityTo access the Github API to find your organization’s private repositories,
github-mirror asks you for anAPI token. If you create a personal API token,
it gives the same access to your account as your username and password, but can
be revoked separately.github-mirror will save your token to a .githubmirror file in your working
directory. Please take care to protect this file from unauthorized access.
Package: github-octolytics
Installation$[sudo]pipinstallgithub-octolyticsExamples>>>importgithub_octolytics>>>github_octolytics.get('https://github.com/django/django'){'octolytics-host':'collector.githubapp.com','octolytics-app-id':'github','octolytics-event-url':'https://collector.githubapp.com/github-external/browser_event','octolytics-dimension-request_id':'6C86:1AB6A:1553F2A:20148E0:5DB5986A','octolytics-dimension-region_edge':'ams','octolytics-dimension-region_render':'iad','octolytics-dimension-ga_id':'','octolytics-dimension-visitor_id':6848789782742800491,'octolytics-dimension-user_id':27804,'octolytics-dimension-user_login':'django','octolytics-dimension-repository_id':4164482,'octolytics-dimension-repository_nwo':'django/django','octolytics-dimension-repository_public':True,'octolytics-dimension-repository_is_fork':False,'octolytics-dimension-repository_network_root_id':4164482,'octolytics-dimension-repository_network_root_nwo':'django/django','octolytics-dimension-repository_explore_github_marketplace_ci_cta_shown':False}>>>importrequests>>>r=requests.get('https://github.com/django/django')>>>github_octolytics.parse(r.text){...}readme42.com
Package: githubot
githubotCommand line tool to use Github's API for automation:create release with assetsupload/download files to githubTODOInstallationpipinstallgithubotUsageCreate release with assetsReleasesmanagement.

Usage:githubotrelease--token=TOKEN--repo=REPO[--tag=TAG][--title=TITLE][--message=MESSAGE][ASSETS...]Options:--token=TOKENGithubaccesstoken.-r=REPO--repo=REPORepofullnamelike:owner/repo.--tag=TAGTagnamefortherelease.Ifthetagdoesnotexistitwillbecreatedondefaultbranch.--title=TITLETitlefortherelease.--message=MESSAGEMessagefortherelease.-h--helpShowthismessageandexit.For example:Create a release to repoWqyJh/testwith assets under the path ofassets/.githubotrelease--token<github_token>--repoWqyJh/testassets/*Create a release and specifytag,titleandmessagefor it.githubotrelease\--token<github_token>\--repoWqyJh/test\--tagtest_tag\--title"This is an test title"\--message"This release contains xxx"\assets/*Only regular files are supported for the--assetsoption, directories are not supported.
You can specify files in the following manner:--assetsfile1file2
--assetspath/*# wildcardUse github repo as cloud storageFilesmanagement.

Usage:githubotfileupload--token=TOKEN--repo=REPO[FILES...]githubotfiledownload--token=TOKEN--repo=REPO[FILES...]Options:--token=TOKENGithubaccesstoken.-r=REPO--repo=REPORepofullnamelike:owner/repo.-h--helpShowthismessageandexit.Upload filesUpload files to github repoWqyJh/test../run.pyfileupload\--token<github_token>\--repoWqyJh/test\file1file2file*Notethat theFILESargument is just the same withASSETS, only regular files are supported.Download filesDownload files from github repoWqyJh/test../run.pyfiledownload\--token<github_token>\--repoWqyJh/test\file1dir1dir2/Notethat theFILESargument here cannot contains wildcard, but it can contains directories.Delete filesDelete files from github repo../run.pyfiledelete\--token<github_token>\--repoWqyjh/test\file1dir1dir2/Developmentbumping 0.3.0 (PYPI)auto-changelog 1.15.0 (NPM)The release processing is as follow:Calculate semantic versiongitcheckoutdev
gitpullorigindev
bumpingCreate release branch from devgitcheckout-brelease-<version>Modify the version and commitGenerate changelog and commitauto-changelog--latest-version<version>--tag-prefixvMerge to master branchTag version to master branchChangelogAll notable changes to this project will be documented in this file. Dates are displayed in UTC.Generated byauto-changelog.0.7.012 July 2020feat: add config command#16v0.6.121 August 2019Fix cli#11docs: update CHANGELOG.mdf557e71fix: fix clic66043aBump version to 0.6.1bfa3d06v0.6.021 August 2019Release 0.6.0#10docs: update README.md#9feat: add file delete#8feat: add directory downloading#7docs: update README.md#4docs: update CHANGELOG.mde6c15a5Bump version to 0.6.07156b94Resolve conflictsc794221v0.4.020 August 2019Release 0.4.0#2Storage#1feat: add release creation with assets uploading28c5214feat: replace click with docopt9a7acd9chore: add setup configurations2cc899f
Package: github-peek
github-peekA command line tool to peek a remote repo locally. The tool creates 2 files and a directory,
a config file~/.githubkeep.conf, a log file~/.githubkeep.logand a directory~/.githubkeep.
Github-peek downloads the tar:gz of the repo, extracts it and saves it to~/.githubkeep. There is
a naive caching mechanism, where the tool deletes all repos after 5 times of using the app.install github-peekpipinstallgithub-peekusage:github-peek only has only subcommandpeek, which takes a repo as the argument.command usage:ghubpeek<repo>example:ghubpeekrahulunair/github-peektodoenable for gitlab
Package: github-pr-label
Installationpip install github-pr-labelExampleimportgithub_pr_labellabel_group="bot"label_name="pass"gh_label=github_pr_label.PRLabel(pr_url="your_pr/number")gh_label.set_label(label_group,label_name)label json filefor example
label: bot have three status [pass,fail,skip]
status: there are three parts to build a label and split by '|'
name|colour|description{"bot":{"replace":true,"pass":"bot:heavy_check_mark:|3CBF00|passed bot test","fail":"bot:x:|3CBF00|failed bot test","skip":"bot:p:|E50009|bot no required"},"size":{"replace":true,"XS":"size/XS|3CBF00|<10 lines","S":"size/S|5D9801|>10 lines","M":"size/M|7F7203|>30 lines","L":"size/L|A14C05|>100 lines","XL":"size/XL|C32607|>500 lines","XXL":"size/XXL|E50009|>1000 lines"},}Size Auto Determination.The Pull Request labels are applied depending on the total lines of code changed (additions + deletions).NameDescriptionsize/XSDenotes a PR that changes 0-9 lines.size/SDenotes a PR that changes 10-29 lines.size/MDenotes a PR that changes 30-99 lines.size/LDenotes a PR that changes 100-499 lines.size/XLDenotes a PR that changes 500-999 lines.size/XXLDenotes a PR that changes 1000+ lines.
Package: github-projects-automation
Github Projects AutomationFeaturesTODORequirementsTODOInstallationYou can installGithub Projects Automationviapipfrom [PyPI]:$pipinstallgithub-projects-automationUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Github Projects Automationis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.Credits
Package: github_pushbullet
Push github notifications to pushbullet.Installation$pipinstallgithub_pushbulletSimple Examplefromgithub_pushbulletimport(GithubAccount,GithubPushbullet,)account=GithubAccount("username","password")gp=GithubPushbullet(account,"access_token")gp.run()# infinite loopSee more examples.ContributingWelcome! I’m waiting contributors!
Package: github-push-issues
Create GitHub issues based on local templates.This is useful for pushing, for example, a set of checklists with
per-item issues grouped by milestone.  The template directory
structure is:.
|-- milestone-1
|   |-- README.md
|   |-- issue-1.1.md
|   |-- issue-1.2.md
|   ...
|-- milestone-2
|   |-- README.md
|   |-- issue-2.1.md
|   |-- issue-2.2.md
|   ...
...Both theREADME.mdand per-issue files have a summary line (which
may optionally includeAtx-style headers) followed by a blank line
and an optional body.  Milestone bodies are plain text, while issue
bodies are GitHub flavored Markdown, For example, if you want each of
your product to have ajoelmilestone tracking theJoel Test,
you might have ajoel/README.mdwith:# joel

Keep track of how well the project handles the Joel Test [1].

[1]: http://www.joelonsoftware.com/articles/fog0000000043.htmlAnd per-feature issue milestones likejoel/source-control.md:# Do you use source control?

I've used commercial source control packages, and I've used CVS,
which is free, and let me tell you, CVS is fine...Of course, you probably can’t copy Joel’s text wholesale into your
issue files, so you’d want to make your own summaries.  Then run:# github-push-issues.py [options] /path/to/your/template/directoryOr:# github-push-issues.py [options] https://example.com/url/for/template.zipThe latter is useful if you have your template directory structure
hosted online in a version control system that supports tar or zip
archive snaphots.
Package: github-python
Github API Wrapper.. image::https://discord.com/api/guilds/963406460107235328/widget.png:target:https://discord.gg/DWhwsQ5TsT:alt: Discord Server InviteEasy to use Python wrapper for theGithub API.Key FeaturesModern Pythonic InterfaceEasy to useInstallingPython 3.8 or higherTo install the library, run the following command.. code:: sh#Linux/macOS
python3 -m pip install -U git+https://github.com/VarMonke/Github-Api-Wrapper#Windows
py -m pip install -U git+https://github.com/VarMonke/Github-Api-WrapperQuick Example.. code:: pyimport github
import asyncioasync def main():
client = await github.GHClient()
return await client.get_user(user='GithubPythonBot')user = asyncio.run(main())
print(user)
print(user.html_url).. code:: sh
#Output
<User login: 'GithubPythonBot', id: 104489846, created_at: 2022-04-27 07:31:26>https://github.com/GithubPythonBotLinksDiscord Server <https://discord.gg/DWhwsQ5TsT>_
Package: github-random-star
⭐️ GitHub Random Star ⭐️IdeaI generally have starred way too many repository. I wanted to create a simple CLI tool that throws me one random repo I have starred once a day, so I can go back to these repos and explore them more in detail.InstallationPreferredInstall throughPipxfrom PyPi.pipx install github-random-starOtherEither install frompypiwithpipor clone this repository and install requirements throughpoetryor the providedrequirementsfile.If using poetry.$ poetry shell$ poetry installIf using requirements.txt.$ virtualenv -p python3.12 .venv$ source .venv/bin/activate$ pip install -r requirements.txtUsageSetup GitHub API token as theGITHUB_ACCESS_TOKENenvironment variable.If this is not setup it will use the public access point with lower rates.Run the script throughgh-star <flags>,python github_random_star/main.py <flags>or if using poetrypoetry run gh-star <flags>Flags-a, --accountUsername of the github account to retrieve the starred items from.--accountis required orGITHUB_ACCOUNTenvironment variable needs to be set.-t, --totalTotal amount of random items to pick from. Defaults to 3.-r, --refreshWhether to fetch new cached data or not. Will refetch all starred items.-m, --max-historyThe amount of historic choices to cache. Defaults to 100.-i, --ignoreIf to use a list of repositories to ignore. Defaults to true.Examplesgh-star -a <username>gh-star -a <username> -t 5gh-star -a <username> -r -t 5LicenseMIT. Look at theLICENSEfor details.
Package: github-release-downloader
GitHub Release DownloaderPython package to download/filter any release assets from the latest compatible version.Installationpip install github-release-downloaderUsageThis tool can be used as library:fromsemantic_versionimportSimpleSpecfromgithub_release_downloaderimportcheck_and_download_updates,GitHubRepofrompathlibimportPathimportrecheck_and_download_updates(GitHubRepo("OwnerName","RepoName","OptionallyToken"),# Releases sourceSimpleSpec("~1.1"),# Search 1.1.0 compatible versionassets_mask=re.compile(".*\\.exe"),# Download *.exe onlydownloads_dir=Path("downloads"),# Where to download)Or either it can be used as cli-tool:python -m github_release_downloader -u OwnerName -n RepoName -r ~1.1 -m .*\.exe -o .\downloadsFeaturesDownloads compatible releases (or latest if no requirements set)Filters assets using regexHas optional download_callbackCLI tool can be used in CIHandles token from GITHUB_TOKEN envLoads updates only when it's needed (caches last version used)Loggs own actionsUses only few GitHub API endpoints (don't download code, you've never needed)
Package: github-release-notifier
Github Release NotifierThis program will allow you to be notified of Github new releasesInstallationpip3 install github-release-notifierUsageusage: github-release-notifier [-h] [--action {cron,subscribe,unsubscribe}] [--package PACKAGE]
              [--webhook WEBHOOK] [--uuid UUID]

optional arguments:
  -h, --help            show this help message and exit
  --action {cron,subscribe,unsubscribe}, -a {cron,subscribe,unsubscribe}
                        Action to do (default: cron)
  --package PACKAGE, -p PACKAGE
                        Github package name / url (required for
                        subscribe/unsubscribe) - prints uuid on subscription
  --webhook WEBHOOK, -w WEBHOOK
                        URL to your webhook (required for
                        subscribe/unsubscribe)
  --uuid UUID, -u UUID  UUID of your webhook (required for unsubscribe)ExampleFirst, I register my webhook :github-release-notifier --action subscribe --webhook https://example.com/updated --package jaymoulin/google-music-manageran UUID is printed. this UUID will be required to unsubscribe the webhook.Whenjaymoulin/google-music-managerreleases a new version,https://example.com/updatedwill be called with HTTP methodPOSTand body, a JSON like this :{
    "date": [2017, 11, 13, 19, 46, 35, 0, 317, 0],
    "version": "0.7.2",
    "title": "Fixes split modules",
    "content": "",
    "media": "https://avatars0.githubusercontent.com/u/14236493?s=60&v=4",
    "author": "jaymoulin"
    "package_name": "jaymoulin/google-music-manager"
}For this to happen, the system should check if a new version have been released.
We can do that by callinggithub-release-notifierwithout any parameter or setting–actiontocron(which is default).To automate this process, we could add this process in a cronjob:(crontab -l ; echo "0 0 * * * github-release-notifier") | sort - | uniq - | crontab -This will check every day at midnight if new versions have been released.ConfigurationEnvironment variables can be defined to change defaulthooksorversionsdatabase files (plain json file)GRN_VERSIONS_FILE: Path to saved versions (default: ${HOME}/.github_release_notifier/versions)
GRN_HOOKS_FILE: Path to hooks configuration (default: ${HOME}/.github_release_notifier/hooks)Docker UsageFirst run the daemondocker run --name GRN -d femtopixel/github-release-notifieryou can mount a volume to/root/.github_release_notifier/to keep tracks of webhooks and versionsexample:docker run --name GRN -d -v /path/to/your/saves:/root/.github_release_notifier/ femtopixel/github-release-notifierThen register your webhook :docker exec GRN -a subscribe -p jaymoulin/google-music-manager -w https://example.com/updatedSubmitting bugs and feature requestsBugs and feature request are tracked on GitHubAuthorJay MOULINjaymoulin+github-release-notifier@gmail.comSee also the list of contributors which participated in this program.LicenseGithub Release Notifier is licensed under the MIT License
Package: github-releaser
github-releasergithub-releaseris a command-line tool for creating releases on GitHub.Installationpipenv install github-releaserUsageCreating a releaseTo create a release, use the commandcreate-release, e.g.:github-releasercreate-release--accountmyuser--repositorymyrepo--tag-namev1.0.10The example above will create a new release with a name and tag set tov1.0.10atmyuser/myrepo. The option--release-nameis optional, and if not specified the release name will be the same as the value of the--tag-name, in
this case:v1.0.10To see all the options use:github-releaser create-release --helpUploading assetsThe commandupload-assetsto add assets to a release. Note that to upload assets a release must have been previously
created.Give that there is already a releasev1.0.10atmyuser/myrepo, it is possible to add assets with the following command:github-releaserupload-assets--accountmyuser--repositorymyrepo--tagnamev1.0.10assets/*.zipThe example above uploads all.zipfiles from theassetsdirectory to a releasev1.0.10atmyuser/myrepo.To see all the options use:github-releaser upload-assets --helpCommit and push files to a branchSometimes it is useful to commit and push new files to a specific branch. One possible scenario is
when files are auto-generated during a build in a CI environment, and there is a requirement to
include them to a branch. For example:github-releaserpush-files--accountmyuser--repositorymyrepomyfile.txtIn this example, a file namedmyfile.txtis added to themasteratmyuser/myrepoTo see all the options use:github-releaser push-files --helpGitHub's personal access tokenIt is required to use a GitHub's personal access token to use the commands described above.
The personal access token can be passed directly in the command line using the option--tokenor
set to an environment variable calledGITHUB_TOKEN.
More information on how to create a GitHub's token can
be foundhereCopyright and LicenseCopyright (c) 2020 Daniel Furtado. Code released under MIT licenseCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2020-05-30)First release on PyPI.0.1.1 (2020-06-02)Renamed the environment variable toGITHUB_TOKENUpdated documentation on how to pass token togithub-releaserand
information on how to create the token on GitHub.0.2.0 (2020-07-09)Include commandpush-filesUpdated documentationMinor code cleanup0.2.1 (2020-08-04)Renamed push-file's command flag from--msgto--mMinor fixes
Package: github_release_tool
github-release-toolCLI using github3.py for github API release tasksFree software: MIT licenseDocumentation:https://github-release-tool.readthedocs.io.CreditsThis package was created with Cookiecutter andrstms/cookiecutter-python-cli, a fork of theaudreyr/cookiecutter-pypackageproject template.audreyr/cookiecutteraudreyr/cookiecutter-pypackagerstms/cookiecutter-python-cli
Package: github-repo-info
Provides access to a local GitHub repository’s configuration.Free software: MIT licenseInstallationpip install github-repo-infoDocumentationhttps://python-github-repo-info.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2017-06-30)First release on PyPI.