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.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

ipfsspec-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipfsspec-0.0.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for ipfsspec-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9ffcfc4a293467ad141f0761534e4173d4dc32ba60b213883cad2929f135735a
MD5 d8011e7bbe773796808792527978d3ef
BLAKE2b-256 a2acfb8635de5a12365dc4d8ac701c2d7261d7b969a76dad1b567d109d59c594

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ipfsspec-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for ipfsspec-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a3e026900be3ff763ba5358d76f9c0187acdbc8e2d0186f2e22ec1236504b63
MD5 65acf06a2bb6ef0c89c81d21d96f52ed
BLAKE2b-256 ac6adbf64789ccc01a744184b395b1056dc816dcc8ffc5278de05f6bd0459bcc

See more details on using hashes here.

Provenance

Supported by

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