Skip to main content

A Python Thingiverse REST API wrapper

Project description

Python Thingiverse

Total alerts Language grade: Python

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-thingiverse-0.0.7.dev0.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

python_thingiverse-0.0.7.dev0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page