Skip to main content

Postman client, generated from the OpenAPI spec.

Project description

GitHub Contributors Stars Build Status Downloads Pypi

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


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)

Uploaded Source

Built Distribution

postman_api-3.0.0-py3-none-any.whl (18.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page