Saravanan666/pypi-org huggingface dataset:
Package: py-gis-utility
py-gis-utilityA GIS utility library which contains some regularly required math and image operations.Installationpip install py-gis-utilityRequirementsGeopandas -installationRasterio -installationGDAL 2.4.4 -installationFiona -installationShapely -installationMath OperationsGet perpendicular point with reference to start and end point of the segmentGet perpendicular distance from point to line_segmentGiven a Point find a new point at an given 'angle' with given 'distance'Calculate a new point on the line segment given the distance from the startEuclidean computationImage OperationsSave Multi Band ImageryimportnumpyasnpfromaffineimportAffinefrompy_gis_utility.image_funcimportsave_16bit_multi_band,save_8bit_multi_bandimage=np.zeros((512,512,6))transform=Affine(1.0,0.0,3422098.682455578,0.0,-1.0,5289611.291479621)# Save 8bitsave_8bit_multi_band(image,transform,26910,r"8bit.tiff")# Save 16bitsave_16bit_multi_band(image,transform,26910,r"16bit.tiff")Generate bitmap from shape filefrompy_gis_utility.helperimport(read_data_frame,save_image_with_geo_transform,)frompy_gis_utility.image_funcimportshape_geometry_to_bitmap_from_data_frame_generatordata_frame=read_data_frame(r"path_to_geometry_file")bitmap_gen=shape_geometry_to_bitmap_from_data_frame_generator(data_frame,(50,50),(1,1),allow_output_to_overlap=True)fori,bitmapinenumerate(bitmap_gen):save_image_with_geo_transform(f"{i}.tiff",bitmap.array,bitmap.transform)Generate shape geometry from geo reference bitmapfrompy_gis_utility.helperimport(read_image_with_geo_transform,)frompy_gis_utility.image_funcimportimage_obj_to_coordinates_generator,image_obj_to_shape_generatorimg_obj=read_image_with_geo_transform(r"path_to_geo_referenced_file")# output in format {'geometry': <shapely.geometry.polygon.Polygon object at 0x0000022009E5EC08>, 'properties': {'id': 255.0, 'crs': CRS.from_epsg(4326)}}shape_gen=image_obj_to_shape_generator(img_obj)forginshape_gen:print(g)# output in format {'geometry': {'type': 'Polygon', 'coordinates': [[(621000.0, 3349500.0), .... ,(621000.0, 3349489.5)]]}, 'properties': {'id': 255.0, 'crs': CRS.from_epsg(4326)}}co_ord_gen=image_obj_to_coordinates_generator(img_obj)forginco_ord_gen:print(g)Support Me
Package: py-git
py_gitPython Git-like VC Tool For Pythonic Git Actions.Essentially: Pythonically GitPyGit is a python package / module that helps developers get the best out of Git, quickly and effeciently.With its simple function calls such as:bashterminal---------------------------------------------------------------------------------------------------
$pip3installpy_git
$python3-mpy_git.pygit--automate_actionspush
$python3-mpy_git.pygit--automate_actionspushThe above bash code helps the developer effortlessly push new code / builds to Github with little to no further
input.The automate_actions has a parameter known as commit_msg set to 'new changes' at default.Essentially at its core , PyGit is a pythonic lesser to git, seeing as to how its entire
functionality depends on git software.Requirements:Initialise of SSH keys in os.path['PATH'] to enable quick push, pull, fetch, merge, etc.Make sure you have gone through the creation and deployment of SSH keys to github account to enable the program run without needing to always cache credentials.Python3.6+Directory name of realpath of current working file as shown in the code samples one line 15 and 16.Linux based operating system.This is as a result of the default file handling operations carried out.This can be modified to run on Windows OS.At least 2GB of RAM.At least 32 GB of storage.Contribute!Documentation:TodoCheck out pypi @druzgeorge @agulam-cocoMuch contribution will be needed.Thanks in advance. :]
Package: pygit2
pygit2 - libgit2 bindings in PythonBindings to the libgit2 shared library, implements Git plumbing.
Supports Python 3.9 to 3.12 and PyPy3 7.3+LinksDocumentation -https://www.pygit2.org/Install -https://www.pygit2.org/install.htmlDownload -https://pypi.org/project/pygit2/Source code and issue tracker -https://github.com/libgit2/pygit2Changelog -https://github.com/libgit2/pygit2/blob/master/CHANGELOG.mdAuthors -https://github.com/libgit2/pygit2/blob/master/AUTHORS.mdSponsorsIterativeAdd your name and link here,become a
sponsor.License: GPLv2 with linking exceptionThis program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.In addition to the permissions in the GNU General Public License, the
authors give you unlimited permission to link the compiled version of
this file into combinations with other programs, and to distribute those
combinations without any restriction coming from the use of this file.
(The General Public License restrictions do apply in other respects; for
example, they cover modification of the file, and distribution when not
linked into a combined executable.)This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.You should have received a copy of the GNU General Public License along
with this program; see the file COPYING. If not, write to the Free
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
Package: pygit2-noteable
Bindings to the libgit2 shared library, implements Git plumbing.
Supports Python 3.8+ and PyPy3 7.3+LinksDocumentation -http://www.pygit2.org/Install -http://www.pygit2.org/install.htmlDownload -https://pypi.python.org/pypi/pygit2Source code and issue tracker -https://github.com/libgit2/pygit2Changelog -https://github.com/libgit2/pygit2/blob/master/CHANGELOG.rstAuthors -https://github.com/libgit2/pygit2/blob/master/AUTHORS.rstSponsorsIterativeAdd your name and link here,become a sponsor.License: GPLv2 with linking exceptionThis program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License,
version 2, as published by the Free Software Foundation.In addition to the permissions in the GNU General Public License,
the authors give you unlimited permission to link the compiled
version of this file into combinations with other programs,
and to distribute those combinations without any restriction
coming from the use of this file.  (The General Public License
restrictions do apply in other respects; for example, they cover
modification of the file, and distribution when not linked into
a combined executable.)This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.  If not, write to
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
Package: pygita
pygitapygita is a wrapper ofbhagavadgita.ioapi for Python 3InstallationInstall it from pypi using pippipinstallpygitaAuthenticationRegister onbhagavadgita.ioCreate AppCopy  Client Id and Client SecretUsage1. Create a clientfrompygitaimportClientclient=Client(CLIENT_ID,CLIENT_SECRET)2. Get a verseverse=client.get_verse(verse_number,chapter_number)3. Get a chapterchapter=client.get_chapter(chapter_number)ObjectsAttributes ofChapterobjects1. chapter_number
2. chapter_summary
3. name
4. verses_count
5. name_meaning
6. name_translation
7. name_transliterated(in English only)
8. name_meaning(in Hindi only)Attributes ofVerseobjects1. chapter_number
2. verse_number
3. text
4. meaning
5. transliteration
6. word_meanings
Package: pygitapi
pyGitAPIpygitapi is a package that allows you to use the GitHub GraphQL API with ease in your Python programs.BitBucket and GitLab API integration is planned! See#18and#19InstallationAnyone can use this package by installing it from PyPi via one of the following commands:Pippipinstall--upgradepygitapipip3install--upgradepygitapipython-mpipinstall--upgradepygitapipython3-mpipinstall--upgradepygitapiAdd the--preflag to get the latest pre-releasePoetrypoetryinstallpygitapi@latestAdd the--allow-prereleasesflag to get the latest pre-releaseCondacondainstallpygitapiYou will not be able to install pre-releases on condaPipenvpipenvinstall--selective-upgradepygitapiAdd the--preflag to get the latest pre-releaseUsageJust import the modules you need and get started!Proper documentation is being worked on#13LicenseThis project is licensed under the LGPLv3 license.We also follow theall-contributorsguidelines.Contributors ✨Thanks goes to these wonderful people (emoji key):kokomi simp :3💻💬Dillon Barnes💻🚇🚧⚠️This project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: pygitbucket
gitbucket is an API wrapper for Bitbucket written in Python with added features like Bitbucket pipelines while maintaining the simplicity of the source-repo.
It was forked fromGearPlug/bitbucket-pythonInstallingpip install pygitbucketNew Features addedAdded Bitbucket Pipelines supportUsagefrom pygitbucket.client import Client

