owmeta_core package

owmeta_core

owmeta-core is a platform for sharing relational data over the internet.

exception owmeta_core.ConnectionFailError(cause, *args)[source]

Bases: Exception

Thrown when a connection fails

class owmeta_core.Connection(configFile=None, conf=None, mapper=None)[source]

Bases: object

Connection to an owmeta_core database. Essentially, wraps a Data object.

Load desired configuration and open the database

Parameters
configFilestr, optional

The configuration file for owmeta_core.

confdict, Configuration, Data, optional

A configuration object for the connection. Takes precedence over configFile

mapperowmeta_core.mapper.Mapper

Provides the mapper for this connection

Returns
Connection

connection wrapping the configuration

disconnect()[source]

Close the database and stop listening to module loaders

transaction()[source]

Context manager that executes the enclosed code in a transaction and then closes the connection. Provides the connection for binding with as.

identifier

Identifier for this connection.

Primarily, so that this Connection can be passed to contextualize for a Context

property transaction_manager

TransactionManager for the connection

owmeta_core.connect

alias of Connection

owmeta_core.disconnect(c=None)[source]

Close the connection.

Deprecated: Just calls disconnect on the given connection

owmeta_core.OWMETA_PROFILE_DIR = '~/.owmeta'

Base directory in the user’s profile for owmeta (e.g., shared configuration, bundle cache)

Subpackages

Submodules