Skip to main content

List collaborators for all of a user's repositories.

Project description

githubcollaborators

This is a very simple tool. It takes a GitHub username & Personal Access Token, and returns a JSON with the collaborators on the user's GitHub repos, where there are collaborators.

Personal Access Token

Should be generated from https://github.com/settings/tokens

Requires the following permissions:

  • repo ("Full control of private repositories")
  • admin:org -> read:org ("Read or and team membership, read org projects")
  • user -> read:user ("Read all user profile data")

Standalone

pip install githubcollaborators
githubcollaborators -u <your-github-username> -t <github-personal-access-token> -o output.json

Full options:

usage: githubcollaborators [-h] -u USERNAME [-t TOKEN] [-v VISIBILITY]
                           [-o OUTPUT] [--verbose]

List collaborators for all repositories for the given user. Might take a while
to run, be patient.

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        GitHub username
  -t TOKEN, --token TOKEN
                        Personal Access Token for the specified GitHub
                        username. Requires following permissions: repo("Full
                        control of private repositories"), admin: org -> read:
                        org("Read or and team membership, read org projects"),
                        user -> read: user("Read all user profile data")
  -v VISIBILITY, --visibility VISIBILITY
                        Visibility level of the repositories, can be: all,
                        public, or private
  -o OUTPUT, --output OUTPUT
                        Save to specified output file
  --verbose             Set logging level to INFO

As a library

from githubcollaborators import githubcollaborators

print(githubcollaborators(<your_username>, <your_personal_access_token>))

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

githubcollaborators-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

githubcollaborators-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file githubcollaborators-0.0.1.tar.gz.

File metadata

  • Download URL: githubcollaborators-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9

File hashes

Hashes for githubcollaborators-0.0.1.tar.gz
Algorithm Hash digest
SHA256 eaac8e2f8ffefa522db7eb2360cb31ded18e830f90bd840d32ea45e09c43181c
MD5 9d169a1c67a4b22433c863cab75bdfd4
BLAKE2b-256 903a0e70f4c0c53f982d596b26b6590f2b5e85f5aec4063057f277a346fd67bd

See more details on using hashes here.

File details

Details for the file githubcollaborators-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: githubcollaborators-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.9

File hashes

Hashes for githubcollaborators-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3398ef2d5b5d3426afe71c618719a4d0dbb3d49f44585b08e1863d414648fe93
MD5 23d66cc9f8f16fb80aef8f94ab8981e4
BLAKE2b-256 78902516231a53f43f831d1a4adc843b5e1c42a40deb9f272b8ba291c98fb0b6

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