Skip to content

py-is_ipfs is a Python library to identify valid IPFS resources.

License

Notifications You must be signed in to change notification settings

Barabazs/py-is_ipfs

Repository files navigation

py-is_ipfs

Latest release GitHub Actions Workflow Status

py-is_ipfs is a Python library to identify valid IPFS resources.
This project is a work in progress.

Installation and usage

Installation

py-is_ipfs is available on PyPI:

python -m pip install py-is_ipfs

Usage

from is_ipfs import Validator

print(Validator("QmYjtig7VJQ6XsnUjqqJvj7QaMcCAwtrgNdahSiFofrE7o").is_ipfs())

Currently supported

  • CID
    • v0
    • v1
  • URL
    • Path Gateway
      • IPFS
      • IPNS
    • Subdomain Gateway
      • IPFS
      • IPNS
  • Path
    • IPFS
    • IPNS
  • Native URL
    • IPFS
    • IPNS
  • ...

License

MIT

Acknowledgments

  • Protocol Labs for funding this project with a micro grant.
  • ipfs-shipyard/is-ipfs for the heuristics implemented in JavaScript that this project used as a starting point.