🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

githubgql

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

githubgql

Python library for GraphQL API interactions on Github Actions

0.0.8.0
Maintainers
1

githubgql

Python library for GraphQL API interactions on Github Actions.

Basic example:

from githubgql import githubgql

QUERY = """
query { 
  repository(owner: "github", name: "docs") {
    name
  }
}
"""

token = os.environ.get('BOT_TOKEN', None)

result = githubgql.graphql(QUERY, token)

More detailed examples are present in the source.

Packaged using tutorial on packaging.python.org. Uses gh-action-pypi-publish for automatic publishing.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts