Saravanan666/pypi-org huggingface dataset:
Package: py-github-gui-rackodo
Py Github GUIA simple graphical user interface for receiving public details of a GitHub profile.Table of ContentsGetting StartedTools RequiredInstallationUsingAuthorsThanksLicenseGetting StartedTools RequiredPIPA correctly configured Python environment for Tkinter.InstallationIn a command line, run these commands:$python3-mpipinstall--upgradepip$python3-mpipinstallpy-github-gui-rackodoThe second command should install Py Github GUI and all of its necessary dependencies.UsingTo use Py Github GUI, you'll first need a Github Personal Access Token. Here's how to get one:Navigate to Github's settings page and scroll down toDeveloper Settings.Click onPersonal Access Tokens, thenTokens (Classic).Click onGenerate New Token, thenGenerate New Token (Classic). Verify your password if necessary.Name the token whatever you'd like, give it an expiry date however you see fit, and then scroll down to check the box next toread:user.Generate the token, and save it in a text file so you don't lose it.Now, to actually use Py Github GUI, runthiscommand:$python3-mpy_github_guighp_yourgeneratedtoken12345In the opened window, type the username of a GitHub user and press theGet Informationbutton. The available information will be shown.AuthorsBash ElliottGitHubThanks@aottrand@craftzdogLicensepy-github-guiis open source softwarelicensed as MIT.
Package: pygithubmanager
PyGitHubManagerGitHub desktop version created with Python and PySide6.Installation$pipinstallpygithubmanagerUsageimportpygithubmanagerpygithubmanager.start()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensegithubmanagerwas created by DomiTP. It is licensed under the terms of the GNU General Public License v3.0 license.Creditsgithubmanagerwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pygithub-redux
(Very short) TutorialFirst create a Github instance:from github import Github

g = Github("user", "password")Then play with your Github objects:for repo in g.get_user().get_repos():
    print repo.name
    repo.edit(has_wiki=False)You can also create a Github instance with an OAuth token:g = Github(token)Or without authentication:g = Github()Reference documentationSeehttp://pygithub.github.io/PyGithub/v1/index.html
Package: pygithubutils
PyGitHub UtilitiesGitHub API utilities for managing large numbers (10..1000) of users and repositories for education and institutions.
GitHub v3 API is used via actively developed and growingPyGitHub.
For very large number of repos say 1000+, it may be more useful and fast to use the GraphQL GitHub v4 API.
Input / output is often via spreadsheet, as a gateway to APIs of other services such as Blackboard.This repository helps us avoid having to useGitHub Education.For example:create repo for each team project (CreateGithubTeamRepos.py)mass-add per-project collaborators (AddGithubCollab.py)duplicate (mirror) lots of repos (DuplicateGithubRepos.p)We also maintain Python-based Gitutilities.An important feature inpythonCountGithubForks.pyusernameis showing which forks of your repos have had changes "ahead of" the parent repo.Count how many total GitHub stars a GitHub account has:pythonCountGithubStars.pyusernameThat will take a couple seconds even for large numbers of repos.Mass duplicate GitHub reposDuplicateGithubReposbased on spreadsheet input, mass duplicate GitHub repos.API KeyUsers will need a GitHub API token, as the unauthenticated API access is severely limited.GenerateGitHub API token with permission appropriate to the PyGitHub Utilities script being used.Copy that text string to a secure location on your computer.permissionsFor public repos, "public_repo" is needed.
For private repos, "repo" is needed."admin:org" Oauth does not work.It's suggested you create an Oauth key for this, and then disable/delete this key permissions when done
to avoid a security issue.
To do this, including for Organizations, go to your
Username, Settings, Developer Settings, Personal Access Tokens and set repo:public_repo.
For organization private repos, you need "repo" permissions on the Oauth token.if you get errorgithub.GithubException.UnknownObjectException: 404 {'message': 'Not Found',
'documentation_url': 'https://developer.github.com/v3/repos/#edit'}that typically means your Oauth key doesn't have adequate permissions.
Package: py-gitignore-2
Python Template  RepositoryThis is a template repository for Python projects that provides a starting point for designing and developing Python applications. It includes a basic project structure, configuration for continuous integration, static analysis, code formatting, and more. You can use this template as a foundation for your Python projects.FeaturesProgramming Language: PythonRuntime environment: Python v3.11.xTesting Framework: unittestContinuous Integration: GitHub ActionsStatic Analysis: Flake8Code Formatting: BlackPackage Manager: pipLicense: MIT LicenseGetting StartedTo use this template for your Python project, follow these steps:Fork this repository: Click the "Fork" button at the top right of this page to create a copy of this template repository in your GitHub account.Clone your fork: Usegit cloneto clone the repository to your local machine:gitclonehttps://github.com/kimonk0299/python-template.gitSet up virtual environment:python-mvenv.venvsource.venv/bin/activateInstall Dependencies:pipinstall-rrequirements.txtAdd your files tosrc/and unit tests totests/Format code:black.Run static analysis:flake8Run tests:python-munittestdiscover-stestsPush code on GitHub to run CI tests on GitHub Actions
Package: pygitlabapi
pygitlabapipygitlabapi contains some functions to facilitate the usage of gitlab apis inside python modules or in command line.The source for this project is available here.Example of importing gitlabapi inside a python module :import os
from pygitlabapi import gitlabApi

