Skip to content

Instantly share code, notes, and snippets.

View catdogmat's full-sized avatar
🌏
Working on MCE stuff

Finn catdogmat

🌏
Working on MCE stuff
  • 01:36 (UTC +12:00)
View GitHub Profile
@scivision
scivision / extract_zst.py
Last active March 9, 2024 13:25
Extract a .zst file in Python
from pathlib import Path
import tempfile
import tarfile
import zstandard
# pip install zstandard
def extract_zst(archive: Path, out_path: Path):
"""extract .zst file
@dorneanu
dorneanu / plugin_architecture.md
Last active May 19, 2024 18:01
Python: Implement basic plugin architecture with Python and importlib

Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).

This is my solution:

Basic project structure

$ tree