yawning_titan.networks.network_db.NetworkSchema#

class yawning_titan.networks.network_db.NetworkSchema[source]#

Bases: YawningTitanDBSchema

A schema-like class that defines the network DB fields.

Fields are defined using the YawningTitanQuery class so that schema paths can be used directly within tinydb.table.Table.search() function calls. All fields are mapped to a property in the Network class.

Example:

>>> from yawning_titan.networks.network_db import NetworkDB, NetworkSchema
>>> db = NetworkDB()
>>> network_configs = db.search(NetworkSchema.SET_RANDOM_ENTRY_NODES == True)

Methods

Attributes

NODE_VULNERABILITY_LOWER_BOUND

The YawningTitanQuery class extends tinydb.queries.Query.

NODE_VULNERABILITY_UPPER_BOUND

The YawningTitanQuery class extends tinydb.queries.Query.

NUM_OF_RANDOM_ENTRY_NODES

The YawningTitanQuery class extends tinydb.queries.Query.

NUM_OF_RANDOM_HIGH_VALUE_NODES

The YawningTitanQuery class extends tinydb.queries.Query.

RANDOM_ENTRY_NODE_PREFERENCE

The YawningTitanQuery class extends tinydb.queries.Query.

RANDOM_HIGH_VALUE_NODE_PREFERENCE

The YawningTitanQuery class extends tinydb.queries.Query.

SET_RANDOM_ENTRY_NODES

The YawningTitanQuery class extends tinydb.queries.Query.

SET_RANDOM_HIGH_VALUE_NODES

The YawningTitanQuery class extends tinydb.queries.Query.

SET_RANDOM_VULNERABILITIES

The YawningTitanQuery class extends tinydb.queries.Query.