{"id":13421653,"url":"https://github.com/numberly/flask2postman","last_synced_at":"2025-07-05T02:03:59.381Z","repository":{"id":57430099,"uuid":"41543238","full_name":"numberly/flask2postman","owner":"numberly","description":":rocket: Generate a Postman collection from your Flask application","archived":false,"fork":false,"pushed_at":"2022-09-15T20:25:29.000Z","size":156,"stargazers_count":150,"open_issues_count":5,"forks_count":19,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-29T11:48:35.850Z","etag":null,"topics":["flask","postman","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/numberly.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-28T11:12:41.000Z","updated_at":"2025-06-24T01:54:45.000Z","dependencies_parsed_at":"2022-08-26T02:42:48.253Z","dependency_job_id":null,"html_url":"https://github.com/numberly/flask2postman","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/numberly/flask2postman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberly%2Fflask2postman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberly%2Fflask2postman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberly%2Fflask2postman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberly%2Fflask2postman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numberly","download_url":"https://codeload.github.com/numberly/flask2postman/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numberly%2Fflask2postman/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262589626,"owners_count":23333236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","postman","python","python3"],"created_at":"2024-07-30T23:00:27.717Z","updated_at":"2025-07-05T02:03:59.335Z","avatar_url":"https://github.com/numberly.png","language":"Python","readme":".. _Postman: https://www.postman.com/\n.. _Flask: http://flask.pocoo.org/\n\n=============\nflask2postman\n=============\n\n.. image:: https://img.shields.io/pypi/v/flask2postman.svg\n   :target: https://pypi.python.org/pypi/flask2postman\n.. image:: https://img.shields.io/github/license/numberly/flask2postman.svg\n   :target: https://github.com/numberly/flask2postman/blob/master/LICENSE\n\n|\n\nA tool that creates a Postman_ collection from a Flask_ application.\n\n\nInstall\n=======\n\n.. code-block:: sh\n\n    $ pip install flask2postman\n\n\nExample\n=======\n\nLet's say that you have a Flask project called \"example\" (see\n:code:`example.py`), and you want to generate a Postman collection out of it.\n\nYou just need to tell :code:`flask2postman` how to import the Flask instance,\nand optionally give a name to the Postman collection:\n\n.. code-block:: sh\n\n    $ flask2postman example.app --name \"Example Collection\" --folders \u003e example.json\n\nIf you don't have a global Flask instance but rather use a function to\ninitialize your application, that works too:\n\n.. code-block:: sh\n\n    $ flask2postman example.create_app --name \"Example Collection\" --folders \u003e example.json\n\nThis will generate the JSON configuration, and write it into the\n:code:`example.json` file. You can then import this file into Postman (\"Import\nCollection\" button), and profit:\n\n.. image:: https://raw.githubusercontent.com/1000mercis/flask2postman/42d20fe89d9d1f831bbfbe6275471e624d40c488/img/screenshot.jpg\n    :alt: Postman screenshot\n\nOn a side note, you can see that endpoint's docstrings are automatically\nimported as descriptions.\n\n\nUsage\n=====\n\n.. code-block:: sh\n\n    usage: flask2postman [-h] [-n NAME] [-b BASE_URL] [-a] [-i] [-f]\n                         flask_instance\n\n    positional arguments:\n      flask_instance\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -n NAME, --name NAME  Postman collection name (default: current directory\n                            name)\n      -b BASE_URL, --base_url BASE_URL\n                            the base of every URL (default: {{base_url}})\n      -a, --all             also generate OPTIONS/HEAD methods\n      -s, --static          also generate /static/{{filename}} (Flask internal)\n      -i, --indent          indent the output\n      -f, --folders         add Postman folders for blueprints\n\n\nLicense\n=======\n\nMIT\n","funding_links":[],"categories":["Development (Debugging/Testing/Documentation)","介绍","Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumberly%2Fflask2postman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumberly%2Fflask2postman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumberly%2Fflask2postman/lists"}