ghgql
Thin wrapper for interacting with the Github GraphQL API.
Status
Documentation
Please find the documentation and usage examples here: https://ghgql.readthedocs.io/en/latest/
Installation
$ pip install ghgql
Usage
For a more in-depth example, take a look at the example in the documentation. Here's a basic example.
import os
import fnc
import ghgql
query = """
query ($searchQuery: String!) {
search(query: $searchQuery, type: ISSUE, first: 1) {
edges {
node {
... on Issue {
id
number
title
url
}
}
}
}
}
"""
with ghgql.GithubGraphQL(token=os.getenv("GITHUB_TOKEN")) as ghapi:
result = ghapi.query(query=query, variables={"searchQuery": "llvm/llvm-project"})
print(fnc.get("search.edges", result))
Should output something like this:
[{'node': {'id': 'I_kwDOHicqdc5RG-tC',
'number': 16,
'title': 'llvm/llvm-project',
'url': 'https://github.com/KhushP786/open-sauced-goals/issues/16'}}]
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
Commit message conventions and semantic versioniong (semver)
We use semantic versioning and these commit message conventions can be used to automatically bump the version number and generate the changelog.
License
ghgql was created by Konrad Kleine. It is licensed under the terms of the MIT license.
Credits
This project was created with the help of this python packaging documentation.
ghgql was created with cookiecutter and the py-pkgs-cookiecutter template.
Metadata
Release files for ghgql 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ghgql-1.0.6.tar.gz | 5.2 kB | Without provenance | Details for ghgql-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ghgql-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for ghgql-1.0.6-py3-none-any.whl |
Total release size: 10.0 kB
Release files / ghgql-1.0.6.tar.gz
| Download URL | ghgql-1.0.6.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a672cc7637cb07ad9494b59a1073e8ec139466c4688c0f6f75ad9d7d68094f7
|
|
BLAKE2b-256 checksum How to use checksums |
11bc8bbbeb120798884048b4792b44b39590982e64c3e7682aef54135ef21b80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / ghgql-1.0.6-py3-none-any.whl
| Download URL | ghgql-1.0.6-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c21035a234939959746d123f3093f5ff08241e6f1559df583f9a63ba01da7c1
|
|
BLAKE2b-256 checksum How to use checksums |
83125567cc617c7d12e88759ade66cf6613acd628ae2b7f3e83e8720972c918c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for ghgql 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.