creativequotient / pint

Batch IPFS file uploader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pint

Automatically pin files to IPFS via Pianta

Quick start

Set up configuration file

In the root directory of Pint, create a file named .env and define two variables - API_KEY and SECRET_KEY which correspond to the credentials for your Pinata API. A sample .env file has been provided

Uploading files

Run python upload_to_ipfs.py -i <directory> where <directory> is the directory that contains all the assets to be uploaded. When successful, a file named results.json will be written to <directory> which contains the CID of each file uploaded.

Uploading directories

Run python upload_directory_to_ipfs.py -i <directory> where <diretory> is the directory that is to be pinned on IPFS. The CID returned is for the entire directory and not individual files.

About

Batch IPFS file uploader


Languages

Language:Python 100.0%