Skip to main content

github tools

Project description

Introduction

Install package

pip install github_cat

Example Usage:

from github_cat.repos import GithubCrawler

# Define the GitHub API tokens here
tokens = ["your_token_1", "your_token_2"]  # Replace with actual tokens

crawler = GithubCrawler(tokens)
crawler.crawl_user_repos('milvus-io')
# GitCommitter.excel_process
from github_cat.GitCommitter import excel_process
input_folder = r'./shortlog/google'
output_folder = './output'
excel_process.merge_excel_files(input_folder, output_folder)


from github_cat.GitCommitter import download_repos
git_url = "https://github.com/dockur/macos"
download_repos.git_clone_and_shortlog(git_url)


from github_cat.GitCommitter import git_processor
# def main(file_path):
#     urls = read_file_to_list(file_path)
#     exclude_urls = read_file_to_list('./files/exclude_urls.txt')
# 
#     for url in urls:
#         if url in exclude_urls:
#             print(f"Skipping {url}")
#             continue
#         process_repo(url)

git_processor.main('./files/vector.txt')
    
urls = git_processor.read_file_to_list('./files/test.txt')
for url in urls:
    print(url)
    processor = git_processor.GitRepoProcessor(url)
    processor.run()


# 示例用法
git_url = "https://github.com/test/test"
processor = git_processor.GitRepoProcessor(git_url)
processor.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github_cat-0.0.3.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file github_cat-0.0.3.tar.gz.

File metadata

  • Download URL: github_cat-0.0.3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for github_cat-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2b1a0543ca868449f69ebfb5d9bed8b9ae2d95ec1f9110d4141f6555b83df4d0
MD5 3949d8926117ecf5e30463c3da3a961f
BLAKE2b-256 5382a7050d5af7bab8c14ca9ceb28193f7ce3258fa09558f9a7d109e3a9a6558

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page