readonly implementation of fsspec for IPFS
Project description
ipfsspec
A readonly implementation of fsspec for IPFS.
This project is currently very rudimentaty. It is not yet optimized for efficiency and is not yet feature complete. However it should be enough to list directory contents and to retrieve files from ipfs://
resources via fsspec. A simple hello worlds would look like:
import fsspec
with fsspec.open("ipfs://QmZ4tDuvesekSs4qM5ZBKpXiZGun7S2CYtEZRB3DYXkjGx", "r") as f:
print(f.read())
The current implementation uses a HTTP gateway to access the data. It tries to use a local one (which is expected to be found at http://127.0.0.1:8080
) and falls back to ipfs.io
if the local gateway is not available.
You can modify the list of gateways using the space separated environment variable IPFSSPEC_GATEWAYS
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ipfsspec-0.1.3.tar.gz
.
File metadata
- Download URL: ipfsspec-0.1.3.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c7e7323e472806a8f47e2236a49e3d483ba4c3aa76409e16107765e7991e8e8 |
|
MD5 | 8faca3e09739dff5225fe3783711f749 |
|
BLAKE2b-256 | 72bf070ac847df76dd6acc3b9ce4ba855d2e8c118b524c412af5158f11f772e2 |
Provenance
File details
Details for the file ipfsspec-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: ipfsspec-0.1.3-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57b4575b50747cd87d3bb667bd8a3d537a29d0abed9c1beb08ff00b9d4899414 |
|
MD5 | e618429e584bf2d36677046990104226 |
|
BLAKE2b-256 | 3360567901a24874d0db1f539e6caa44c1092c849005b8654a6151152316af04 |