https://github.com/zdharma-continuum/zservice-py3http
https://github.com/zdharma-continuum/zservice-py3http
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zdharma-continuum/zservice-py3http
- Owner: zdharma-continuum
- License: mit
- Created: 2021-11-06T11:34:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-16T04:42:44.000Z (about 2 years ago)
- Last Synced: 2025-01-13T14:19:21.168Z (5 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py3http
This Zsh service-plugin will serve given directory (plugin's directory by default) using Python's 3 HTTP server.
## [Zinit](https://github.com/zdharma-continuum/zinit)
A service-plugin needs a plugin manager that supports loading single plugin instance per all active Zsh sessions, in
background. Zinit supports this, just add:```
zinit ice service'py3http'
zinit light zdharma-continuum/zservice-py3http
```to `~/.zshrc`.
## Explanation of Zsh-spawned services
First Zsh instance that will gain a lock will spawn the service. Other Zsh instances will wait. When you close the
initial Zsh session, another Zsh will gain lock and resume the service.