An open API service indexing awesome lists of open source software.

https://github.com/davidbrochart/zchunk_repodata


https://github.com/davidbrochart/zchunk_repodata

Last synced: 12 months ago
JSON representation

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
```