Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 579 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 579 Bytes

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.