A Python Thingiverse REST API wrapper
Project description
Python Thingiverse
NOT OFFICIAL. This is only a Python wrapper for Thingiverse REST API.
This project was started in Feb 10 2022. It is still being developed and improved. To see the Test PyPI package, check it here.
This project uses python-box enpoint response. Python Box allows for use of dot-notation in dictionaries, this includes making inaccessible keys safe to access as well.
** We are constantly working on upgrading our documentation.
# From python-box documentation https://pypi.org/project/python-box/
from box import Box
movie_box = Box({ "Robin Hood: Men in Tights": { "imdb stars": 6.7, "length": 104 } })
movie_box.Robin_Hood_Men_in_Tights.imdb_stars
# 6.7
Check out full python-thingiverse documentation
Table of Contents
Getting Started
To install the package run
pip install python-thingiverse
Usage
Initializing the Thingiverse
from thingiverse import Thingiverse
thingy = Thingiverse(access_token="<access token>")
search_results = thingy.search_term("RPi 4")
Using python-box
with our wrapper makes it so that we could do this:
search_results.total
search_results.hits
Installing development package
python3 -m pip install -i https://test.pypi.org/simple/ python-thingiverse
TODO:
PATCH /users/{$username}/
DELETE /users/{$username}/
POST /users/{$username}/verify-account
GET /users/{$username}/event-count
POST /users/{$username}/followers
DELETE /users/{$username}/followers
POST /users/{$username}/avatar-image
POST /users/{$username}/cover-image
Improvements
- Look into autoversioning
- Tests for new endpoints
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
Hashes for python-thingiverse-0.0.7.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c424d1cad790e443f050a97d544e5a9b1208983d9ff5126e9cab467b1d12a367 |
|
MD5 | e8b213ca30d59f1c9e4dfba8a04ab0fe |
|
BLAKE2b-256 | 6e8a8e478348d9bf6d6e6656f299b46a8165db01e0fc1cdfa42eacf88d97880d |
Hashes for python_thingiverse-0.0.7.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0430a5daf0259fcd05486890cde0424ed3e0b78b94476249597b4075fa9bec9b |
|
MD5 | fdd99ee684bfc4482d1851d67e17bfef |
|
BLAKE2b-256 | ce537b19bec51e70eb77b3803f0e8f50756e81d1e7250b6419e80927a3a5dc9b |