Postman client, generated from the OpenAPI spec.
Project description
Postman client, generated from the OpenAPI spec.
Usage
import os
from postman_api import AsyncPostmanClient
from postman_api import PostmanClient
def main():
client = PostmanClient.from_env()
response = client.get_all_apis()
print(f"{response!r}")
async def async_main():
client = AsyncPostmanClient.from_env()
response = await client.get_all_apis()
print(f"{response!r}")
if __name__ == "__main__":
if os.environ.get("ASYNC"):
import asyncio
asyncio.run(async_main())
else:
main()
This example loads configuration from environment variables, specifically:
POSTMAN_API_KEY
Documentation
You can see working examples of every API call in the examples/
directory.
Contributing
Contributions are welcome!
Library created with Libninja.
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
postman_api-3.0.0.tar.gz
(21.4 kB
view hashes)
Built Distribution
Close
Hashes for postman_api-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d01c32489b9f0f6fc876544185175ed24729b4417b14794f371f4deed693bb2d |
|
MD5 | d9355de75794599830ab676b024a4839 |
|
BLAKE2b-256 | 7345bdf97926ed997d5bf19e0a1efc6fae249f3e505ee805f84535bb585849fc |