GithubHelp home page GithubHelp logo

pan-efs / pinata-python Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 1 MB

An easy to use and fully-featured Python API for pinata.cloud library.

License: MIT License

Python 99.83% Shell 0.17%
blockchain ipfs pinata python3

pinata-python's Introduction

pinata-python

AUR maintainer GitHub Workflow Status Python 3.8 GitHub repo size

An easy to use and fully-featured Python API for pinata.cloud.

Installation

It's encouraged to read the notes before installation.

Install via PyPi:

pip install pinata-python==1.0.0

Install from source:

pip install git+https://github.com/pan-efs/pinata-python.git

Documentation

Read the official documentation as PDF file. Examples can be found as well.

Build docs
HTML `~/pinata-python$ sphinx-build -b html docs/source/ docs/build/html`
PDF `~/pinata-python$ sphinx-build -b rinoh docs/source docs/_build/rinoh`

Example

from pinata_python.pinning import Pinning

your_pinata_api_key = '...'
your_pinata_api_secret = '...'

pinata = Pinning(PINATA_API_KEY=your_pinata_api_key, PINATA_API_SECRET=your_pinata_api_secret)

your_filepath = '...'
response = pinata.pin_file_to_ipfs(filepath)

print(response)

Unit Tests

~/pinata-python$ bash run_tests.sh

There are some tests which have been skipped. Please refer to tests folder in order to comprehend why.

Note: The API has not been tested for the professional plan. Yet, it doesn't mean that it doesn't work for it.

Notes

  • The pinata-python API does not support Pinata Submarine API. Also, it has been built before Pinata Submarine API was released.

  • The pinata-python API is unofficial. There is no any kind of collaboration between the author and pinata.

  • The pinata-python API has been developed for recreational and personal usage reasons. There is no any kind of financial interest.

  • The pinata-python API is distributed under MIT licence.

Contributing

  1. For problems, you could kindly open an issue and label it with bug.

  2. For ideas or improvements, you could kindly open an issue and label it with enhancement.

Star it! โญ

You got it! Feel free to leave a star if you found the package useful or you learned something new at least.

pinata-python's People

Contributors

pan-efs avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

isash123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.