netzob.Common package

Submodules

netzob.Common.CommandLine module

class CommandLine[source]

Bases: object

Reads, validates and parses the command line arguments provided by users

configure()[source]

Configure the parser based on Netzob’s usage and the definition of its options and arguments

getConfiguredParser()[source]

Return (if available) the parser configured to manage provided arguments and options by user. @return: the parser

getOptions()[source]
isInteractiveConsoleRequested()[source]

Compute and returns if the user has requested the initiation of an interactive session

parse()[source]

Read and parse the provided arguments and options

netzob.Common.DepCheck module

class DepCheck[source]

Bases: object

Dependency checker. Provides multiple static method to check is required and optionnal dependency are available.

static checkCExtensions()[source]
static checkRequiredDependency()[source]

netzob.Common.LoggingConfiguration module

LoggingConfiguration(*args, **kwargs)[source]
singleton(cls, *args, **kwargs)[source]

This decorator allows to implement some kind of Singleton design pattern. In our case, we only allow one instanciation.

netzob.Common.NetzobException module

exception NetzobException(value)[source]

Bases: Exception

Class of handling Netzob specific exceptions

exception NetzobImportException(source, message, statusCode=None, subCode=None)[source]

Bases: netzob.Common.NetzobException.NetzobException

Raised if an error was encountered while importing data

netzob.Common.all module

Module contents