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
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
.obsidiantoo.). 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
- Adding a new repo :
obsnipe clone repository_url
Additionally, you can exclude a folder from update with adding the--excludecommand :obsnipe clone --excluded [repository_url] - Updating everything :
obsnipe - Updating only a repository :
obsnipe update folder_nameThe folder name is the folder that you wish to update the snippet!
The script will :
- Git pull
- Git move every
.cssfile in your.obsidian/snippetfolder.
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
- Configuration :
- Vault is in :
G:/Drive/vault - My Obsidian Manager Folder is in :
D:/Documents/Github/Snippets Manager
- Vault is in :
obsnipe clone https://github.com/Mara-Li/Obsidian-Snippet-collection- 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Obsidian_Snippet_Manager-2.0.1.tar.gz | 120.9 kB | Without provenance | Details for Obsidian_Snippet_Manager-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Obsidian_Snippet_Manager-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for Obsidian_Snippet_Manager-2.0.1-py3-none-any.whl |
Total release size: 144.3 kB
Release files / Obsidian_Snippet_Manager-2.0.1.tar.gz
| Download URL | Obsidian_Snippet_Manager-2.0.1.tar.gz |
|---|---|
| Size | 120.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
375c35e6c15ac4339e267fbce8d57765979244e7c6eaa844ee304079217c153f
|
|
BLAKE2b-256 checksum How to use checksums |
49da0134b246b69f66d53ab9cc5ef5b5c873b23cdeffab30c5daffa6031dafc6
|
| 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.1-py3-none-any.whl
| Download URL | Obsidian_Snippet_Manager-2.0.1-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
041dc9a87ee4c8414b5ea25f0bd9eca003ab9e346e8a9d5f65b0790727acc330
|
|
BLAKE2b-256 checksum How to use checksums |
35f1b7f82e4c621bedda3d10c32a033eb89896cf31deb164a8eca807042ad296
|
| 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.1
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.