iurl = "https://gitlab.com/api/v4"
ijson = "project.json"
imethod="POST"
iapi = "/projects"
iuser= os.environ.get("GITLAB_USER")
itoken = os.environ.get("GITLAB_TOKEN")
message= gitlabApi.rungitlabApi(api=iapi, method=imethod, url=iurl, user=iuser, token=itoken, json=ijson )
print(message)Release notes1.0.0 Initial version1.0.1 Managing http error codes
Package: pygitmon
Run command when the upstream git branch was updated.Example work file named git-monitor.yaml:path: ~/work/company-website-devcommand: ansible-playbook playbook-develop-company.ymlpath: ~/work/company-website-prodremote: originbranch: productionforce: 1commands:- ansible-playbook playbook-deploy-company.ymlThe first item ignores the default values, which are remote=origin, branch=main,
force=0. If you didn’t set command, gitmon will only update the repository.In the next example we have three additional fields:path: ~/work/company-website-prodremote: originbranch: mainforce: 1repo_url:git@github.com:username/company-websitessh_keyfile: ~/.ssh/company-keyssh_keyfile_password: company-passwordIf the path is empty, we will try to create a new clone. And if the url scheme is not
http, we will assume it was ssh, and if ssh_keyfile is set we will use that when
cloning or updating the path.UsageExample:python3 -m gitmon git-monitor.yaml
Package: pygitops
pygitopsPygitops is a wrapper around low-level GitPython logic, that makes it very simple to do basic git operations. This system is especially useful for systems that create automated pull requests, or otherwise operate on contents of repositories locally.For example, clone a repository, make some changes, and push those changes to a branch:frompathlibimportPathfrompygitops.operationsimportfeature_branch,stage_commit_push_changes,get_updated_repo,build_github_repo_urlfromgitimportActor,Reporepo_name='some-repo'repo_namespace='some-namespace'branch_name='new-chores'some_actor=Actor('some-service-account','some-service-account@some-enterprise.com')commit_message='Add list of chores'# Build the URL for cloning the repositoryrepo_url=build_github_repo_url("some-service-account_name","some-access-token",repo_namespace,repo_name,"github.com",)# Clone the repository to the local filesystem (updating the repo if it is already present)repo:Repo=get_updated_repo(repo_url,Path("some-clone-dir"/repo_name))# Make some changes on a feature branch, commit and push the changeswithfeature_branch(repo,branch_name):Path('some-clone-dir'/repo_name/'chores.txt').write_text('haircut\ngroceries\ndishes')stage_commit_push_changes(repo,branch_name,some_actor,commit_message)FeaturesClone repositories to your local filesystem from any remote git repositoryCreate feature branches and add commits, without worrying about the underlying GitPython complexityInstallationpip install pygitopsUsageFor more information, please see thepygitops docs
Package: pygitrepo
Welcome topygitrepoDocumentationEnglish document is here中文文档在此pygitrepois a Python command line tool that simplifies the Python development, build, test, deploy, publish workflow, using the BEST PRACTICE from a 15 years Python developer.Features:Python library / open source PyPI project development workflow.AWS Lambda based Microservice development, test, deployment workflow.Installpygitrepois released on PyPI, so all you need is:$pipinstallpygitrepoTo upgrade to latest version:$pipinstall--upgradepygitrepo
Package: pygitstats
GitStatspygitstats is a package that allows you to use the GitHub GraphQL API with ease in your Python programs.InstallationAnyone can use this package by installing it from PyPi via one of the following commands:Pippipinstallpygitstatspip3installpygitstatspython-mpipinstallpygitstatspython3-mpipinstallpygitstatsPoetrypoetryinstallpygitstatsCondacondainstallpygitstatsPipenvpipenvinstallpygitstatsUsageJust import the modules you need and get started!LicenseThis project is licensed under the LGPLv3 license.
Package: pygitsync
A utility to poll a remote git repository and maintain local state according
simple rules such as the HEAD of a specified branch, or the latest tag
conforming to a regular expression.Contents1Installation2Credential management3Getting started1InstallationThepygitsyncpackage is available from PyPI. Installing into a virtual
environment is recommended.python3 -m venv .venv; .venv/bin/pip install pygitsync2Credential managementOne relatively straight-forward means of managing credentials for SSH based
access to git repositories is usingssh-agent. Before starting thegit-syncprocess, take the following steps.eval $(ssh-agent)
ssh-add <path to keyfile to be used by pygitsync>
# type the passphrase for your SSH key as prompted
git-sync [options]git-syncwill now use the ssh agent session to acquire access to the SSH key.Having a human type in a passphrase may not work very well for automation, so
further effort will likely be needed to automatically acquire the passphrase
from some kind of encrypted vault, and then apply that passphrase to the ssh
agent session. A work-around may be to use an empty-passphrase SSH key, but
this is not recommended at all for maintaining good security.3Getting startedHaving just installedpygitsyncyou really just want to get a remote repo
syncing, right? You need to create a configuration file - the default location is.pygitsync.yamland it needs to look something like this. In this case
we’re just syncing the default (main) branch of the pygitsync repo itself.---
repo:
  pattern_type: branch
  pattern: main
  url: git@gitlab.com:ci-cd-devops/pygitsync.git