client = Client('EMAIL', 'PASSWORD') 

# Or to specify owner URL to find repo own by other user
client = Client('EMAIL', 'PASSWORD', 'Owner')Get user informationresponse = client.get_user()Get account privileges for repositoriesresponse = client.get_privileges()Get repositoriesresponse = client.get_repositories()Get repositoryresponse = client.get_repository('REPOSITORY_SLUG')Get branches for repositoryresponse = client.get_repository_branches('REPOSITORY_SLUG')Get tags for repositoryresponse = client.get_repository_tags('REPOSITORY_SLUG')Get pipelines for repositoryresponse = client.get_repository_pipelines('REPOSITORY_SLUG')Get last 10 pipelines for repositoryresponse = client.get_latest_pipelines('REPOSITORY_SLUG')Get components for repositoryresponse = client.get_repository_components('REPOSITORY_SLUG')Get milestones for repositoryresponse = client.get_repository_milestones('REPOSITORY_SLUG')Get versions for repositoryresponse = client.get_repository_versions('REPOSITORY_SLUG')Create issueresponse = client.create_issue(repository_slug, title, description)trigger pipeline deployment for branchresponse = client.trigger_pipeline(repository_slug, branch_name)Get all issuesresponse = client.get_issues('REPOSITORY_SLUG')Get issueresponse = client.get_issue('REPOSITORY_SLUG', 'ISSUE_ID')Delete issueresponse = client.delete_issue('REPOSITORY_SLUG', 'ISSUE_ID')WebhooksCreate webhookdata = {
    "description": "Webhook",
    "url": "http://mywebsite.com",
    "active": True,
    "events": [
        "repo:push",
        "issue:created",
        "issue:updated"
    ]
}
response = client.create_webhook('REPOSITORY_SLUG', data)Get all webhooksresponse = client.get_webhooks('REPOSITORY_SLUG')Get webhookresponse = client.get_webhook('REPOSITORY_SLUG', 'WEBHOOK_ID')Delete webhookresponse = client.delete_webhook('REPOSITORY_SLUG', 'WEBHOOK_ID')Requirementsrequests
Package: pygitclone
The git clone utility.Manages multiple git repositories with ease.💡 GitcloneGitcloneallows you tomanagemultiplegitrepositories in adirectory structure.Currently this isstill in heavy development. This Readme will be updated when it is ready. Use at your own risk at this moment.Table of ContentsInstallationFeaturesConfigurationUsageContributingExtensionsLicense💻 InstallationInstall the python package withpip install -e .. It will be published onpipas soon as it is ready.To install the shell completion run:gitclone--install-completion[bash|zsh|fish|powershell|pwsh]💫 FeaturesClone specifiedgit repositoriesin local directory.Use a localconfigurationfile.Autofetch withgithub.comto automatically clone all your owned repositories, includingprivateones if you specify an API token.Typecheckedlibrary code.⌨️ ConfigurationChange values in directory local filegitclone.yamlto your needs. You can copy the file fromgitclone.example.yaml. A config generation is under development.😎 UsageRungitclonefrom the same directory. Your configured git repositories will be cloned.The supported commands are:clone: Clones the configured git repositoriespull: Pull new changes in the cloned repositories👭 Contributing👋 Want to add a contribution togitclone? Feel free to send me apull request.See alsohere.📡 ExtensionsTo learn how to include an extension inGitcloneseehere.📝 LicenseCopyright (C)  2022 Leah LacknerThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, seehttp://www.gnu.org/licenses/.
Package: pygitconnect
pyGitConnectPython module for more convenient work with GitHub.Example of useimportpyGitConnect# Creating User-objectuserGitHub=pyGitConnect.User(token="YOUR_TOKEN",username="YOUR_USERNAME_ON_GITHUB",email="YOUR_EMAIL_ON_GITHUB")# conneting to file on GitHubfile=pyGitConnect.File(userGitHub,"repositoryName/branchName/path/to/your/file.txt")# getting readable text from file on GitHubprint(file.get().decode("UTF-8"))# reading file from your drivenewFile=pyGitConnect.NewFile(userGitHub,"B:\\GITHUB\\path\\to\\script.py")# pushing new file to your repository on GitHubprint(newFile.push("repositoryName/branchName/path/to/your/script/"))# connecting to uploaded fileuploadedFile=pyGitConnect.File(userGitHub,"repositoryName/branchName/path/to/your/script/script.py")# printing readable content from uploaded fileprint(uploadedFile.get().decode("UTF-8"))
Package: py-gitea
py-giteaA very simple API client for Gitea > 1.16.1This has been somewhat tested (and used), so most things should work as expected.Note that not the full Swagger-API is accessible. The whole implementation is focused
on making access and working with Organizations, Teams, Repositories and Users as pain
free as possible.Originally forked fromhttps://github.com/m301/py-gitea.UsageFirst get agiteaobject wrapping access and authentication (via an api token) for your gitea instance:fromgiteaimport*gitea=Gitea(URL,TOKEN)Operations like requesting the Gitea version or authentication user can be requested directly from thegiteaobject:print("Gitea Version: "+gitea.get_version())print("API-Token belongs to user: "+gitea.get_user().username)Adding entities like Users, Organizations, ... also is done via the gitea object.user=gitea.create_user("Test Testson","test@test.test","password")All operations on entities in gitea are then accomplished via the according wrapper objects for those entities.
Each of those objects has a.requestmethod that creates an entity according to your gitea instance.other_user=User.request(gitea,"OtherUserName")print(other_user.username)Note that the fields of the User, Organization,... classes are dynamically created at runtime, and thus not visible
during divelopment. Refer to the Gitea-API documentation for the fields names.Fields that can not be altered via gitea-api, are read only. After altering a field, the.commitmethod of the
according object must be called to synchronize the changed fields with your gitea instance.org=Organization.request(gitea,test_org)org.description="some new description"org.location="some new location"org.commit()An entity in gitea can be deleted by calling delete.org.delete()All entity objects do have methods to execute some of the requests possible though the gitea-api:org=Organization.request(gitea,ORGNAME)teams=org.get_teams()forteaminteams:repos=team.get_repos()forrepoinrepos:print(repo.name)InstallationUsepip install py-giteato install.TestsTests can be run with:python3 -m pytest test_api.pyMake sure to have a gitea-instance running onhttp://localhost:3000, and an admin-user token at.token.
The admin user must be namedtest, with emailsecondarytest@test.org.
Package: pygitguardian
py-gitguardian- GitGuardian API ClientAPI client library for theGitGuardian API.The GitGuardian API puts at your fingertips the power to detect more than 200 types of secrets in any text content, as well as other potential security vulnerabilities.py-gitguardiancan be used to create integrations to scan various data sources, from your workstation's filesystem to your favorite chat application.You can check API detailsherewith all the response codes and expected structures on each method.RequirementsPython 3.8+Projects usingpy-gitguardianGitGuardian Shield- Scan for secrets in your CI and pre-commit.Getting startedYou can obtain API keys for API usage on yourdashboard.pippip3install--upgradepygitguardianpipenvpipenvinstallpygitguardianpoetrypoetryaddpygitguardianExamplesCheckexamples/for full examples on how to use py-gitguardian.Scanning text content# please don't hardcode your gg_api_key in source code :)API_KEY=os.getenv("GITGUARDIAN_API_KEY")DOCUMENT="""import urllib.requesturl = 'http://jen_barber:correcthorsebatterystaple@cake.gitguardian.com/isreal.json'response = urllib.request.urlopen(url)consume(response.read())""""client=GGClient(api_key=API_KEY)# Check the health of the API and the API key used.ifclient.health_check().success:try:scan_result=client.content_scan(DOCUMENT)exceptExceptionasexc:# Handle exceptions such as schema validationtraceback.print_exc(2,file=sys.stderr)print(str(exc))print(scan_result)else:print("Invalid API Key")Scanning multiple filesAPI_KEY=os.getenv("GITGUARDIAN_API_KEY")client=GGClient(api_key=API_KEY)# Create a list of dictionaries for scanningfile_paths=(pathlib.Path(name)fornameinglob.iglob("**/*",recursive=True))to_scan=[{"filename":path.name,"document":path.read_text(errors="replace")}forpathinfile_paths]scan=client.multi_content_scan(to_scan)Transform results to dict or JSONAny model inpy-gitguardiancan be turned to a JSON string or a dictionary using
theto_dictandto_jsonmethods.frompygitguardian.modelsimportDetaildetail=Detail("Invalid API Key.")print(detail.to_dict())print(detail.to_json())DependenciesPy-gitguardian depends on these excellent libraries:requests- HTTP clientmarshmallow- Request (de)serialization and input validation
Package: py-githooks
py-githooksCreate git hooks with ease using a simple configuration file in a git projectInstallpipinstallpy-githooksUsageCreate a.githooks.iniconfiguration file (If not provided a dummy configuration file will be created).Add sections based ongit hooks namesfollowed by acommandproperty with the shell code you want to run.Run eitherpython -m python_githooksorgithooksin your virtual environment.Configuration file example:# .githooks.ini[pre-commit]command=pytest --cov[pre-push]command=pytest --cov && flake8Removing a hookIf you already created a hook and now want to remove it, just set the command value to empty, like this:# .githooks.ini[pre-commit]command=This will not actually physically remove the hook from the git local project, just will make it instantly exit with0status code.UnuseRunningpython -m python_githooks --deactivateorgithooks --deactivatewill stop shimming git hooks but keep the commands in.git/hooksRunrm .githooks.inito remove the configuration file (optional).rm .git/hooks/pre-commitor any other githook to stop them from executing (optional).
e.g.rm .git/hooks/*Licensepy-githooks isMIT-licensed.
Package: pygithub3
Pygithub3Pygithub3 is a wrapper to theGithub API v3,
written in Python.It has been developed with extensibility in mind, because theAPIis in a
beta state, trying to achieve a very loosly coupled software.It should be very easy to extend to support newrequestsandresources,
because each of them are managed by itself.Pygithub3 docsGithub API v3 docsFast installpip install pygithub3Fast examplefrom pygithub3 import Github

gh = Github(login='copitux', password='password')

copitux = gh.users.get()
kennethreitz = gh.users.get('kennethreitz')

copitux_repos = gh.repos.list().all()
kennethreitz_repos = gh.repos.list('kennethreitz').all()AchievementsThe coreUsers serviceRepos serviceGists serviceGit Data servicePull requests serviceOrgs serviceIssues serviceEvents serviceTODOOauth authorization API (service?)Proxy methods into resources (e.g copitux.followers)ContributeFork therepositoryWrite a test to cover new feature or to reproduce bugCode withpep8rulesAdd yourself toAUTHORSPull request it todevelopbranchTestsRunmake initto install test requirements andnoseteststo run tests.
Package: pygithub33
Pygithub3Pygithub3 is a wrapper to theGithub API v3,
written in Python.It has been developed with extensibility in mind, because theAPIis in a
beta state, trying to achieve a very loosly coupled software.It should be very easy to extend to support newrequestsandresources,
because each of them are managed by itself.Pygithub3 docsGithub API v3 docsFast installpip install pygithub3Fast examplefrom pygithub3 import Github

gh = Github(login='copitux', password='password')

copitux = gh.users.get()
kennethreitz = gh.users.get('kennethreitz')

copitux_repos = gh.repos.list().all()
kennethreitz_repos = gh.repos.list('kennethreitz').all()AchievementsThe coreUsers serviceRepos serviceGists serviceGit Data servicePull requests serviceOrgs serviceIssues serviceEvents serviceTODOOauth authorization API (service?)Proxy methods into resources (e.g copitux.followers)ContributeFork therepositoryWrite a test to cover new feature or to reproduce bugCode withpep8rulesAdd yourself toAUTHORSPull request it todevelopbranchTestsRunmake initto install test requirements andnoseteststo run tests.
Package: pygithub3-intellisense
Pygithub3Pygithub3 is a wrapper to theGithub API v3,
written in Python.It has been developed with extensibility in mind, because theAPIis in a
beta state, trying to achieve a very loosly coupled software.It should be very easy to extend to support newrequestsandresources,
because each of them are managed by itself.Pygithub3 docsGithub API v3 docsFast installpip install pygithub3Fast examplefrom pygithub3 import Github

gh = Github(login='copitux', password='password')

copitux = gh.users.get()
kennethreitz = gh.users.get('kennethreitz')

copitux_repos = gh.repos.list().all()
kennethreitz_repos = gh.repos.list('kennethreitz').all()AchievementsThe coreUsers serviceRepos serviceGists serviceGit Data servicePull requests serviceOrgs serviceIssues serviceEvents serviceTODOOauth authorization API (service?)Proxy methods into resources (e.g copitux.followers)ContributeFork therepositoryWrite a test to cover new feature or to reproduce bugCode withpep8rulesAdd yourself toAUTHORSPull request it todevelopbranchTestsRunmake initto install test requirements andnoseteststo run tests.
Package: pygithubapi
pygithubapipython3 module to call github apis in command line or inside a module and export result into mysql and later Grafana.The source for this project is available here.It's a python module that you can include in your python module or can be used in command line.python3 pygithubapi.py --help
usage: pygithubapi.py [-h] [-V] [-U USER] [-t TOKEN] [-u URL] [-a API] [-m METHOD]
                    [-J JSONFILE]

pygithubapi is a python3 program that call github apis in command line or imported as
a module

optional arguments:
-h, --help            show this help message and exit
-V, --version         Display the version of pygithubapi
-U USER, --user USER  github user
-t TOKEN, --token TOKEN
                        github token
-u URL, --url URL     github url
-a API, --api API     github api should start by a slash
-m METHOD, --method METHOD
                        should contain one of the method to use : ['DELETE', 'GET',
                        'POST', 'PUT']
-J JSONFILE, --jsonfile JSONFILE
                        json file needed for POST methodrelease notes1.0.0 initial version1.0.1 fixing issue with wrong json dependency1.0.2 fixing issue with UnboundLocalError: local variable 'response' referenced before assignment1.0.3 fixing issue with response.json()