ckan / ckanapi

A command line interface and Python module for accessing the CKAN Action API
Other
178 stars 74 forks source link

RemoteCKAN: use requests.Session #91

Closed wardi closed 8 years ago

wardi commented 8 years ago

Let's reuse a connection instead of making a new one for each action call.

wardi commented 8 years ago

This is a performance improvement but now leaves the connection open in the urllib3 pool until close() is called or automatically if RemoteCKAN is used as a context manager.

Need to update the docs, add some tests, and possibly add stubs for these methods on LocalCKAN and TestAppCKAN.