Copy/paste this: https://github.com/SIMBAChainDev/simba-etl-upload-utils/blob/master/upload_utils.py#L11 If reading from file, check not expired, otherwise renew. When writing to file, write expiry datetime too.
Copy/paste this:
https://github.com/SIMBAChainDev/simba-etl-upload-utils/blob/master/upload_utils.py#L11
If reading from file, check not expired, otherwise renew.
When writing to file, write expiry datetime too.