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.2
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.2
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.2
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.2
Documentation
2023, version 0.2
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.2.tar.gz
(16.4 kB
view hashes)
Built Distribution
Close
Hashes for get_github_code-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6322a83c57be947d3a1c90d56c60528d8250bec6e2e8fc335047c48b4d351116 |
|
MD5 | e858e52f35952d6a3c85abd292b53743 |
|
BLAKE2b-256 | 2c328d900a1b65fb52ef17cd84902be2e0eddf06088b91390001187b50c8a060 |