def config_mongo():
    mongo_setup.global_init(
        'the_db_admin',
        'the-password-3809b81f-ba37-403d-8013-a1ebaf13cf94',
        10001,
        '107.170.211.24'
    )
Beispiel #2
0
def config_mongo():
    mongo_setup.global_init()
Beispiel #3
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
import logging

import cattle
from nosql import mongo_setup

logging.basicConfig(filename="load_animals.log",
                    format="%(asctime)s %(levelname)s:%(message)s",
                    filemode="w",
                    level=logging.DEBUG,
                    datefmt="%m/%d/%Y %I:%M:%S %p")

mongo_setup.global_init()

# db = connect("cattle")
#
cattle.load_pastures(r"data/pastures.csv")
cattle.load_breeds(r"data/breeds.csv")
cattle.load_animals(r"data/animals.csv")
cattle.load_parents(r"data/animals.csv")
cattle.load_children()
cattle.load_treatments(r"data/treatments.csv")
cattle.load_pregnancy_check(r"data/pregnancy_checks.csv")
cattle.load_measurements(r"data/measurements.csv")

# cattle.assign_preg_check()

cattle.load_contacts(r"data/contacts.csv")
cattle.load_breedings(r"data/breedings.csv")
def config_mongo():
    mongo_setup.global_init()
Beispiel #5
0
def config_mongo():
    mongo_setup.global_init(
        'the_db_admin', 'the-password-3809b81f-ba37-403d-8013-a1ebaf13cf94',
        10001, '107.170.211.24')
Beispiel #6
0
def startup():
    mongo_setup.global_init()
def config_mongo():
    mongo_setup.global_init(
        'the_db_admin', 'the-password-16de3b03-8504-44f9-9505-af1dc70436c4',
        10001, '138.68.104.69')