-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for a few DSC api routes
- Loading branch information
Showing
28 changed files
with
466 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
from .client import IpswClient | ||
from .version import __version__ | ||
|
||
__title__ = 'ipsw' | ||
__title__ = "ipsw" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# flake8: noqa | ||
from .client import APIClient | ||
from .client import APIClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
class DscApiMixin: | ||
def dsc_info(self, path=None): | ||
""" | ||
Display DSC header information. Identical to the ``ipsw dyld info --dylibs --json`` | ||
command. | ||
Returns: | ||
(dict): The info as a dict | ||
Raises: | ||
:py:class:`ipsw.errors.APIError` | ||
If the server returns an error. | ||
""" | ||
return self._result(self._get(self._url("/dsc/info"), params={"path": path}), True) | ||
|
||
def dsc_macho(self, path=None, dylib=None): | ||
""" | ||
Display DSC dylib information. Identical to the ``ipsw dyld macho DSC DYLIB --json`` | ||
command. | ||
Returns: | ||
(dict): The info as a dict | ||
Raises: | ||
:py:class:`ipsw.errors.APIError` | ||
If the server returns an error. | ||
""" | ||
return self._result(self._get(self._url("/dsc/macho"), params={"path": path, "dylib": dylib}), True) |
Oops, something went wrong.