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://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


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

Uploaded Source

Built Distribution

ipfsspec-0.4.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ipfsspec-0.4.0.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ipfsspec-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f4e40ceac31fdda5e3757f10b4778a5f124c22bffb54eba990e630c8746a8af8
MD5 caa702abbf9b9fe205200aa58d2e7033
BLAKE2b-256 ec7fdde6fb9b3c3a9edca83ccb1a834f6095d7183e739d09c9add78cd880e66c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ipfsspec-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ipfsspec-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 756128f93307b49edb24221382b4515906223e0f0b3da566bcc8062694cda511
MD5 660b6216836dad020678206e4c241a86
BLAKE2b-256 d139ea06f86a7c3a2654caa380d534cecefa97011623f71565bf3cfa8f5e0777

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