Socket
Socket
Sign inDemoInstall

pygitconnect

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pygitconnect

Simple API interface for more convenient work with GitHub service


Maintainers
1

pyGitConnect

Python module for more convenient work with GitHub.

Downloads Downloads Downloads Supported Versions PyPI PyPi GitHub top language GitHub last commit
GitHub Release Date

GitHub Repo stars

Example of use

import pyGitConnect

# Creating User-object
userGitHub = pyGitConnect.User(
    token="YOUR_TOKEN",
    username="YOUR_USERNAME_ON_GITHUB",
    email="YOUR_EMAIL_ON_GITHUB"
)

# conneting to file on GitHub
file = pyGitConnect.File(userGitHub, "repositoryName/branchName/path/to/your/file.txt")
# getting readable text from file on GitHub
print(file.get().decode("UTF-8"))

# reading file from your drive
newFile = pyGitConnect.NewFile(userGitHub, "B:\\GITHUB\\path\\to\\script.py")
# pushing new file to your repository on GitHub
print(newFile.push("repositoryName/branchName/path/to/your/script/"))

# connecting to uploaded file
uploadedFile = pyGitConnect.File(userGitHub, "repositoryName/branchName/path/to/your/script/script.py")
# printing readable content from uploaded file
print(uploadedFile.get().decode("UTF-8"))

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc