Syncs md obsidian documents to outline wiki
Project description
obsout
obsout
is an Obsidian to Outline Wiki connector written in Python. It will sync local markdown files to Outline via API requests (and sync to local computer), show status of sync, and aid in deleting documents between both Outline and local Obsidian vault.
Installation
obsout
can be installed from PyPI
:
pipx install obsout
Vault Structure
- Collection1
- Document1
- Document2
...
- Collection2
Outline is relatively simple wiki, with only high level collections, which contain any number of documents. Outline also provides the functionality of nested documents, however I'm not sure how to implement this from the perspective of files/directories.
This structure means that any files found in the root directory will be ignored, so keep that in mind.
Configuration
Use the provided example.env
to make a .env
file. Note the path to this file (I recommend placing it in your wiki directory, you won't be able to see it in Obsidian). In addition to the .env
file, a conf.yml
file is also needed - again, use the provided example. Private directories can be added as shown:
wiki:
path: "your path"
exclude:
- directory1
- direcotry2
Once you have provided the path to the .env
and conf.yml
files, the paths will be stored in a json file at the path /home/user/.config/obsout/conf.json
.
On the first run of obsout
, use the following options to specify paths:
-c, --config TEXT Specify config file, defaults to current directory
-e, --env TEXT Specify .env file, defaults to current directory
Again, after first run these options are not necessary unless you have moved the path of the .env
and conf.yml
files.
Commands
status
will show modified/missing files by default compared to the local vault. Using the --local
flag, you can see the status in the opposite direction (file missing from vault compared to Outline).
obsout status [OPTIONS]
View local sync status
Options:
--local Show status of local files compared to remote
sync
will sync files bi-directionally between Outline and the local Obsidian vault based on modification date (older files will be overwritten). No files will be deleted in the sync.
Usage: obsout sync [OPTIONS]
Sync local and client markdown files
delete
will delete a collection, or a document, based on the collection/document name provided. The entire collection will be deleted if the --all
flag is provided.
Usage: obsout delete [OPTIONS]
Delete a document from vault and Outline
Options:
-c, --collection TEXT Collection name [required]
-d, --document TEXT Document name, without '.md' extension
--all Delete entire collection
Contributing
Pull requests are more than welcome. If you have major changes slated, please open an issue instead.
To set up a development environment with poetry
(on Linux):
# Install poetry
pipx install poetry
# Create virtual environemnt
python -m venv venv
source venv/bin/activate
# Install dependencies
poetry install
For more information on working with Outline Wiki API, see the documentation
Credits
Thanks to jaypyles and his project obsidian-to-bookstack for the inspiration. His approach to syncing between obsidian and bookstack provided a lot of inspiration to my approach in this project.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file obsout-0.1.2.tar.gz
.
File metadata
- Download URL: obsout-0.1.2.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.6.9-100.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a3e8ab8db4d4c716d6f22a4d916599d9080b3fa7d93eacbe2b1e21785662e5 |
|
MD5 | a9f5f293ebfe5c96a0060d67f67787d7 |
|
BLAKE2b-256 | 4c9a2318921e83298db658610259afbf70da380b8a8acb602cb4f4fb9bf55a74 |
File details
Details for the file obsout-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: obsout-0.1.2-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.6.9-100.fc38.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 013540ef2f0b4e08b242a62a44fe6f9c0555267f8de8d2a6ffb00fe6a0e716a0 |
|
MD5 | e6fa92e06b08f228fcf211aacb5a1ebd |
|
BLAKE2b-256 | c1f432afc52d2580fb322bf560a7a4b4f401b5cf764155bf8c1b72dd72478399 |