Additional documentation
This commit is contained in:
parent
c2d697511a
commit
244c3fd681
|
@ -11,11 +11,21 @@ Uses [`python-fuse`](https://github.com/libfuse/python-fuse) library.
|
||||||
|
|
||||||
Limitations:
|
Limitations:
|
||||||
|
|
||||||
- Only works for TODO files.
|
- Only cards in todolist is fetched at the moment.
|
||||||
- Doesn't include title anywhere.
|
- Doesn't include title anywhere.
|
||||||
- Tasks cannot be updated or changed.
|
- Tasks cannot be updated or changed.
|
||||||
|
- Slow, due to inefficient use of caches.
|
||||||
|
|
||||||
A more complete implementation will probably require a Markdown parser, to
|
A more complete implementation will probably require a Markdown parser, to
|
||||||
parse the saved input, and distribute it across the various Card fields (card
|
parse the saved input, and distribute it across the various Card fields (card
|
||||||
name, description, tasks, etc...)
|
name, description, tasks, etc...)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
1. Install dependencies `pip install -r requirements.txt`
|
||||||
|
2. Setup [secrets](https://gitfub.space/Jmaa/secret_loader]): `FAVRO_ORGANIZATION_ID`, `FAVRO_USERNAME`, `FAVRO_PASSWORD`.
|
||||||
|
3. Run `python -m favro_sync <MOUNT_DIR>`. Use the `--help` argument to get an
|
||||||
|
overview of all supported flags (there is a lot, because
|
||||||
|
[`python-fuse`](https://github.com/libfuse/python-fuse) implements a whole
|
||||||
|
bunch automatically.)
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
import tempfile
|
||||||
|
|
||||||
import requests_cache
|
import requests_cache
|
||||||
import secret_loader
|
import secret_loader
|
||||||
|
|
||||||
|
@ -14,9 +16,7 @@ def main():
|
||||||
|
|
||||||
read_only = False
|
read_only = False
|
||||||
|
|
||||||
# with tempfile.TemporaryDirectory(prefix='favro_sync_') as tmpdirname:
|
with tempfile.TemporaryDirectory(prefix='favro_sync_') as tmpdirname:
|
||||||
tmpdirname = './output' # TODO
|
|
||||||
if True:
|
|
||||||
session = requests_cache.CachedSession(
|
session = requests_cache.CachedSession(
|
||||||
tmpdirname + '/http-cache.sqlite', expire_after=360,
|
tmpdirname + '/http-cache.sqlite', expire_after=360,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user