Skip to main content

A tool that creates a Postman configuration from a Flask application.

Project description

A tool that creates a Postman configuration from a Flask application.

Install

$ pip install flask2postman

Example

See example.py for the example application.

$ flask2postman example.app --name "Example Collection" > example.json

It will write the generated JSON configuration into a example.json file, then you just have to import than file into Postman (“Import Collection” button, left panel, top right), and profit:

Postman screenshot

Usage

usage: flask2postman [-h] [-n NAME] [-b BASE_URL] [-a] flask_instance

positional arguments:
  flask_instance

optional arguments:
  -h, --help            show this help message and exit
  -n NAME, --name NAME  Postman collection name (default: current directory
                        name)
  -b BASE_URL, --base_url BASE_URL
                        the base of every URL (default: {{base_url}})
  -a, --all             also generate OPTIONS/HEAD methods

License

MIT

Download files

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

Source Distribution

flask2postman-1.0.6.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file flask2postman-1.0.6.tar.gz.

File metadata

File hashes

Hashes for flask2postman-1.0.6.tar.gz
Algorithm Hash digest
SHA256 296f2cb3b778651ba6b228501647b1d1fda1dea7195a8b208065e80f1da5c0db
MD5 ce255444db4ad09e9b9ab6a1bf08fc24
BLAKE2b-256 ce0d6fe46fc1e533e4e9eee5b9639eef831616132ee3c0aa8bafa881352b9415

See more details on using hashes here.

Supported by

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