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 pratical way to get semi-auto-update from css snippet hosted on github, in waiting of an eventually BRAT update that support that.

Get started

Requirements

  1. Git
  2. Python
  3. pip install obs-snippets

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 --add repository_url
  2. Updating everything : obsnipe
  3. Updating only a repository : obsnipe --update folder_name The foldername is the folder that you want 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.

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 --add https://github.com/Mara-Li/Obsidian-Snippet-collection
  3. Active the snippets 🎉

To update this specific snippet : obs-snippets --update Obsidian-Snippet-collection

In obsidian

You can create a commmand in Obsidian using Obsidian Shell.

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

⚠️ WARNING : Every edit on 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 !)

Metadata

Release files for Obsidian-Snippet-Manager 1.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 1.0.0
File Size Uploaded Provenance Actions
Obsidian_Snippet_Manager-1.0.0.tar.gz 113.9 kB Without provenance Details for Obsidian_Snippet_Manager-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 132.2 kB

Release files / Obsidian_Snippet_Manager-1.0.0.tar.gz

Download URL Obsidian_Snippet_Manager-1.0.0.tar.gz
Size 113.9 kB
Tags Source
SHA-256 checksum
How to use checksums
beec330cd55574b502c0e6d8f10067e7447e7643da7b671f1a34d6e03b99ab00
BLAKE2b-256 checksum
How to use checksums
e278c6bb31fcd2d3fabadd6d8f8126953dcaa31dea7374646e96fdd5c710d9ef
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-1.0.0-py3-none-any.whl

Download URL Obsidian_Snippet_Manager-1.0.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6232dde0d046dede7a0e0ee4de0e193c8a1d4d81c0a8f902ae8c2d386d26ccc8
BLAKE2b-256 checksum
How to use checksums
9112971068f8363e0cb89aa14eae5ec920e8129a4a5eefade9571da5b5fedd9e
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 1.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