Skip to main content

Obsidian Snippet Manager is a python script that git pull and move CSS file in your .obsidian/snippet folder.

The goal is to provide a practical way to get semi-auto-update from CSS snippet hosted on GitHub, in waiting of an eventual BRAT update that support that.

Get started

Requirements

  1. Git
  2. Python
  3. pip install Obsidian-Snippet-Manager

Environment

The plugin needs :

  • The absolute path of your vault, as : G:\Drive\Vault
  • A folder that contains all the snippet you want to get the update. This folder can be everywhere on your computer (yes, it can be in .obsidian too.). It will contain all folder of the snippet hosted on GitHub you want to use.
    In case of the folder doesn't exist, the script will create it!

How to use

  1. Adding a new repo : obsnipe clone repository_url
    Additionally, you can exclude a folder from update with adding the --exclude command : obsnipe clone --excluded [repository_url]
  2. Updating everything : obsnipe
  3. Updating only a repository : obsnipe update folder_name The folder name is the folder that you wish to update the snippet!

The script will :

  • Git pull
  • Git move every .css file in your .obsidian/snippet folder.

Other function

  • obsnipe list : List all GitHub Repository you download.
  • obsnipe exclude [folder_name] : Exclude a folder from update. You can exclude multiple value using : obsnipe exclude [folder1] [folder2]

Note : You can exclude a folder from auto-update using the exclude.yml file, placed in your Snippet Manager folder. You need to add the folder name as a yaml list :

- foldername1
- foldername2

Example

Using Obsidian Snippets Collection

  1. Configuration :
    • Vault is in : G:/Drive/vault
    • My Obsidian Manager Folder is in : D:/Documents/Github/Snippets Manager
  2. obsnipe clone https://github.com/Mara-Li/Obsidian-Snippet-collection
  3. Activate the snippets 🎉

To update this specific snippet : obsnipe update Obsidian-Snippet-collection

In obsidian

You can create a command in Obsidian using Obsidian Shell.

Bonus, you can update your snippet every time obsidian start, like BRAT!

⚠️ WARNING : Every edit on a snippet downloaded by this way will break the script. Please, DON'T EDIT these file, and use another snippet. (Or, use a fork and commit before.)

Credit

Metadata

Release files for Obsidian-Snippet-Manager 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Obsidian-Snippet-Manager 2.0.0
File Size Uploaded Provenance Actions
Obsidian_Snippet_Manager-2.0.0.tar.gz 120.9 kB Without provenance Details for Obsidian_Snippet_Manager-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Obsidian-Snippet-Manager 2.0.0
File Interpreter ABI Platform Actions
Obsidian_Snippet_Manager-2.0.0-py3-none-any.whl Python 3 none any Details for Obsidian_Snippet_Manager-2.0.0-py3-none-any.whl

Total release size: 144.3 kB

Release files / Obsidian_Snippet_Manager-2.0.0.tar.gz

Download URL Obsidian_Snippet_Manager-2.0.0.tar.gz
Size 120.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5efd8ae7b09a8ff4d3e2b07408d6491a86f984158db71f4e662bdd340c61eebb
BLAKE2b-256 checksum
How to use checksums
0c42998c91cfe159e3cd8f7fef8d1ac63fc9cc4dd40313fc0c0073d35794ee70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release files / Obsidian_Snippet_Manager-2.0.0-py3-none-any.whl

Download URL Obsidian_Snippet_Manager-2.0.0-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4405879cbfbd976b1b7c3599a4fa838bbe4d3e801a030ec6fae1452db7dd9112
BLAKE2b-256 checksum
How to use checksums
1afc5cca93e95c020d9be6cdbd27f300263bc6f473884cd52f76c7a065814862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Security for Obsidian-Snippet-Manager 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page