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

Uploaded Source

Built Distribution

ipfsspec-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipfsspec-0.1.0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for ipfsspec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a89e1a3df8010108ec29d40de3c83950264c48b73d0dc1cfcb19785d3e95168a
MD5 1a8b42ab0f7009145ea2573ad856c79a
BLAKE2b-256 c9981ddc61ed1f847e283963aa3f74fa1e8c9fc7ff2f3f4370cc2b57e50130eb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ipfsspec-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for ipfsspec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0106bdeb317eb70422819bc2000f9d0ea18626c8cc14ba2992ccbbb88beeb23
MD5 c23e2fc31f90530655858f4ee1af3348
BLAKE2b-256 71dfeb97ecea32d3da777e5e33525e517fdfd1b929e7c80491f4a68202938a23

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