MCPcopy
hub / github.com/ArchiveBox/ArchiveBox / read_cursor

Function read_cursor

archivebox/parsers/readwise_reader_api.py:85–93  ·  view source on GitHub ↗
(username: str)

Source from the content-addressed store, hash-verified

83
84
85def read_cursor(username: str) -> Optional[str]:
86 if not API_DB_PATH.exists():
87 atomic_write(API_DB_PATH, "")
88
89 config_file = ConfigParser()
90 config_file.optionxform = str
91 config_file.read(API_DB_PATH)
92
93 return config_file.get(username, "since", fallback=None)
94
95
96

Callers 1

Calls 2

atomic_writeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected