mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-23 07:20:43 -06:00
swydd will yield desired deliverables
.github/workflows | ||
docs | ||
src/swydd | ||
tests | ||
.gitignore | ||
.pre-commit-config.yaml | ||
DESIGN.md | ||
hello.py | ||
LICENSE | ||
pyproject.toml | ||
README.md | ||
tasks.py | ||
uv.lock |
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()):
_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"))