mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-06 17:23:16 -06:00
swydd will yield desired deliverables
.github/workflows | ||
docs | ||
src/swydd | ||
.gitignore | ||
.pre-commit-config.yaml | ||
LICENSE | ||
pdm.lock | ||
pyproject.toml | ||
README.md | ||
tasks.py |
sywdd
sywdd will yield desired deliverables
Automagic Snippet
# https://github.com/daylinmorgan/swydd?tab=readme-ov-file#automagic-snippet
_src = (_i := __import__)("pathlib").Path(__file__).parent / "swydd/__init__.py"
if not (_i("importlib.util").util.find_spec("sywdd") or _src.is_file()):
_i("sys").stderr.write(f"installing swydd to {_src}\n")
_r= _i("urllib.request").request.urlopen("https://swydd.dayl.in/swydd.py")
_src.parent.mkdir(exist_ok=True)
_src.write_text(_r.read().decode("utf-8"))