py-is_ipfs is a Python library to identify valid IPFS resources.
This project is a work in progress.
py-is_ipfs is available on PyPI:
python -m pip install py-is_ipfs
from is_ipfs import Validator
print(Validator("QmYjtig7VJQ6XsnUjqqJvj7QaMcCAwtrgNdahSiFofrE7o").is_ipfs())-  CID
- v0
 - v1
 
 -  URL
-  Path Gateway
- IPFS
 - IPNS
 
 -  Subdomain Gateway
- IPFS
 - IPNS
 
 
 -  Path Gateway
 -  Path
- IPFS
 - IPNS
 
 -  Native URL
- IPFS
 - IPNS
 
 - ...
 
- 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.