Someting abount base.auth() in python

If I want to access many bases, should I begin many base.auth()?
The scripts open many socket waiting? never close?

Yes.

We will add a base.close() function soon.

Could Daniel answer your question? As this is not a bug, I’m moving this topic to General.

How can I stop base.auth() normally without base.close() function?

When your script exit, the connections will be closed.

My previous answers are wrong. APIs in Python SDK will open a HTTP connection during the call and clone the connection when the call is done. There is no permanent opened connections. So you don’t need to worry about opened sockets.

base.auth() will get access token via HTTP and store it in memory.

1 Like