github-cat


Namegithub-cat JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://www.linkedin.com/in/chandlersong/
Summarygithub tools
upload_time2024-11-10 15:33:31
maintainerNone
docs_urlNone
authorchandler song
requires_pythonNone
licenseMIT
keywords github api tool by token
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Introduction
## Install package
```shell
pip install github_cat
```

##  Example Usage:

```python
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')

```

```python
# 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()

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.linkedin.com/in/chandlersong/",
    "name": "github-cat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "github api tool by token",
    "author": "chandler song",
    "author_email": "275737875@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/53/82/a7050d5af7bab8c14ca9ceb28193f7ce3258fa09558f9a7d109e3a9a6558/github_cat-0.0.3.tar.gz",
    "platform": "all",
    "description": "# Introduction\r\n## Install package\r\n```shell\r\npip install github_cat\r\n```\r\n\r\n##  Example Usage:\r\n\r\n```python\r\nfrom github_cat.repos import GithubCrawler\r\n\r\n# Define the GitHub API tokens here\r\ntokens = [\"your_token_1\", \"your_token_2\"]  # Replace with actual tokens\r\n\r\ncrawler = GithubCrawler(tokens)\r\ncrawler.crawl_user_repos('milvus-io')\r\n\r\n```\r\n\r\n```python\r\n# GitCommitter.excel_process\r\nfrom github_cat.GitCommitter import excel_process\r\ninput_folder = r'./shortlog/google'\r\noutput_folder = './output'\r\nexcel_process.merge_excel_files(input_folder, output_folder)\r\n\r\n\r\nfrom github_cat.GitCommitter import download_repos\r\ngit_url = \"https://github.com/dockur/macos\"\r\ndownload_repos.git_clone_and_shortlog(git_url)\r\n\r\n\r\nfrom github_cat.GitCommitter import git_processor\r\n# def main(file_path):\r\n#     urls = read_file_to_list(file_path)\r\n#     exclude_urls = read_file_to_list('./files/exclude_urls.txt')\r\n# \r\n#     for url in urls:\r\n#         if url in exclude_urls:\r\n#             print(f\"Skipping {url}\")\r\n#             continue\r\n#         process_repo(url)\r\n\r\ngit_processor.main('./files/vector.txt')\r\n    \r\nurls = git_processor.read_file_to_list('./files/test.txt')\r\nfor url in urls:\r\n    print(url)\r\n    processor = git_processor.GitRepoProcessor(url)\r\n    processor.run()\r\n\r\n\r\n# \u793a\u4f8b\u7528\u6cd5\r\ngit_url = \"https://github.com/test/test\"\r\nprocessor = git_processor.GitRepoProcessor(git_url)\r\nprocessor.run()\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "github tools",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://www.linkedin.com/in/chandlersong/"
    },
    "split_keywords": [
        "github",
        "api",
        "tool",
        "by",
        "token"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5382a7050d5af7bab8c14ca9ceb28193f7ce3258fa09558f9a7d109e3a9a6558",
                "md5": "3949d8926117ecf5e30463c3da3a961f",
                "sha256": "2b1a0543ca868449f69ebfb5d9bed8b9ae2d95ec1f9110d4141f6555b83df4d0"
            },
            "downloads": -1,
            "filename": "github_cat-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "3949d8926117ecf5e30463c3da3a961f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7801,
            "upload_time": "2024-11-10T15:33:31",
            "upload_time_iso_8601": "2024-11-10T15:33:31.709466Z",
            "url": "https://files.pythonhosted.org/packages/53/82/a7050d5af7bab8c14ca9ceb28193f7ce3258fa09558f9a7d109e3a9a6558/github_cat-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-10 15:33:31",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "github-cat"
}
        
Elapsed time: 0.77277s