https://github.com/davidbrochart/zchunk_repodata
https://github.com/davidbrochart/zchunk_repodata
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidbrochart/zchunk_repodata
- Owner: davidbrochart
- Created: 2020-11-24T00:42:40.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-24T00:54:53.000Z (about 5 years ago)
- Last Synced: 2025-01-12T13:50:40.309Z (about 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Installation:
```bash
mamba install zchunk pip
pip install rangehttpserver
```
Prepare data on the server side (get current repodata):
```bash
mkdir repodata
cd repodata
wget https://conda.anaconda.org/conda-forge/linux-64/repodata.json
zck repodata.json
```
Prepare data on the client side (create an older repodata with less packages):
```bash
mkdir download
python python/diff.py
cd download
zck repodata0.json
```
Serve the (current) chunked repodata:
```bash
cd repodata
python -m RangeHTTPServer
```
Update the old repodata:
```bash
cd download
zckdl -s repodata0.json.zck http://127.0.0.1:8000/repodata.json.zck
# Missing chunks: 1
# Downloaded 42229 bytes
```