Skip to content

nirum-lang/nirum-python-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)