Skip to main content

A Python package which converts a given graphql URL to a postman collection

Project description

graphql-to-postman

PyPI - Python 3.12.5


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphql_to_postman-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graphql_to_postman-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for graphql_to_postman-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1a898fb0ac31a4f3def490cc41b16bcde293bdec6385f81293421838f0665d4b
MD5 2fe43fc41f0a2aa0a40144040471a114
BLAKE2b-256 bf09ae023e0f928e404ef53be7cc3d9770ded1fb42691229aedef22aebd505c1

See more details on using hashes here.

File details

Details for the file graphql_to_postman-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for graphql_to_postman-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b64a66239a122f05b544cb11c60c15bb3312b1a5ee795fba6d3d778b4f2fa9f
MD5 209e7986ad61130dc8c6d64e99dbb9e2
BLAKE2b-256 de0737a22bbb99328dc9eb456225fff89824fe15ed988514c506789db975e55e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page