iFixit REST API Interface
Project description
fixitPy
Python iFixit API interface.
Currently you can retrieve guides and their prerequisite guides
Installation
To install fixitPy
pip install fixitpy
Using the library
Retrieving a guide without prerequisites
This returns a dict that contains information pertaining to the guide
import fixitpy
found_guide = fixitpy.retrieve_guide(123) # call the retrieve_guide function which returns a dict
print(found_guide.get("title"))
print(found_guide.get("difficulty"))
Retrieving a guide with prerequisites
A prerequisite is an optional guide that the retrieved guide recommends you start with before. The prerequisite guide is the same dict structure of what returns from fixitpy.retrieve_guide
import fixitpy
found_guide = fixitpy.retrieve_guide(123, get_prerequisites=True) # call the retrieve_guide function which returns a dict
print(found_guide.get("title"))
print(found_guide.get("difficulty"))
first_prerequisite = found_guide.get("prerequisites")[0]
print(first_prerequisite.get("title"))
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
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.14.tar.gz.
File metadata
- Download URL: fixitpy-0.2.14.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9f59ba6736dd90b26e8de6e30ab2ae669819461ca2d0fab7e62b3d0ed7c8862
|
|
| MD5 |
b11151bfd1c36bb6f861d2f3aaf16f03
|
|
| BLAKE2b-256 |
8939280713ac7b72334847a012ecde232b53e550bf3cc279b4b374a9a22bc6d9
|
File details
Details for the file fixitpy-0.2.14-py3-none-any.whl.
File metadata
- Download URL: fixitpy-0.2.14-py3-none-any.whl
- Upload date:
- Size: 3.5 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 |
0224442a247da594d0957ba3716ff48338316b7f097951386c54775c58e7d394
|
|
| MD5 |
a38f9dfebaf4b4809fa79e0c2a3af6e1
|
|
| BLAKE2b-256 |
ac8b4e1ea8a04386cdb02b7b425629366266cf7c13a00e4fc9eb51fa2586b95d
|