application:
  exception_sleep_seconds: 10
  is_daemon: false
  sleep_interval_seconds: 30Using this configuration the remote repo will be pulled every 30 seconds to
check for updates in the main branch. The pattern type “branch” means that the
sync will always update to the latest HEAD pulled from the remote. Disabling
theis_daemonsetting means that the process will run indefinitely in the
foreground (useful to run inside containers).Running indefinitely means that the process will never exit for exceptions. If
an exception occurs very early in the process then the exception handling loop
could run very quickly, consuming large amounts of needless CPU. Theexception_sleep_secondssetting puts a delay in that exception handling
oop to prevent such a scenario from occurring.The repo will be initially be cloned to the current working directory of thegit-syncexecutable, or use the--workingargument to specify an
alternate location for the repo working directory.Take a look at other configuration arguments usinggit-sync--help.
Package: pygitter
PyGitterPython git repository interfaceUsageThis library provides interfaces to interact with git repositories.r=Repo()# to be executed in the directory that has local repo# orr=Repo(path=<PATH>)# where path is a directory that contains `.git` dir# orr=Repo(remote=<URL>)# URL, either HTTPS or SSH, you can also add `path` to specify dir to clone into.Working with the source codeTo work with the source code, check theCONTRIBUTE.md
Package: pygitversion
A set of plugins for setuptools_scm to enable better version trackingInstallationpip install pygitversionUsageThe usage is almost exactly the same as usingsetuptools_scm,
so follow those guidelines. This package merely adds a couple of plugin functions to make the
versioning a bit better (eg. having the branch name in the version if applicable).To summarise: create apyproject.tomland include (at least) the following lines:# pyproject.toml
[build-system]
requires = ["setuptools>=30.3.0", "wheel", "setuptools_scm", "pygitversion"]Then in yoursetup.py, add the following to the call tosetup():# setup.py
from setuptools import setup
from pygitversion import branch_scheme

setup(
    ...
    use_scm_version={
        "local_scheme": branch_scheme
    },
)You can now print the version of the package simply by doing:$ python setup.py --versionTo set the version of your code, make your__init__.pyhave the following:from pkg_resources import get_distribution, DistributionNotFound
try:
    __version__ = get_distribution(__name__).version
except DistributionNotFound:
    # package is not installed
    passAnd that’s it!DevelopmentTo run the all tests run:toxChangelog1.0.0Move to setuptools_scm0.1.0 (2019-09-04)First release on PyPI.
