acdcli.cache package¶
Submodules¶
acdcli.cache.cursors module¶
Cursor context managers
acdcli.cache.db module¶
-
class
acdcli.cache.db.
NodeCache
(cache_path: str='', settings_path='', check=0)[source]¶ Bases:
acdcli.cache.schema.SchemaMixin
,acdcli.cache.query.QueryMixin
,acdcli.cache.sync.SyncMixin
,acdcli.cache.format.FormatterMixin
-
IntegrityCheckType
= {'none': 2, 'quick': 1, 'full': 0}¶ types of SQLite integrity checks
-
integrity_check
(type_: {'none': 2, 'quick': 1, 'full': 0})[source]¶ Performs a self-integrity check on the database.
-
acdcli.cache.format module¶
Formatters for query Bundle iterables. Capable of ANSI-type coloring using colors defined in
LS_COLORS
.
-
class
acdcli.cache.format.
FormatterMixin
[source]¶ Bases:
object
-
acdcli.cache.format.
color_file
(name: str) → str[source]¶ Colorizes a file name according to its file ending.
-
acdcli.cache.format.
color_status
(status)[source]¶ Creates a colored one-character status abbreviation.
acdcli.cache.query module¶
-
class
acdcli.cache.query.
Node
(row)[source]¶ Bases:
object
-
created
¶
-
is_available
¶
-
is_file
¶
-
is_folder
¶
-
is_trashed
¶
-
modified
¶
-
simple_name
¶
-
acdcli.cache.schema module¶
acdcli.cache.sync module¶
Syncs Amazon Node API objects with SQLite database.
-
class
acdcli.cache.sync.
SyncMixin
[source]¶ Bases:
object
Sync mixin to the
NodeCache
-
insert_folders
(folders: list)[source]¶ Inserts list of folders into cache. Sets ‘update’ column to current date.
Parameters: folders¶ – list of raw dict-type folders
-