Skip to main content

python-pinterest

A simple Python wrapper for Pinterest REST API (Beta) (5.x) ✨ 🍰 ✨

https://github.com/sns-sdks/python-pinterest/workflows/Test/badge.svg https://codecov.io/gh/sns-sdks/python-pinterest/branch/main/graph/badge.svg

Introduction

This library provides a service to easily use Pinterest REST API for v5.x.

And support Async And sync mode.

More docs has published on https://sns-sdks.lkhardy.cn/python-pinterest/

Using

The API is exposed via the pinterest.Api class and pinterest.AsyncApi class.

INSTANTIATE

You can initial an instance with access token:

# Sync
>>> from pinterest import Api
>>> p = Api(access_token="Your access token")
# Async
>>> from pinterest import AsyncApi
>>> ap = AsyncApi(access_token="Your access token")

Usage

Get pin info:

# Sync
>>> p.pins.get(pin_id="1022106077902810180")
# Pin(id='1022106077902810180', created_at='2022-02-14T02:54:38')
# Async
>>> await ap.pins.get(pin_id="1022106077902810180")
# Pin(id='1022106077902810180', created_at='2022-02-14T02:54:38')

More docs has published on https://sns-sdks.lkhardy.cn/python-pinterest/

TODO

  • Tests

Metadata

Release files for python-pinterest 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-pinterest 0.2.0
File Size Uploaded
python-pinterest-0.2.0.tar.gz 19.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-pinterest 0.2.0
File Interpreter ABI Platform
python_pinterest-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 49.6 kB

Release files / python-pinterest-0.2.0.tar.gz

Download URL python-pinterest-0.2.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a454922316391dbeb0eafb20959d8f51eb46e2249b98400796b193b3d57e51ae
BLAKE2b-256 checksum
How to use checksums
02e64ecb03c274aed456a7f7967dbca875aac76d65e3fa318b94b3dd4d0e9f0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure

Release files / python_pinterest-0.2.0-py3-none-any.whl

Download URL python_pinterest-0.2.0-py3-none-any.whl
Size 30.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a92b7223b8906d45614da0a4fd66aeb666a8f8f4864a7b9d6f45e9f8c0d30b33
BLAKE2b-256 checksum
How to use checksums
a0cc0d4763215f73a709c7ecc52fac07ac67f63453c3b79293c3afd81ecbb4cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page