Giter Site home page Giter Site logo

ipsw-me-python's Introduction

ipsw-me-python

Simple & lightweight IPSW.me API wrapper written in Python

Better docmentation coming soon wiki

Installation

pip install ipsw-me

Examples

import ipsw_me # Import module

api = ipsw_me.API() # Initialize api

# Get device information by identifier
device = api.device_info("iPad4,7")
print(device.name) # iPad Mini 3 (WiFi)
print(device.boardconfig) # J85mAP
print(device.boards) # List of boards: [{"boardconfig": "J85mAP", "platform": "s5l8960x", "cpid": 35168, "bdid": 50}]

# Get ipsw information by identifier and build id
ipsw = api.get_ipsw("iPad4,7", "15B150")
print(ipsw.version) # 11.1.1
print(ipsw.url) # IPSW download url
print(ipsw.signed) # True or False

Credits

fxrcha PyApple package

IPSW.me IPSW.me API documentation

The iPhone Wiki Device information and documentation

ipsw-me-python's People

Contributors

locvic avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

ipsw-me-python's Issues

Sample code doesn't run. TypeError: IPSWFirmware.__init__() got an unexpected keyword argument 'sha256sum'

Hello!

I usually don't use Github and my coding skills are really lacking, so apologies in advance if this is not the right way of rising this issue.

I've tried to use ipsw-me but when I try to run your sample code I get an error on this line:

device = api.device_info("iPad4,7")

This is the complete log:

Traceback (most recent call last):
File "~/updateIPSW/main.py", line 48, in <module>
device = api.device_info("iPad4,7")

File "~/pyenv/lib/python3.10/site-packages/ipsw_me/api.py", line 32, in device_info
data['firmwares'] = [IPSWFirmware(**firmware) for firmware in data['firmwares']]

File "~/pyenv/lib/python3.10/site-packages/ipsw_me/api.py", line 32, in <listcomp>
data['firmwares'] = [IPSWFirmware(**firmware) for firmware in data['firmwares']]

`TypeError: IPSWFirmware.init() got an unexpected keyword argument 'sha256sum'``

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.