A Python package which converts a given graphql URL to a postman collection
Project description
graphql-to-postman
Generate Postman collections from GraphQL endpoints with ease.
Table of Contents
Installation
Install this package using the below command
pip install graphql-to-postman
Installation
Run the following command to generate a Postman collection via the command line:
graphql_to_postman <graphql_endpoint> [--depth <depth>] [--output <output_file_name>]
graphql_to_postman https://countries.trevorblades.com --depth 2 --output_file_name "graphql_collections"
Use the package programmatically in your Python code:
from graphql_to_postman.generate_collection import create_postman_collection
create_postman_collection(
graphql_endpoint="https://countries.trevorblades.com",
depth=2,
output_file_name="sample_output"
)
Arguments
- graphql_endpoint (required): The GraphQL endpoint URL.
- depth (optional): The depth of the schema to explore (default: 2).
- output_file_name (optional): The name of the output Postman collection file (default: collection.json).
License
graphql-to-postman is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graphql_to_postman-0.1.0.tar.gz.
File metadata
- Download URL: graphql_to_postman-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a898fb0ac31a4f3def490cc41b16bcde293bdec6385f81293421838f0665d4b
|
|
| MD5 |
2fe43fc41f0a2aa0a40144040471a114
|
|
| BLAKE2b-256 |
bf09ae023e0f928e404ef53be7cc3d9770ded1fb42691229aedef22aebd505c1
|
File details
Details for the file graphql_to_postman-0.1.0-py3-none-any.whl.
File metadata
- Download URL: graphql_to_postman-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b64a66239a122f05b544cb11c60c15bb3312b1a5ee795fba6d3d778b4f2fa9f
|
|
| MD5 |
209e7986ad61130dc8c6d64e99dbb9e2
|
|
| BLAKE2b-256 |
de0737a22bbb99328dc9eb456225fff89824fe15ed988514c506789db975e55e
|