Name | python-postman JSON |
Version |
0.3.0
JSON |
| download |
home_page | |
Summary | Pypostman allows users to parse postman environments and postman collections. |
upload_time | 2023-07-08 04:34:34 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.8 |
license | MIT |
keywords |
postman
python-postman
pypostman
api
requests
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Python Postman
**pypostman** is a command-line interface that allows to `automate` multiple api calls from postman collections, additionally it also allow you to `compress` and `save` the response to a local directory or to an AWS S3 bucket.
Thereby allowing you to manage your api calls using postman, then `automate` and `process` their response using python.
Example:
```
from pypostman.postman import Postman
from pypostman.modules.http import Request
postman = Postman()
collections_dir = "../collections"
collections = postman._get_collections(dir=collections_dir)
pokeapi_collection = postman._get_collection(name="PokeAPI", collections=collections)
pokeapi_requests = postman._get_requests(collection=pokeapi_collection)
def pokemon(self, **kwargs):
# Make an API request.
# The request name should match the Postman request name.
name = "/pokemon"
pokemon = postman._get_request(name=name, requests=pokeapi_requests)
prepared_request: Request = Request(request=pokemon)
prepared_request.set_path_vars(kwargs)
prepared_request.set_params(kwargs)
response = prepared_request.send
return response
```
## What is Included?
- The **pypostman** source code.
- collections
- Coinmarketcap.postman_collection.json
- PokeAPI.postman_collection.json
- models
- coinmarketcap_example.py
- pokeapi_example.py
### Included Modules
- file.py
- http.py
- logger.py
## Installation
### Python >= 3.8
Pypi Test:
```
pip install -i https://test.pypi.org/simple/ python-postman
```
Pypi (Not implemented Yet):
```
pip install python-postman
```
## How to Use It
See examples.
Raw data
{
"_id": null,
"home_page": "",
"name": "python-postman",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "postman,python-postman,pypostman,api,requests",
"author": "",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/03/cc/8c924e440c9cff371beb8ca28db0ec4716c354d25a385319c74922d8c876/python-postman-0.3.0.tar.gz",
"platform": null,
"description": "# Python Postman\n\n**pypostman** is a command-line interface that allows to `automate` multiple api calls from postman collections, additionally it also allow you to `compress` and `save` the response to a local directory or to an AWS S3 bucket.\nThereby allowing you to manage your api calls using postman, then `automate` and `process` their response using python.\n\nExample:\n\n```\nfrom pypostman.postman import Postman\nfrom pypostman.modules.http import Request\n\npostman = Postman()\n\ncollections_dir = \"../collections\"\ncollections = postman._get_collections(dir=collections_dir)\npokeapi_collection = postman._get_collection(name=\"PokeAPI\", collections=collections)\npokeapi_requests = postman._get_requests(collection=pokeapi_collection)\n\ndef pokemon(self, **kwargs):\n # Make an API request.\n # The request name should match the Postman request name.\n name = \"/pokemon\"\n pokemon = postman._get_request(name=name, requests=pokeapi_requests)\n prepared_request: Request = Request(request=pokemon)\n prepared_request.set_path_vars(kwargs)\n prepared_request.set_params(kwargs)\n response = prepared_request.send\n return response\n```\n## What is Included?\n\n- The **pypostman** source code.\n- collections\n - Coinmarketcap.postman_collection.json\n - PokeAPI.postman_collection.json\n- models\n - coinmarketcap_example.py\n - pokeapi_example.py\n\n### Included Modules\n- file.py\n- http.py\n- logger.py\n\n## Installation\n\n### Python >= 3.8\n\nPypi Test:\n ```\n pip install -i https://test.pypi.org/simple/ python-postman\n ```\nPypi (Not implemented Yet):\n ``` \n pip install python-postman\n ```\n\n## How to Use It\n\nSee examples.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Pypostman allows users to parse postman environments and postman collections.",
"version": "0.3.0",
"project_urls": null,
"split_keywords": [
"postman",
"python-postman",
"pypostman",
"api",
"requests"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "193ada466ea6624fa29e1c3432ea80b29382fe50250897718318eaaaf63d9441",
"md5": "4001e8b6f5a8dc080f0ca5a7bdaccb50",
"sha256": "d906ffcaee8555bffc1acec3a02ff5270ef4c7cce8cfab07166345b56e448a68"
},
"downloads": -1,
"filename": "python_postman-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4001e8b6f5a8dc080f0ca5a7bdaccb50",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 18881,
"upload_time": "2023-07-08T04:34:32",
"upload_time_iso_8601": "2023-07-08T04:34:32.487356Z",
"url": "https://files.pythonhosted.org/packages/19/3a/da466ea6624fa29e1c3432ea80b29382fe50250897718318eaaaf63d9441/python_postman-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "03cc8c924e440c9cff371beb8ca28db0ec4716c354d25a385319c74922d8c876",
"md5": "f3211d14503fed4cb0693b6f7c98b08f",
"sha256": "a4a0e1270e8db7b842ef6c869d5a839e04d6b101db79da0e99027e293c640570"
},
"downloads": -1,
"filename": "python-postman-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "f3211d14503fed4cb0693b6f7c98b08f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 18782,
"upload_time": "2023-07-08T04:34:34",
"upload_time_iso_8601": "2023-07-08T04:34:34.224678Z",
"url": "https://files.pythonhosted.org/packages/03/cc/8c924e440c9cff371beb8ca28db0ec4716c354d25a385319c74922d8c876/python-postman-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-08 04:34:34",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "python-postman"
}