Skip to main content

FastAPI APIs to Postman collections

Project description

https://img.shields.io/pypi/v/flask2postman.svg https://img.shields.io/github/license/numberly/flask2postman.svg

A tool that creates a Postman collection from a FastAPI application.

Inspired from flask2postman

Install

$ pip install fastapi2postman

Example

Let’s say that you have a FastAPI project called “app.py” and you want to generate a Postman collection out of it.

You just need to tell fastapi2postman

$ fastapi2postman --app app.py

If you want to change the name of the output file use –output flag, the default name is ofcousre output.json

$ fastapi2postman --app app.py --output output.json

This will generate the JSON configuration, and write it into the output.json file. You can then import this file into Postman (“Import Collection” button), and profit:

On a side note, you can see that endpoint’s docstrings are automatically imported as descriptions.

Usage

usage: fastapi2postman [-h] [--output OUTPUT] [--name NAME] [--host HOST]
                   [--port PORT] --app APP
optional arguments:
-h, --help

show this help message and exit

--output OUTPUT

Output file

--name NAME

Collection name

--host HOST

API host

--port PORT

API port

--app APP

Path to FastAPI application instance

License

MIT

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

fastapi2postman-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

fastapi2postman-0.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file fastapi2postman-0.1.2.tar.gz.

File metadata

  • Download URL: fastapi2postman-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for fastapi2postman-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6224261b8f67cd0600da10ca8b4e6dd741138438dc7009fdb897a7c74299cd99
MD5 cde4f3572ab325c3652f92dbbda8678b
BLAKE2b-256 dad21c68c0a785bba4ce4867862173f11c749f012b62d841b1939500376d715a

See more details on using hashes here.

File details

Details for the file fastapi2postman-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi2postman-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10589335ced59349dafd3c2eef7189eb4f4687a95204ca351fdb279966e26616
MD5 4805ffcef5e07fbb30cc14916475793c
BLAKE2b-256 ffdbb2485bf0eb97d1782a4a7e92c25af552fb23622036a061d1c74cf9920936

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