zabgrab.adapters.system

Adapters for the system clock and the user’s editor.

Classes

ClickEditor()

Opens files in $VISUAL / $EDITOR (with a platform fallback).

SystemClock()

The real current time.

class zabgrab.adapters.system.SystemClock[source]

Bases: object

The real current time.

now()[source]

Get the current time, as an aware UTC datetime.

Return type:

datetime

class zabgrab.adapters.system.ClickEditor[source]

Bases: object

Opens files in $VISUAL / $EDITOR (with a platform fallback).

edit(path)[source]

Open path in the editor and wait for it to close.

Parameters:

path (Path)

Return type:

None