Connect to a Database using the Python Client

TerminusCMS

If you have created a Team in TerminusCMS, and put an API key in your environment you can connect to an existing database in the following way:

team = "MyTeam",
client.connect(db="nuclear", team=team, use_token=True)

TerminusDB

You can connect to a database with basic authorization just by using the connect member function.

team = "MyTeam",
client.connect(db="nuclear")

If you want to connect as a specific user and with a specific password, you can pass them here:

team = "MyTeam",
client.connect(db="nuclear", team=team, key="your_password")