Saravanan666/pypi-org huggingface dataset:
Package: ghs-hazard-pictogram
GHS Hazard pictogramsBased onGHS_hazard_pictogramsWikipedia articleInstallpip install ghs_hazard_pictogramUsage>>>fromghs_hazard_pictogramimportHazard>>>Hazard.all()# List all hazards>>>Hazard(code='class8')# Return hazard with code 'class8'>>>Hazard.search('division')# Return hazard with attribute containing 'division' case insesitive>>>Hazard(code='class8').get_pictogram()# returns full path to the svg fileLicenceThis code is licenced under MIT, and the content is licenced under Creative Commons.Bug or requestPlease create an issue onGithub
Package: ghslc
GHSL Land Cover ServiceGHS-LC-SERV(GHSLLandCoverService) is an end-to-end, fully automated Earth Observation processing and analysis pipeline for generating customland cover mapsfromSentinel-2data archives.Quick startThe classification can be done on S2 tiles (files zip or SAFE directories) or on S2 mosaics (GeoTIFF format).frompathlibimportPathfromghslcimportghslc# Sentinel 2 file to classifys2_file=Path('S2A_MSIL1C_20191210T101411_N0208_R022_T32TQM_20191210T104357.zip')# Training configuration as yaml filetraining_file=Path('training_CGLS.yml')# Target classes to extract from the classificationtarget_classes=[[80,200],# Permanent water bodies[111,112,113,114,115,116,121,122,123,124,125,126],# Forests40,# Cultivated and managed vegetation/agriculture (cropland)50,# Urban / built up]# Output folderoutput=Path('/tmp')results=ghslc.generate_classification_from_safe(filesafe=s2_file,workspace=output,training=training_file,classes=target_classes,)InstallThe easier way to install dependencies is usingconda:condaenvcreate-fenvironment.ymlActivate the conda environment:condaactivateghslcInstall ghslc package:pipinstallghslcTestSimply installtoxwith:pipinstalltoxThen run the tests in python 3.10:tox-epy310This will build, install and test the project in a dedicated python 3.10 environment with all needed dependencies.
The tests should take few minutes to complete.If you want to run it for all supported python versions type:toxThis takes longer, but it should be less than 30 minutes.LicensingThis project is licensed under theGPLv3License.Copyright (c) 2021,European Commission, Joint Research Centre. All rights reserved.
Package: ghstar
ghstarStar GitHub repos from the command line.# set the environment variables GH_UNAME and GH_TOKEN# to your GitHub username and token/password$ghstargokulsoumya/ghstar
Starredgokulsoumya/ghstar(Because the command line is awesome, browsers are a hassle, and I'm lazy.)Installationghstaris written in Python3, available on PyPI and installable via pip:pip install ghstarUsageYou must first set the environment variablesGH_UNAMEandGH_TOKENto
your GitHub username and token/password. It is recommended to use atokenwithpublic_reposcope
instead of your password though either one works.$ ghstar --help

usage: ghstar [-h] [-i] [-n SEARCH_COUNT] repo

Star GitHub repos from the command line.

positional arguments:
  repo                  name of repo to star

optional arguments:
  -h, --help            show this help message and exit
  -i, --interactive     search for a repo and star interactively
  -n SEARCH_COUNT, --search-count SEARCH_COUNT
                        number of search results to show when run
                        interactively

examples:
  ghstar gokulsoumya/ghstar
  ghstar jlevy/the-art-of-command-lineContributingIf you have a feature request or if you've found a nasty lil bug, definitely
open anissue. And PRs are,
as always, welcome.
Package: gh-star-count
Starcount - GitHub CLIPython package to interact with GitHub and retrieve data.commands:Count all stars of all repos of yourself, a specified user or an organization.Allow a nicely printed format as default.Modify your user description by adding a tea emoji and a heart.Set your user status (top-right when clicking on username):
emoji and status message.Focus points:Focus on usability and clarity with Typer for end-userIntegrate best practices about linting, CI/CD, documentation, package management
and pypi deployment.TODO :Print out details about yourself, a user or organization.Allow for output in JSON.project infos:Source Code:https://github.com/adnene-guessoum/Github_cliDocumentation:https://adnene-guessoum.github.io/Github_cli/
Package: ghstars
ghstarsA CLI tool to collect and render as a staic website most notable stargazers for your GitHub projects.Demo:stars.orsinium.devUsageInstall:python3 -m pip install ghstarsGenerate GitHub API tokenFetch data:ghstars fetch --token YOUR_TOKEN. Requires one (or several) of the following flags:--orgs life4: space-separated list of organizations.--repos life4/textdistance: space-separated list of repositories.Generate HTML:ghstars renderOther commandsThere are a few more commands to analyze the fetched data:ghstars top-authors: show most popular projects authored by your stargazers.ghstars top-followed: show stargazers with the most followers.
Package: ghstat
IntroductionThis command-line application is mainly for continuous build and
integration environments.  It allows providing all of the details
necessary to mark the status of a commit.  For pull requests, it
may read “All is Well” or “Merge with Caution” with an optional
hyperlink to the CI build server, and optional description of
the build failure.This is done using the Github v3 API.This is not a very serious package, there are not any plans to advance
it further. It was authored because existing github python client
packages such aspygithub3did not offer the ability to communicate
with the ‘statuses’ api endpoints, and it is preferred to provide
well-readable command-line arguments in the build script than to use
curl directly.InstallationThe stable version of this package is maintained on pypi, install using pip:pip install ghstatGenerate a personal access token,https://github.com/settings/applications,
enabling scoperepo:statusandpublic_repoorprivate_repo, respectively.Use this token for the–tokenparameter, or as the environment variableGITHUB_APP_TOKENExamplesFailing a build on github.com:ghstat.py set --token 0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d \
              --commit 72b74be0de46392a05d8f470b64272b8036e63f8 \
              --user jquast --repo ghstat --state successRetrieving the status of a commit as json data to stdout:ghstat.py get --token 0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d \
              --commit 72b74be0de46392a05d8f470b64272b8036e63f8 \
              --user jquast --repo ghstatLinking to a private bamboo and github enterprise account:ghstat.py set --token 0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d \
              --commit 0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a \
              --user jquast \
              --repo ghstat \
              --state success \
              --description 'build successful' \
              --target-url 'https://bamboo.mycorp.com/browse/PROJ-BUILD10-1' \
              --base-url 'https://github.mycorp.com/api/v3/'Othersgithubdate: Same thing, only it uses an .ini file instead of cmd-line parameters.Changes0.3.1New API argument, –context=”ci/teamcity” todistinguish multiple
sources.
Contributed by@kadinPR 30.3.0For descriptions of length greater than 140, truncate and emit a warning
to standard error. It will be changed to a length of 140 ending in text
marker `` (…)``.0.2.0Support python 3Support token as environment valueGITHUB_APP_TOKENResolve IndexError when retrieving status for a commit without any.0.1.0Initial release to pypi
Package: ghstats
DescriptionPython script to obtain GitHub Release download count and other statistics.Can be used as both a standalone script and a Python module.InstallationYou can getghstatsusingone of the followingmethods:Install fromPyPI:pip install ghstats.Saveghstats.pyfrom the repository.Download a wholerepository.Usageghstats [user] [repo] [tag] [options]
ghstats [user/repo] [tag] [options]Arguments:ArgumentDescriptionuserRepository owner. If not present, user will be prompted for input.repoRepository title. If not present, user will be prompted for input.tagRelease tag name. If not present, prints the total number of downloads.Options:OptionDescription-d,--detailPrint detailed statistics for release(s).-q,--quietPrint only resulting numbers and errors. Overrides-doption.-l,--latestGet stats for the latest release.Tagargument will be ignored.-h,--helpShow help on script usage.Environment Variables:Environment VariableDescriptionGITHUB_TOKENGitHub OAuth token. Use to increase API request limit.ExamplesExamples foratom/atomrepository:ghstatsatomatom# Fetch download count for all releases.ghstatsatom/atom# Fetch download count for all releases (alt. syntax).ghstatsatomatom-q# Quiet mode (print only numerical result).ghstatsatomatom-d# Detailed description for every release.ghstatsatomatom-l# Fetch download count for the latest release.ghstatsatomatom-l-d# Detailed description for the latest release.ghstatsatomatom-l-q# Quiet mode for the latest release.ghstatsatomatomv1.0.0# Fetch download count for "v1.0.0" release.ghstatsatomatomv1.0.0-d# Detailed description for "v1.0.0" release.ghstatsatomatomv1.0.0-q# Quiet mode for "v1.0.0" release.ghstats# Get input for username and repository from user.ghstats-h# Print help.Changelogv2.0.0Add support for GitHub API pagination.Drop support for Python 2.v1.2.0Fix error on empty release title (issue #5).v1.1.1FirstPyPIrelease (issue #3).v1.1.0Fix error on Unicode titles (issue #1).Fix error on draft release (issue #4).v1.0.1Redesigned exceptions (issue #2).v1.0.0Initial release.LicenseMIT LicenseYou are free to use, modify, distribute (including commercial purposes)
as long as you credit the original author and include the license text.License text:MIT License
Package: ghstatus
GitHub commit status notifier CLIOptionsThese options can be automatically set from env variables or dotenv (.env) file in working dir.-u:GITHUB_USERNAME-p:GITHUB_PASSWORD–base-url:GITHUB_URL–repo:GITHUB_REPO–sha:GITHUB_SHA–target-url:TARGET_URLThese options can be set automatically in Jenkins context (JENKINS_URLis set).–target-url:BUILD_URLIf not set by either CLI args or env variables,
these options can be automatically detected from git repository in current working dir.–repo: inferred from.git/config–sha: inferred by executinggit rev-parse HEADinternallySample commandsget all statusesghstatus getset statusghstatus set success --context=unit-test --description='All tests pass!' \
  --target-url=https://example.com/my-test/1set status dynamically based on command exit codeghstatus exec --context=unit-test -- ./gradlew test
Package: gh-subdir
gh_subdirPython module to install a subfolder of a github repo instead of the entire repo.How to useFirst, install the module with pip.pipinstallgh_subdirThen use the module in your python file as follows:fromgh_subdirimportgh_subdirghs_config={"owner":"example_owner","repo":"example_repo","encoding":"utf-8",# optional (default: utf-8)"create_subfolder":True,# optional (default: True)}ghs=gh_subdir(ghs_config)ghs.install("example_subdir")Optionsencoding: Default encoding for the files, I've found utf-8 handles the most cases, but if you're having issues with encoding, try changing this.create_subfolder:If True, the files will be installed in a subfolder with the same name as the subfolder path.If False, the files will be installed in the same directory as the python file.ContributorsReece Vela  -GithubOthers welcome!
Package: ghsync
This script uses the GitHub API to get a list of all forked, mirrored,
public, and private repos in your GitHub account. If the repo already
exists locally, it will update it via git-pull. Otherwise, it will
properly clone the repo.It will organize your repos into the following directory structure:+ repos
\ +-- forks    (public fork repos)
  +-- mirrors  (public mirror repos)
  +-- private  (private repos)
  +-- public   (public repos)
  +-- watched  (public watched repos)Requires Ask Solem’s github2 (http://pypi.python.org/pypi/github2).Inspired by Gisty (http://github.com/swdyh/gisty).InstallTo install ghsync, simply run:$ pip install ghsyncThe commandghsyncwill then be available to you from the command
line. Beware, unless you set theGHSYNC_DIRenvironment variable, it
will add all the repos to your current directory.:$ export GHSYNC_DIR='~/repos/'OptionsIf the--upsteamargument is passed, all forked repos will have anupstreamremote added, pointing to their parent repo on GitHub.You can also selectively sync certian types of repos with--only. If
you’d like to only sync forked repositories, for example:$ ghsync --only forksContributeIf you’d like to contribute, simply forkthe repository, commit your
changes to thedevelopbranch (or branch off of it), and send a pull
request.
Package: ghtc
git_history_to_changelogStatus (master branch)What is it?GHTC(GitHistoryToChangelog) is yet another tool to generate a
changelog from git history (withconventional commit spec).Why another tool?Just because we didn't find an existing tool matching our needs.How to use it?Usage: ghtc [OPTIONS] REPO_ROOTArguments:REPO_ROOT  the fullpath to the git repository  [required]Options:--tags-regex TEXT               regex to select tags to show on changelog[default: ^v[0-9]]--starting-rev TEXT             starting revision (if not setghtc_changelog_start tag if exists, elsefirst git commit)--remove-duplicates-entries / --no-remove-duplicates-entriesif True, remove duplicate entries  [default:True]--unreleased / --no-unreleased  if True, add a section about unreleasedchanges  [default: True]--include-type TEXT             include (only) given conventional types inchangelog (can be used multiple times, alltypes by default), available types: other,build, chore, style, ci, refactor, test,docs, perf, fix, feat  [default: ]--title TEXT                    [default: CHANGELOG]--unreleased-title TEXT         [default: [Unreleased]]--help                          Show this message and exit.The generated CHANGELOG is sent to standard output.Contributing guideSeeCONTRIBUTING.mdfile.Code of ConductSeeCODE_OF_CONDUCT.mdfile.Sponsors(If you are officially paid to work on MetWork Framework, please contact us to add your company logo here!)
Package: ghtix
# GHTix - The Github Issue ToolRight now, this is just a python script to grab your github issues frommultiple projects and spit out your open tickets and due dates associated with milestones.$ ghtix.py -hUsage: ghtix.py [options]Options:-h, --help  show this help message and exit-p          Sort by project name (default)-t          Sort by time / due date-d          Output remaining days instead of due date-a          Include ALL issues even without milestone or due date-e          Show empty projects without any issues assigned-q          Quiet - no stderr messages, only issues listConfigure with a `~/.ghtix.json` file{"username": "myusername","password": "mysupersecretpassword","projects": [{"owner": "ecotrust", "name": "bioregion-discovery"},{"owner": "perrygeo", "name": "ghtix"}]}The default behavior showing due date and sorting by project$ ghtix.pyfetching a_test_project tickets...fetching ghtix tickets...a_test_project       4-7-2012 (Define Analysis..) #7 Modeling Frameworka_test_project      3-15-2012 (Software Scoping)  #40 Data modelghtix               3-12-2012 (0.1 Release)       #6 Better way to configureghtix               3-12-2012 (0.1 Release)       #5 PyPi pageShowing date delta (-d) and sorting by time (-t)$ ghtix.py -dtfetching a_test_project tickets...fetching ghtix tickets...ghtix                 14 days (0.1 Release)       #6 Better way to configureghtix                 14 days (0.1 Release)       #5 PyPi pagea_test_project        17 days (Software Scoping)  #40 Data modela_test_project        40 days (Define Analysis..) #7 Modeling FrameworkSetup is easy as pippip install ghtix
Package: ghtools
A set of commandline utilities for interacting with the GitHub or GitHub
Enterprise API.Installationghtoolsis available onPyPIand can be installed usingpip:$ pip install ghtoolsUsageSimple usage:$ eval `gh-login`
$ gh-repo alphagov/ghtools get
$ gh-org alphagov membersghtoolsis not a monolithic program. Instead, it comes with a number of
scripts which each perform very specific tasks. The aim is for these scripts
to be composable, allowing you to pipe their data to and from other unix tools
(grep,sort,uniq,python-mjson.tool, etc.) in order to
build up your own more complex scripts.Currently available tools withinghtoolsCommandDescriptiongh-browseManually browse the GitHub API by URLgh-list-membersList members of a GitHub organisation (may be removed)gh-loginLogin to GitHub, generating an OAuth login tokengh-migrate-projectMigrate an entire project between GitHub instancesgh-migrate-teamsMigrate organisation teams between GitHub instancesgh-orgInteract with organisationsgh-repoInteract with repositoriesgh-statusSubmit commit build status to GitHubMultiple instancesghtoolsis, in particular, designed for interacting with multiple GitHub
instances (i.e. github.com as well as your company’s GitHub Enterprise
installation). You tellghtoolshow to connect you non-github.com GitHub
instances using “nicknames” and environment variables. For example, here’s how
to login to a GitHub instance nicknamed “foo”, using a custom SSL cert
bundle:$ export GITHUB_FOO_API_ROOT=https://github.foo/api/v3
$ export GITHUB_FOO_CA_BUNDLE=/usr/share/ssl/github_foo.crt
$ eval `gh-login --scope repo foo`
$ gh-repo foo:alphagov/ghtools get
$ gh-org foo:alphagov membersLicenseghtoolsis released under the MIT license, a copy of which can be found
inLICENSE.
Package: gh-tools-gradient
Gradient Health ToolsTools to be used primarily in colab training environment and using wasabi storage for logging/data.
Also includes tools for common dicom preprocessing steps.Callbacksgh_tools.callbacks.keras_storageUsed for syncing models/logs into s3 file systemgh_tools.callbacks.log_codeUsed to snapshot notebooks into s3 file systemUtilsgh_tools.utils.imageUsed for various 2D image transforms see (projection matrix)[https://en.wikipedia.org/wiki/Transformation_matrix]gh_tools.utils.colabUsed for checking and saving notebooks in colab programmaticallygh_tools.utils.version_serviceBundles callbacks related to versioning and logging.gh_tools.layersCustom Keras Layers Useful for wrapping models.Contributing and IssuesContributions are welcome in the form of pull requests.
For issues, please provide a minimal example of code which results in an error.Software LicenseCopyright 2020 Ouwen Huang, Gradient Health Inc.
Package: ghtop
ghtopSee what's happening on GitHub in real time (also helpful if you need to use up your API quota as quickly as possible).ghtopprovides a number of views of all current public activity from all users across the entire GitHub platform. (Note that GitHub delays all events by five minutes.)InstallEitherpip install ghtoporconda install -c fastai ghtop.How to useRunghtop -hto view the help:$ghtop-h
usage:ghtop[-h][--include_bots][--typesTYPES][--filt{user,repo,org}][--filtvalFILTVAL]{tail,quad,users,simple}positionalarguments:{tail,quad,users,simple}Operationmodetorun

optionalarguments:-h,--helpshowthishelpmessageandexit--include_botsIncludebots(thereisalotofthem!)(default:False)--typesTYPESComma-separatedtypesofeventtoinclude(e.gPushEvent)--filt{user,repo,org}Filteringmethod--filtvalFILTVALValuetofilterby(for`repo`useformat`owner/repo`)There are 4 views you can choose:ghtop simple,ghtop tail,ghtop quad, orghtop users. Each are shown and described below. All views have the following options:--include_bots: By default events that appear to be from bots are excluded. Add this flag to include them--types TYPES: Optional comma-separated list of event types to include (defaults to all types). For a full list of types, see the GitHubevent types docs--filtand--filtval: Optionally filter events to just those from one of:user,repo, ororg, depending onfilt.filtvalis the value to filter by. See theGitHub docsfor details on the public event API calls used.Important note: while running,ghtopwill make about 5 API calls per second. GitHub has a quota of 5000 calls per hour. When there are 1000 calls left,ghtopwill show a warning on every call.ghtop simpleA simple dump to your console of all events as they happen.ghtop tailLikesimple, but removes most bots, and only includes releases, issues and PRs (open, close, and comment events). A summary of the frequency of push events is also shown at the bottom of the screen.ghtop quadThe same information astail, but in a split window showing separately PRs, issues, pushes, and releases. This view does not remove bot activity.ghtop usersA summary of activity for the most active current users.Shared under the MIT license with ♥ by @nat
Package: ghtrend
GhTrendRequest and parse Github trending page.Usage:$get-trend[OPTIONS][DATE_RANGE][OUT_FILE]Arguments:[DATE_RANGE]: Choose from: daily, weekly, monthly[OUT_FILE]: Enter the filepath csv to be stored atOptions:--quiet / --no-quiet: [default: no-quiet]--version / --no-version--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Dependency:requestsBeautifulSoup4typer
Package: ghtrending
GHTRENDINGOverviewGHTRENDINGis a commandline tool for explore GitHub trending, includes developers and repository.INSTALLATION//package(recommend)pip3installghtrending

//sourcegitclonehttps://github.com/chinsyo/ghtrending.git&&cdghtrendingUSAGE//package(recommend)python3-mghtrending

//sourcepython3ghtrending/ghtrending.py
Package: ghubtrending
Github Trending twitter botPosts to twitter one-at-a-day trending github repositories.Free software: BSD licenseMore documentation:https://ghubtrending.readthedocs.org.WorkflowCheck if if this week we’ve got a json file, if notGet the week’s twitter repositoriesStore them in a json filePublish the json file to github (just for coolness)If we’ve got it.Get current day’s twitter trending.This means that we’re not actually posting today’s trending
but one specific day’s Nth trending being N the day of week.But that’s ok, as I’m doing this to have one specific
repository each week.Also, we mantain a list of already-posted repos and get the
next one if we’ve already posted that.FeaturesPython 3Twitts one twitt-at-a-day so people won’t get tiredDoes not twitt repeated twittsUsageInstall it by executing:python setup.py installI recommend the usage of a virtualenv.This will create an entry_point, called ghubtrending, that will update the
twitter status with the repository of the week.This works only on python3.
Configuration file should be, located at ~/.ghtrend_bot.cfg as follows:[github]
login=
password=

[twitter]
CONSUMER_KEY=
CONSUMER_SECRET=
ACCESS_TOKEN=
ACCESS_TOKEN_SECRET=WarningThis gets the trending repositories CREATED last week
Currently this seems to be GH’s way of showing trending.gh.com
but it might change in the future on GH’s side. Not here.
This one will continue to show last week’s =)This requires you’ve got ~/.ghtrending directory created.
I’m using that to have a link to data/ in there and auto-commit
its contentHistory0.0.1 (2015-06-14)First release on PyPI.