iFixit REST API Interface
Project description
fixitPy
Python iFixit API interface.
Currently, you can retrieve guides and their prerequisite guides
Installation
pip install fixitpy
Usage
Guide retrieval
import fixitpy
# Call 'retrieve_guide' returns the guide's dictionary
found_guide = fixitpy.retrieve_guide(123)
# As any regular dictionary, you can retrieve specific values from it
print(found_guide.get("title"))
print(found_guide.get("difficulty"))
# The dictionary returned from 'retrieve_guide' contains a list refered to as 'steps'
# Each list item contains a dictionary with the properties 'title', which is self explanatory and 'text', the process itself.
for step in found_guide.get("steps"):
print(step.get("title"))
print(step.get("text"))
Media retrieval
import fixitpy
# Call 'retrieve_media', returns the media's dictionary
found_guide = fixitpy.retrieve_media(123)
# As any regular dictionary, you can retrieve specific values from it
print(found_guide.get("width"))
print(found_guide.get("height"))
# The dictionary returned from 'retrieve_media' contains a sub-dictionary under 'sizes'
# Which contains all the sizes of the media and their corresponding URLs.
sizes = found_guide.get("sizes")
# 'thumbnail' is a very common size for iFixit Media
print(sizes.get("thumbnail"))
License
MIT License
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
fixitpy-0.2.17.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fixitpy-0.2.17.tar.gz.
File metadata
- Download URL: fixitpy-0.2.17.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33fcf9de3313ffca29548c85dc4258e30e9f1981ac05ff844067f6859aa8a82f
|
|
| MD5 |
a99ee23162aee14688046e1045211f7a
|
|
| BLAKE2b-256 |
5c8690bc30c61dc8a916b0243cbef462f3bac82fdbc3af632a7ee7a98fb6fe8b
|
File details
Details for the file fixitpy-0.2.17-py3-none-any.whl.
File metadata
- Download URL: fixitpy-0.2.17-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c541d8c8fae4b4b904dfb10696720ebea2457fe664402cc61bca4815a12f057
|
|
| MD5 |
227d45a01a221cc204d158e12ecaa009
|
|
| BLAKE2b-256 |
a69476df27ee345cb6d874aeaa447beb1c49d11b3229a45e0c51ff65b7a5809a
|