import os

from IPython.terminal.embed import InteractiveShellEmbed

from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security as sec

sec.VERIFY_SSL_CERT = False

apikey = os.getenv('IKOULA_API_KEY')
secretkey = os.getenv('IKOULA_SECRET_KEY')

Driver = get_driver(Provider.IKOULA)

conn = Driver(key=apikey, secret=secretkey)

shell = InteractiveShellEmbed(banner1='Hello from Libcloud Shell !!')
shell()

import os

from IPython.terminal.embed import InteractiveShellEmbed

from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver

apikey = os.getenv('IKOULA_API_KEY')
secretkey = os.getenv('IKOULA_SECRET_KEY')

Driver = get_driver(Provider.IKOULA)

conn = Driver(key=apikey, secret=secretkey)

shell = InteractiveShellEmbed(banner1='Hello from Libcloud Shell !!')
shell()

Update example, no need to disable cert validation.
docs: Update example, no need to disable cert validation.

  import os
  
  from IPython.terminal.embed import InteractiveShellEmbed
  
  from libcloud.compute.types import Provider
  from libcloud.compute.providers import get_driver
- import libcloud.security as sec
- 
- sec.VERIFY_SSL_CERT = False
  
  apikey = os.getenv('IKOULA_API_KEY')
  secretkey = os.getenv('IKOULA_SECRET_KEY')
  
  Driver = get_driver(Provider.IKOULA)
  
  conn = Driver(key=apikey, secret=secretkey)
  
  shell = InteractiveShellEmbed(banner1='Hello from Libcloud Shell !!')
  shell()
  
Update example, no need to disable cert validation.
## Code Before:
import os

from IPython.terminal.embed import InteractiveShellEmbed

from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
import libcloud.security as sec

sec.VERIFY_SSL_CERT = False

apikey = os.getenv('IKOULA_API_KEY')
secretkey = os.getenv('IKOULA_SECRET_KEY')

Driver = get_driver(Provider.IKOULA)

conn = Driver(key=apikey, secret=secretkey)

shell = InteractiveShellEmbed(banner1='Hello from Libcloud Shell !!')
shell()

## Instruction:
Update example, no need to disable cert validation.
## Code After:
import os

from IPython.terminal.embed import InteractiveShellEmbed

from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver

apikey = os.getenv('IKOULA_API_KEY')
secretkey = os.getenv('IKOULA_SECRET_KEY')

Driver = get_driver(Provider.IKOULA)

conn = Driver(key=apikey, secret=secretkey)

shell = InteractiveShellEmbed(banner1='Hello from Libcloud Shell !!')
shell()
