https://github.com/libninjacom/postman-py
  
  
    Postman client, generated from the OpenAPI spec 
    https://github.com/libninjacom/postman-py
  
openapi postman python
        Last synced: 5 months ago 
        JSON representation
    
Postman client, generated from the OpenAPI spec
- Host: GitHub
 - URL: https://github.com/libninjacom/postman-py
 - Owner: libninjacom
 - License: mit
 - Created: 2022-10-20T01:42:33.000Z (about 3 years ago)
 - Default Branch: master
 - Last Pushed: 2022-10-20T20:48:45.000Z (about 3 years ago)
 - Last Synced: 2025-06-20T04:04:16.720Z (5 months ago)
 - Topics: openapi, postman, python
 - Language: Python
 - Homepage: https://www.postman.com/postman/workspace/postman-public-workspace/documentation/12959542-c8142d51-e97c-46b6-bd77-52bb66712c9a
 - Size: 30.3 KB
 - Stars: 0
 - Watchers: 1
 - Forks: 0
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 - Code of conduct: CODE_OF_CONDUCT.md
 
 
Awesome Lists containing this project
README
          
Postman client, generated from the OpenAPI spec.
# Usage
```python
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
* [API Documentation](https://www.postman.com/postman/workspace/postman-public-workspace/documentation/12959542-c8142d51-e97c-46b6-bd77-52bb66712c9a)
You can see working examples of every API call in the `examples/` directory.
# Contributing
Contributions are welcome!
*Library created with [Libninja](https://www.libninja.com).*