libioc.Types module

custom iocage types.

class libioc.Types.AbsolutePath(sequence)[source]

Bases: libioc.Types.Path

Wrapper Type for ensuring a str matches an absolute Unix Path.

class libioc.Types.Path(sequence)[source]

Bases: str

Wrapper Type for ensuring a str matches a Unix Path.

blacklist = re.compile('(\\/\\/)|(\\/\\.\\.)|(\\.\\.\\/)|(\\n)|(\\r)|(^\\.+$)', re.MULTILINE)
class libioc.Types.UserInput(data)[source]

Bases: object

Any kind of user input data.