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

Uploaded Source

Built Distribution

ipfsspec-0.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ipfsspec-0.0.2.tar.gz
Algorithm Hash digest
SHA256 46a302bd5ee0d42c4f945d0f856c2ee2c55354200feb4a6f74edf91ce1135009
MD5 6f1a2fe04c7531d46ecab4a7180f75c4
BLAKE2b-256 fe80128b0456f9b0b0fa818dbf678967f303de186d9664988ce0d69aa3b85441

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for ipfsspec-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 13b43eb65f1e3134b5f777ed29f4bd27338d16ec47ea33454ff63f174c367810
MD5 2b9ed67622b80019db0fda2d03349050
BLAKE2b-256 681af370a9c70aaabad99d28a469f16df5861476bd4467180ffda65621231042

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