a small python library to get code from github repositories.
Project description
Get code from GitHub
this is a small python library to get code from github repositories
How to install
pip3 install get_github_code
Usage
is easy to use
from get_github_code import get_code
code = get_code(
user="Vlad2030",
repo="get-code-from-github",
branch="main",
file_path="VERSION",
)
print(code)
# 0.1
or asynchronous
import asyncio
from get_github_code import async_get_code
async def main() -> None:
code = await async_get_code(
user="Vlad2030",
repo="get-code-from-github",
branch="main",
file_path="VERSION",
)
print(code)
asyncio.run(main())
# 0.1
additionally you can through the class by calling property
import asyncio
from get_github_code import GetCode
file = GetCode(
user="Vlad2030",
repo="get-code-from-github",
branch="main",
file_path="VERSION",
)
print(file.get_code)
# 0.1
async def main() -> None:
file = GetCode(
user="Vlad2030",
repo="get-code-from-github",
branch="main",
file_path="VERSION",
)
print(file.async_get_code)
asyncio.run(main())
# 0.1
Documentation
2023, version 0.0.1
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
get_github_code-0.1.tar.gz
(16.3 kB
view hashes)
Built Distribution
Close
Hashes for get_github_code-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b4fd1b58ba3a0750752840e035bf80de102bc611e8fb4671e001affd1fe5813 |
|
MD5 | 6bc0bd4cf2c307e7d8f7bd5d653d384a |
|
BLAKE2b-256 | 435f82dc45aed2d8ff60fd64ee4ec9e7ca97a41136f1c41615555ab01e843276 |