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 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"))
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.2.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file pyGitConnect-0.1.2.tar.gz
.
File metadata
- Download URL: pyGitConnect-0.1.2.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 | 1a5ce345d5d99d8b1ff5afb46a155ffc1585fcdd04ca66633a0e817781686094 |
|
MD5 | 7fdaedf8e0fddc9beeac9b2ee14b0d7e |
|
BLAKE2b-256 | 3c89e12acd795953d0787015f68c49499c5da0e46f45e233cd361e697e081139 |
File details
Details for the file pyGitConnect-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pyGitConnect-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 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 | c02b04aaf567e3fd12bb0da5c100f59f1afd614b5ae78765bac2f95a1c19089c |
|
MD5 | 8f9a5318a41c5b0b3a08c4c909702a91 |
|
BLAKE2b-256 | 8eccef7a29a28392db98e55dd3cd39ce7e4e3bc83cc0ab15801f4a831f89e3b1 |