Simple API interface for more convenient work with GitHub service
Project description
pyGitConnect
Python module for more convenient work with GitHub.
Example of use
import pyGitConnect
# Creating Ures-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"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyGitConnect-0.1.1.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file pyGitConnect-0.1.1.tar.gz
.
File metadata
- Download URL: pyGitConnect-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0251c06b879596a015063c8c5b5d499b1065927e5005f6e655829632970eb1ed |
|
MD5 | ad37f3a77fa32160295e71a18f28162b |
|
BLAKE2b-256 | a79ecf8695f984068696752756c0c523aa1f3d96889572bd871332cf44306353 |
File details
Details for the file pyGitConnect-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pyGitConnect-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55a7465d9d91ff528d90054dd6196ee0c1b8cac0114b4174c859c0ed4c80dd18 |
|
MD5 | 6f235905ac721b69d98913ec49f47bd2 |
|
BLAKE2b-256 | e9c9cb913da3cc90eeda653d99ee4ffb85377e0c1878e46de77cccf5e250ad04 |