Skip to content
Snippets Groups Projects
Verified Commit d7ff0803 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Caosdb -> LinkAhead

parent 6b28da07
No related branches found
No related tags found
2 merge requests!143Release 0.15.0,!135Add and fix more type hints
#!/usr/bin/env python3
"""A small example to get started with caosdb-pylib.
# This file is a part of the LinkAhead Project.
#
# Copyright (C) 2024 IndiScale GmbH <info@indiscale.com>
# Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""A small example to get started with linkahead-pylib.
Make sure that a `pylinkahead.ini` is readable at one of the expected locations.
"""
import random
import linkahead as db
import caosdb as db
def reconfigure_connection():
......@@ -17,12 +35,12 @@ def reconfigure_connection():
def main():
"""Shows a few examples how to use the CaosDB library."""
"""Shows a few examples how to use the LinkAhead library."""
conf = dict(db.configuration.get_config().items("Connection"))
print("##### Config:\n{}\n".format(conf))
if conf["cacert"] == "/path/to/caosdb.ca.pem":
print("Very likely, the path the the TLS certificate is not correct, "
print("Very likely, the path to the TLS certificate is not correct, "
"please fix it.")
# Query the server, the result is a Container
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment