Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.13 KB

README.rst

File metadata and controls

37 lines (25 loc) · 1.13 KB

Nirum HTTP transport for Python

Build status Latest PyPI version

This package provides an HTTP transport for nirum-python.

from youtservice import YourService_Client
from nirum_http import HttpTransport

transport = HttpTransport('https://service-host/')
client = YourService_Client(transport)

Since HttpTransport utilizes requests library under the hood, it can take a session object as well:

from requests import Session

session = Session()
session.auth = ('user', 'password')
transport = HttpTransport('https://service-host/', session=session)