Signature Class
To calculate your signature first import the necessary class:
from smile_id_core import Signature
generate_sec_key method
from smile_id_core import Signature,ServerErrorconnection = Signature("<partner_id>", "<api_key>")signatureObject = connection.generate_sec_key(timestamp) # where timestamp is optional# In order to utilise the signature you can then use a json parser and extract the signature
The response will be an object:
{"sec_key": "<the generated sec key>","timestamp": "<timestamp that you passed in or that was generated>"}