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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file postman_api-3.0.0.tar.gz.

File metadata

  • Download URL: postman_api-3.0.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for postman_api-3.0.0.tar.gz
Algorithm Hash digest
SHA256 7371e67c9263542726995614c1a1b478ac8b85dbdbb1baf8db1e4310ac347cdc
MD5 44b0f0c42b2d695e56ce4af0ac458fe4
BLAKE2b-256 4073eba3bb60e0e37bf612ecb01b4bfc3c3977aaecb882fbcd87dd6bd8fed861

See more details on using hashes here.

File details

Details for the file postman_api-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: postman_api-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for postman_api-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d01c32489b9f0f6fc876544185175ed24729b4417b14794f371f4deed693bb2d
MD5 d9355de75794599830ab676b024a4839
BLAKE2b-256 7345bdf97926ed997d5bf19e0a1efc6fae249f3e505ee805f84535bb585849fc

See more details on using hashes here.

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