Package: pygitversionhelper
pyGitVersionHelperA tiny library to help versioning management of git python projectsBecause a good developer is a lazy developer and version management in CI/CD can be very time consuming.CheckoutLatest Documentation.Features- list tags
- get last tag 
- get last version
- get current version (bumped)
- convert / switch from SemVer to PEP440 (both ways)
- automatic version format detection (SemVer by default)
- get commit message historyOptions- restrict to same branch
- both SemVer and PEP440 support
- custom output format
- configurable default bump type: major, minor, patch or dev
- configurable default bump strategy: post, pre-patch, pre-minor, pre-major
- ignore non-version tag
- force version formatProcess- full CI/CD developpment: Gitea / Jenkins + few python libs (pytlint, coverage, unittest, mkdocs)
- documentation generated mkdocs and self-hosted
- CI/CD on Linux, manually tested in Windows environnement
Package: pygix
pygixPygix is a generic python library for performing reduction of
grazing-incidence and fiber X-ray scattering data.The pygix library has been developed to reduce 2D X-ray scattering data for
experiments recorded in grazing-incidence (GISAXS, GIWAXS, GIXRD, GIXD,
collectively referred to as GIXS) and fiber diffraction modes. Both 2D image
projections and 1D line profile extraction are handled. The package is designed
to be as generic as possible, i.e., it makes no assumptions about the data
(passed by the user as numpy arrays) and all detector and geometric corrections
can be handled at the point of data reduction.Please refer to thewikifor more
detailed discussion!Example usage:importpygiximportpygix.plottingaspppg=pygix.Transform()pg.load('detector_calibration.poni')pg.indcident_angle=0.2# transform image into reciprocal space:i,qxy,qz=pg.transform_reciprocal(data)pp.implot(i,qxy,qz,xlim=(-5,28),ylim=(-.5,32),mode='rsm')Which will generate the following image:Pygix uses the fiber transformation originally described by Stribeck [1] (based
on earlier work by Polayni [2]), which has recently been formulated for the case
of grazing-incidence scattering [3]. The reciprocal space transformation for the
fiber and grazing-incidence X-ray scattering are thus equivalent, meaning this
python library is generic for both classes of experiments.Pygix is heavily based on the pyFAI library for conventional 2D transmission
azimuthal integration [4].ReferencesStribeck and Nöchel, J. Appl. Crystallogr., (2009), 42, 295–301Polanyi, Z. Physik, (1921), 7, 149-180Lilliu and Dane, 	arXiv:1511.06224 [cond-mat.soft]Ashiotis, Deschildre, Nawaz, Wright, Karkoulis,
Picca and Kieffer, J. Appl. Crystallogr., 2015, 48, 510–519
(https://github.com/silx-kit/pyFAI/)InstallationIn the near future, pygix will be available via PIP. In the meantime, download
the source code in .zip format from the githubrepositoryand unpack it.unzip pygix-master.zipGo to thepygix-masterdirectory, build and install the package:cd pygix-master
    python setup.py build installCreditspygix was written by Thomas Dane with contributions and assistance fromJerome Kieffer.The derivation of the reciprocal space transformation was done in collaboration with Samuele Lilliu.pygix relies heavily on thepyFAIlibrary.
Package: pyGizmos
pyGizmosMade by GrkDevContact atthedevgrk@gmail.comThis Python Package is used to give yourself fun and useful tools when writing your Python programs!ChangelogOctober 24, 2023 - Version 0.0.1Initial ReleaseType Function AddedReceipt Function AddedOctober 25, 2023 - Version 0.0.2Updated to Python 3.10 to work with modern Python systemsOctober 25, 2023 - Version 0.0.3Removed receipt function due to errors, it may return in the futureRemoved code that would run at the beginning of a program (accidental code)Added Dice FunctionAdded Scramble Function
Package: pyGizwits
pyGizwitsThis package is a wrapper for Gizwits OpenAPI and websocket API.
It allows you get connect using the App ID for the device type you have registered, then register for websocket updates for the devices you choose.Credit to cdpuk as alot of the code has been inspired byhttps://github.com/cdpuk/ha-bestwayExample UsageThe below will login to the US api and get the devices currently bound to your devices. It will then fetch their current status as well as then subscribe to receive the websocket updates for the devices.from pyGizwits import pyGizwits
from aiohttp import ClientSession
import asyncio

async def main()
    username = 'youremailaddress'
    password = 'yourpassword'
    app_id = 'appidfromappyourdeviceisregisteredin'
    session = ClientSession()
    region = pyGizwits.GizwitsClient.Region.US
    client = pyGizwits.GizwitsClient(session,app_id,region)
    @client.on('device_status_update')
    def handle_device_status_update(update):
        print(f"Got Update")
        print(update)
    await client.login(username,password)
    await client.refresh_bindings()
    devices: dict[str, pyGizwits.GizwitsDeviceReport] = await client.fetch_devices()
    for device in devices:
        await client.Subscribe_to_device_updates(devices[device].device)
    await asyncio.sleep(60)
    await session.close()

asyncio.run(main())
Package: pygkquiz
This is the homepage of our GKQUIZ project..This project is build on the basis of Knowledge purposes.This is a GK quiz mini project that test your knowldege via ‘OBJECTIVE MCQ’.In this project include 4 different GK MODULES namely.SCIENCE QUIZHITORY QUIZGEOGRAPHY ANDGENERAL AWARENESS..Through this project you enhance your knowledge skills and also test your IQ level.We have create ‘GRADE’ SYSTEM in this project, so you can check your GRADE according to your performance.We have also include ‘NEGATIVE MARKING’ CONCEPT in this.Note: You have to type exact option that mentioned in the option scheme e.g.Q.) which is the capital of India ?DelhiChandigarhMumbaiKolkataType your answer here : <Delhi>–You have to type exact option like typed in this exampleI hope you would like and enjoy it, Please appreciate of our work.Thanks and regardsAsh bhatia Teamfor more information and queries, please contact us below mention mails:EMAILID:ashbhatia2@gmail.com,ashbhatia20@gmail.com
Package: pyglance
__ __  _   _  __ _| | __ _ _ __   ___ ___| '_ \| | | |/ _` | |/ _` | '_ \ / __/ _ \| |_) | |_| | (_| | | (_| | | | | (_|  __/| .__/ \__, |\__, |_|\__,_|_| |_|\___\___||_|    |___/ |___/# pyglanceA python client and library for [Glance](http://github.com/Miserlou/Glance) applications.It's not the best because it doesn't have top/bottom registration marks yet. Improvements welcome.## Installationpip install pyglance## Usage (CLI)$ glance filename.txt$ glance file1.txt file2.txt --speed 500## Usage (Programmatic)from pyglance import glanceglance(your_text_string)wpm = 800glance(your_text_string, wpm)## AboutThere were some other attempts to do this, but none that quite accurately matched the 'Glance' timing and spacing specification.This is used by the [seek](http://github.com/Miserlou/seek) project.3 Clause BSD, Rich Jones 2014.
Package: pygle
PyGLE is a wrapper for the WiGLE WiFi mapping API.InstallationTo install PyGLE for Python 2.x or 3.x just callpip install pygle.You’ll also need to set up an account with WiGLE and retrieve your API
details to go into the config.py file.UsageUsing the API wrapper is very much like using the API itself. PyGLE has
four modules, corresponding to the four sections of the WiGLE API v2. So
each section is a module in PyGLE and each API endpoint is a function in
that module.To use the API, first import the section, then call the endpoint
function. So to perform an authenticated GET request against an
endpoint:>>> from pygle import network
>>> network.geocode(addresscode="London")
{'success': True, 'results': [{'address': {'city': 'London',
'county': 'London', 'state_district': 'Greater London', 'state': 'England',
'country': 'UK', 'country_code': 'gb'}, 'lat': 51.50732, 'lon': -0.1276399,
'importance': 0.9754895765402, 'place_id': 233847357,
'licence': 'Data (c) OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright',
'osm_type': 'relation',
'boundingbox': [51.28676, 51.69187, -0.5103699, 0.33401]}]}This returns adict, or raises anHTTPErrorif something went
wrong.API documentationThe PyGLE API wrapper is fully documented with docstrings which were
correct as of 11/2/2017, but in case of any disagreement between these
and theinteractive WiGLE API docs,
the WiGLE docs take precedence. Please submit any discrepancies as
issueshere.The sections and endpoints available are:filekmltransactionsuploadnetworkcommentdetailgeocodesearchstatscountriesgeneralgroupregionssitestandingsuserprofileapiTokenuser
Package: pyglesys
py.glesys is a Python wrapper around the GleSYS API.InstallingInstall usingpip:$ pip install pyglesysExample Usageimportglesysgs=glesys.Glesys('account_number','api_key')servers=gs.server.list()print(servers)$pythonapp.py[Server(id_="wps1234567", hostname="example.com", datacenter="Falkenberg", platform="VMware")]