Skip to main content

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 ipfsspec  # this is needed to register the protocol with fsspec
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://localhost:8080) and falls back to ipfs.io if the local gateway is not available.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipfsspec-0.0.3.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipfsspec-0.0.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file ipfsspec-0.0.3.tar.gz.

File metadata

  • Download URL: ipfsspec-0.0.3.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.1

File hashes

Hashes for ipfsspec-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8ca969b7d88e56ec1decd5a0eef052bf454223c8c87242309a8c20fe36c3f149
MD5 d581d8349734ca59c687138bd3f1d94a
BLAKE2b-256 8ba64b3c15c3128f45cfe5c46d971a18db579e4a34ee888c690d2e08290863f0

See more details on using hashes here.

File details

Details for the file ipfsspec-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ipfsspec-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.1

File hashes

Hashes for ipfsspec-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 11c5aa806c4c31f959a2be22f7de3df5192189508930cd78fb46c2b7c8430a53
MD5 526c7b448a0e10e74188420fa687d0d4
BLAKE2b-256 d1a04f1ee1b7259ca0cf7eb69031cc63397e16ba9d561e603d1014ac612e5736

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page