alluxio-py
alluxio-py copied to clipboard
Alluxio client as context manager that closes session.
Ideally, shouldn't the Alluxio Client
be used as a context manager that opens the requests.Session()
as a context manager and closes this session properly (closing all the connection adapters) when the Client exits?
Currently the session object is kept open.
I'm happy to create and submit a PR if this would indeed be better practice.