Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexcb/chuck
https://github.com/alexcb/chuck
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexcb/chuck
- Owner: alexcb
- Created: 2019-10-21T18:51:39.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T18:21:00.000Z (8 months ago)
- Last Synced: 2024-05-09T10:26:03.573Z (7 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Tool for hosting files over http
To host a file (or directory) run:
./chuck.py --port 9999
If is a directory, then chuck.py will compress host the entire directory as a zip file.
This will allow users to visit http://localhost:9999 which will cause the file located at path to be downloaded
Alternatively if a user already has chuck installed on the receiving computer; one may run:
./chuck.py --list
to discover all running chuck servers on the local network.
Example of using chuck to share a copy of itself:
./chuck.py chuck.py
This will output:
serving on http://192.168.0.103:9999
Open this URL in a browser and chuck.py will be downloaded; alternatively on the command line this can be downloaded with wget:
wget --content-disposition http://192.168.0.103:9999
which will save it as chuck.py