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:
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
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
flask2postman-1.0.3.tar.gz
(3.7 kB
view details)
File details
Details for the file flask2postman-1.0.3.tar.gz
.
File metadata
- Download URL: flask2postman-1.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90ef5b48fe10108c3fefdbd3de894e2a4d2e98db0093a0beeb27a905b28533a3 |
|
MD5 | ecf7c70ea91192b41e71818f9780bd93 |
|
BLAKE2b-256 | 44618318bde937fe8b1fafd3b4a207cc7ce66d8f7014a643c9884bd50eb6fdcf |