#!/usr/bin/env python3
""" 8-main """
from pymongo import MongoClient
from os import environ

USER_MONGO = environ['USER_MONGO']
PASSWORD = environ['PASSWORD']
DB_MONGO = environ['DB_MONGO']
STRING_CONNECTION = F'mongodb+srv://{USER_MONGO}:{PASSWORD}@cluster0.idafl.mongodb.net/{DB_MONGO}?retryWrites=true&w=majority'


def mongo_client():
    """Create an conection to mongo atlas server."""
    return MongoClient(STRING_CONNECTION)

6ca2d30af3662f3648a8798d67b61db3aff6d193
<mask token>

<mask token>


def mongo_client():
    """Create an conection to mongo atlas server."""
    return MongoClient(STRING_CONNECTION)

<mask token>
USER_MONGO = environ['USER_MONGO']
PASSWORD = environ['PASSWORD']
DB_MONGO = environ['DB_MONGO']
STRING_CONNECTION = (
    f'mongodb+srv://{USER_MONGO}:{PASSWORD}@cluster0.idafl.mongodb.net/{DB_MONGO}?retryWrites=true&w=majority'
    )


def mongo_client():
    """Create an conection to mongo atlas server."""
    return MongoClient(STRING_CONNECTION)

<mask token>
from pymongo import MongoClient
from os import environ
USER_MONGO = environ['USER_MONGO']
PASSWORD = environ['PASSWORD']
DB_MONGO = environ['DB_MONGO']
STRING_CONNECTION = (
    f'mongodb+srv://{USER_MONGO}:{PASSWORD}@cluster0.idafl.mongodb.net/{DB_MONGO}?retryWrites=true&w=majority'
    )


def mongo_client():
    """Create an conection to mongo atlas server."""
    return MongoClient(STRING_CONNECTION)

#!/usr/bin/env python3
""" 8-main """
from pymongo import MongoClient
from os import environ

USER_MONGO = environ['USER_MONGO']
PASSWORD = environ['PASSWORD']
DB_MONGO = environ['DB_MONGO']
STRING_CONNECTION = F'mongodb+srv://{USER_MONGO}:{PASSWORD}@cluster0.idafl.mongodb.net/{DB_MONGO}?retryWrites=true&w=majority'


def mongo_client():
    """Create an conection to mongo atlas server."""
    return MongoClient(STRING_CONNECTION)
