graphenum

Introspect a GraphQL endpoint and generate his specification schema with path enumeration.
Getting Started
It takes only two simple steps to introspect an endpoint using graphenum.
pip install graphenum
graphenum -u https://example.com/graphql -o schema.json
Options
GraphEnum supports the following options:
graphenum \
# url of the GraphQL endpoint
-u/--url https://example.com/graphql \
# input schema file (raw GraphQL schema)
-s/--schema-path schema.json \
# output file name
-o/--output-schema schema.json \
# verbose output
-v/--verbose
Environment Variables
Logger - No effect if you pass your own logger
| Name | Values | Default | Behavior |
|---|---|---|---|
LOG_FORMAT |
console, json |
console |
Change the log format accordingly |
DEBUG |
True, False |
False |
Enable debug logging |
Integration
import logging
from typing import Callable, Dict, Optional, List, Tuple
from graphenum import IntrospectionSchema
from graphenum.entities.internal import Callbacks
async def async_introspect( / def introspect(
url: str,
logger: Optional[logging.Logger] = None,
headers: Optional[Dict[str, str]] = None,
verbose_mode: bool = False,
schema_path: Optional[str] = None,
callbacks: Optional[Dict[Callbacks, List[Callable]]] = None,
json_encode: bool = False
) -> Tuple[IntrospectionSchema, aiohttp.ClientResponse]:
...
Local installation
git clone git@github.com:Escape-Technologies/graphenum.git
cd graphenum
chmod +x ./install-dev.sh
./install-dev.sh
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License 
Metadata
Release files for graphenum 0.0.3
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 |
|---|---|---|---|---|
| graphenum-0.0.3.tar.gz | 12.9 kB | Without provenance | Details for graphenum-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| graphenum-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for graphenum-0.0.3-py3-none-any.whl |
Total release size: 30.2 kB
Release files / graphenum-0.0.3.tar.gz
| Download URL | graphenum-0.0.3.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fc32debb7bdb376257311faaa7ba38bde97e83405799bef5af3ea91b966c388
|
|
BLAKE2b-256 checksum How to use checksums |
22d806e47b155309baefd2a24b2b31b2a3e4502837286cb59260359328b5eca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / graphenum-0.0.3-py3-none-any.whl
| Download URL | graphenum-0.0.3-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ba57a25ed70a33f715813eecb7437158852944917955435010b3507535b411b
|
|
BLAKE2b-256 checksum How to use checksums |
d5d64a535b8dd2ca8b471b9cceafbcfa10aab9efc989b3c044890998cb949d26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Security for graphenum 0.0.3
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.