cyberark / conjur-api-python

Python client for the CyberArk Conjur API
Apache License 2.0
8 stars 3 forks source link

Make sdk async #7

Closed mbenita-Cyberark closed 2 years ago

mbenita-Cyberark commented 2 years ago

Desired Outcome

Sdk will be able to run in sync and async mode

Implemented Changes

We made all the Client public functions async and add the option to run initialize the client in a sync mode

You can test it by running

c = Client(conjur_data, credentials_provider=credentials_provider,
               ssl_verification_mode=SslVerificationMode.INSECURE, async_mode=False)
    print(c.login())
c = Client(conjur_data, credentials_provider=credentials_provider,
               ssl_verification_mode=SslVerificationMode.INSECURE)
    print(asyncio.run(c.login()))

Changelog

Test coverage

Documentation

Behavior

Security