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.
# 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)[https://garciajg.github.io/python-thingiverse/]
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")
Installing development package
python3 -m pip install -i https://test.pypi.org/simple/ python-thingiverse
TODO:
PATCH /users/{$username}/
DELETE /users/{$username}/
Improvements
- Docstrings
- OAuth working (Use App token!!!)
- CI/CD
- Look into autoversioning
- Tests (started)
- README (in progress)
- Think of documentation hosting
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
Close
Hashes for python-thingiverse-0.0.6rc1.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d168ea0455db98063102a9bc78f160dea3e908e6ccbd7d0ddba3de5487a36a8 |
|
MD5 | 5b736556dc6ee29dc7e2a5afc1518a08 |
|
BLAKE2b-256 | 31d30e0ac4c25c2e648d56ed1e2e1417b1ac7afdc49d99700abc5ea9ccf58251 |
Close
Hashes for python_thingiverse-0.0.6rc1.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f14c8b95212d4df9fe4f720e744db46ff4e323b39d7aeff7f87cb97a010f5d |
|
MD5 | 19ea376ea928d926cdcbb9b77cda5994 |
|
BLAKE2b-256 | 6357c2ddcb10e22d05007cdcabdc5a0f5145ab671ccff79f7fc6ac13d639af19 |