Source code for module.lesson_7_outlets

from dotenv import load_dotenv, find_dotenv
import avesterra as av
import orchestra.env as env
from utils import outlet_connections


[docs] def main(): # Initialize connection to AvesTerra server at IP Address load_dotenv(find_dotenv()) host = env.get_or_raise("AVESTERRA_HOST") cert_dir = env.get_or_raise("AVESTERRA_CERTIFICATE_DIR_PATH") auth = env.get_or_raise("AVESTERRA_AUTH", av.AvAuthorization) av.initialize(server=host, directory=cert_dir, socket_count=2) # Create the person person_entity = outlet_connections.outlet_connections(name="John Smith", auth=auth) print(f"person_entity: {person_entity}") av.finalize()
if __name__ == '__main__': main()