Skip to main content

Obsidian lab app

Project description

Obsidian lab python server

Say you have a terrific script in python to:

  • Find similar notes to the current one.
  • Translate a text.
  • Know what was your mood the last three months, just reading your Obsidian vault.
  • Whatever wonder you have under the sleeve :D

And you want to see if it's helpful in Obsidian.

Then you can:

  1. Expose your script with this app
  2. Try it out with the obsidian lab plugin.

To install

pip install obsidian-lab

Usage:

obsidian-lab <scripts directory>

This will run a mini web server that exposes the scripts of the directory specified.

There are some examples in the ./examples directory, to run do:

obsidian-lab ./examples

After starting, you can list all the available scripts:

GET: http://127.0.0.1:5000/

{
  "scripts": [
    "http://127.0.0.1:5000/scripts/hello_world",
    "http://127.0.0.1:5000/scripts/random",
    "http://127.0.0.1:5000/scripts/to_upper_case"
  ]
}

To add new scripts, copy them in the scripts directory.

Build

Install the dependencies

pip install -r requirements.txt

try the app

python ./src/obsidian_lab/app.py ./examples

Status

This is a proof of concept.

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

obsidian_lab-0.2.5.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obsidian_lab-0.2.5-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file obsidian_lab-0.2.5.tar.gz.

File metadata

  • Download URL: obsidian_lab-0.2.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for obsidian_lab-0.2.5.tar.gz
Algorithm Hash digest
SHA256 fd352b9ee26d64bea102e6f1ce84c3a7c86e10675ac5043632f03b51eea88a67
MD5 51fa89a5eb3ea2589a81ecf276ec7414
BLAKE2b-256 6d7bf9dd4c8afd1aeaa7ca099a97325839995b644d10d2d4ee24762b38030a12

See more details on using hashes here.

File details

Details for the file obsidian_lab-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: obsidian_lab-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for obsidian_lab-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d2358c40ebf07403cbc2514e4c054acea93a1e9a2ac03ebaa2b9fc53b1472bad
MD5 a5d838deb26ba8c7dfd3a83fcd8e7a59
BLAKE2b-256 9ce07c563dcfff0767034eeb83248dbf36d0d10d5a6bc507f3fa6e25f1fce907

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page