Easy IPFS Uploads with Python & Pinata: Step-by-Step Tutorial

Поделиться
HTML-код
  • Опубликовано: 12 дек 2023
  • #programming #tutorial #ipfs #python #pinata #api
    This video covers the process of uploading files to IPFS using Python and Pinata in a concise tutorial.
    Learn how to integrate the Pinata API with Python for efficient IPFS data storage.
    Source code: github.com/codingcouchyt/pyth...
    IPFS: ipfs.io/
    Pinata: www.pinata.cloud/
  • НаукаНаука

Комментарии • 5

  • @theregionale
    @theregionale 4 месяца назад

    hey buddy, i love what you're doing, can you make more content on this

  • @himanshusingh1459
    @himanshusingh1459 3 месяца назад +1

    hii sir i am using this in my certificate generating project using blockchain but its give me different ipfs hash as on the pinata account on the uploading the generated file

    • @CodingCouchYT
      @CodingCouchYT  Месяц назад

      Hey, sorry for the late reply. Once you post the file to IPFS using Python, instead of going straight to the IPFS URL, try to go directly to the Pinata dashboard to ensure you can access the URL and download the file. If that works, then it might be fine. I think for different file types or file sizes, it could generate different hashes.
      I would use the URL generated by the API response and access it through the format ipfs.io/ipfs/{HASH}. And if you need querying abilities in the future, you can upload the file and use the IPFS hash from the API response as the filename so you can search for it later. This might be more reliable for accessing them through the filenames as long as they are unique.
      I know IPFS can sometimes have issues with multimedia formats such as images and videos, while uploaded text and JSON seem not to have these problems. Hopefully, that helps.

  • @theregionale
    @theregionale 4 месяца назад +1

    *Am down for collab if you wanna*

    • @CodingCouchYT
      @CodingCouchYT  4 месяца назад

      You can DM me with ideas or what you had in mind