diff --git a/.env b/.env new file mode 100644 index 0000000..84867b6 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +PASSWORD_ARANGO=gogkud-4kebkU-memhys \ No newline at end of file diff --git a/__pycache__/arango_ev_class.cpython-312.pyc b/__pycache__/arango_ev_class.cpython-312.pyc new file mode 100644 index 0000000..ca8db37 Binary files /dev/null and b/__pycache__/arango_ev_class.cpython-312.pyc differ diff --git a/arango_ev_class.py b/arango_ev_class.py index 289b64a..62290b3 100644 --- a/arango_ev_class.py +++ b/arango_ev_class.py @@ -7,19 +7,18 @@ load_dotenv() # Install with pip install python-dotenv class ArangoDB: - class ArangoEVClass: - def __init__(self, db_name): - """ - Initializes an instance of the ArangoEVClass. + def __init__(self): + """ + Initializes an instance of the ArangoEVClass. - Args: - db_name (str): The name of the database. - username (str): The username for authentication. - password (str): The password for authentication. - """ - password = os.getenv("PASSWORD_ARANGO") - self.client = ArangoClient(hosts='https://arango.lasseedfast.se') - self.db = self.client.db(db_name, username='dataharvest', password=password) + Args: + db_name (str): The name of the database. + username (str): The username for authentication. + password (str): The password for authentication. + """ + password = os.getenv("PASSWORD_ARANGO") + self.client = ArangoClient(hosts='https://arango.lasseedfast.se') + self.db = self.client.db('ev_dataharvest', username='dataharvest', password=password) def all_ev_speeches(self):