flask2postman
Project description
.. _Postman: https://www.getpostman.com/
,, _Flask: http://flask.pocoo.org/
=============
flask2postman
=============
A tool that creates a Postman_ collection from a Flask_ application.
Install
=======
.. code-block:: sh
$ pip install flask2postman
Example
=======
We have a Flask project called "example", (see :code:`example.py`), and we want
to generate a Postman collection out of it.
We just need to tell :code:`flask2postman` how to import the Flask instance, and
optionally give a name to the collection:
.. code-block:: sh
$ flask2postman example.app --name "Example Collection" > example.json
This will generate the JSON configuration, and write it into the
:code:`example.json` file.
Then we just have to import this file into Postman ("Import Collection" button,
left panel, top right), and profit:
.. image:: https://raw.githubusercontent.com/1000mercis/flask2postman/master/img/screenshot.jpg
:alt: Postman screenshot
Usage
=====
.. code-block:: sh
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
,, _Flask: http://flask.pocoo.org/
=============
flask2postman
=============
A tool that creates a Postman_ collection from a Flask_ application.
Install
=======
.. code-block:: sh
$ pip install flask2postman
Example
=======
We have a Flask project called "example", (see :code:`example.py`), and we want
to generate a Postman collection out of it.
We just need to tell :code:`flask2postman` how to import the Flask instance, and
optionally give a name to the collection:
.. code-block:: sh
$ flask2postman example.app --name "Example Collection" > example.json
This will generate the JSON configuration, and write it into the
:code:`example.json` file.
Then we just have to import this file into Postman ("Import Collection" button,
left panel, top right), and profit:
.. image:: https://raw.githubusercontent.com/1000mercis/flask2postman/master/img/screenshot.jpg
:alt: Postman screenshot
Usage
=====
.. code-block:: sh
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.7.tar.gz
(3.9 kB
view details)
File details
Details for the file flask2postman-1.0.7.tar.gz
.
File metadata
- Download URL: flask2postman-1.0.7.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a47df33fa0e04070924409ceea18cefe413217f59dab648d366cbcbac2844b1 |
|
MD5 | cb3e4aada8b542a3e2830e3febdafe11 |
|
BLAKE2b-256 | d8b81951da3ce42bb7f201e24e2f7880608209eee7891ae6fe9382c710d7e57e |