A simple Python wrapper for Pinterest REST API (Beta) (5.x) ✨ 🍰 ✨
Project description
A simple Python wrapper for Pinterest REST API (Beta) (5.x) ✨ 🍰 ✨
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-pinterest-0.2.0.tar.gz
.
File metadata
- Download URL: python-pinterest-0.2.0.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a454922316391dbeb0eafb20959d8f51eb46e2249b98400796b193b3d57e51ae |
|
MD5 | 6c7cf048b49bbbd78229bb1c4e2331db |
|
BLAKE2b-256 | 02e64ecb03c274aed456a7f7967dbca875aac76d65e3fa318b94b3dd4d0e9f0b |
File details
Details for the file python_pinterest-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: python_pinterest-0.2.0-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Linux/5.11.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92b7223b8906d45614da0a4fd66aeb666a8f8f4864a7b9d6f45e9f8c0d30b33 |
|
MD5 | 0d3c382de7ff2c61b2c69972ecdb6e49 |
|
BLAKE2b-256 | a0cc0d4763215f73a709c7ecc52fac07ac67f63453c3b79293c3afd81ecbb4cd |