Skip to content

Commit abeec12

Browse files
Merge pull request #1 from AbhiTheModder/new-unstable
Update with new frida
1 parent 00f383a commit abeec12

File tree

4 files changed

+817
-19
lines changed

4 files changed

+817
-19
lines changed

frida/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
PortalService = core.PortalService
2424
EndpointParameters = core.EndpointParameters
2525
Compiler = core.Compiler
26+
PackageManager = core.PackageManager
2627
FileMonitor = _frida.FileMonitor
2728
Cancellable = core.Cancellable
2829

frida/_frida/__init__.pyi

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,4 +774,94 @@ class Compiler(Object):
774774
"""
775775
...
776776

777+
class PackageManager(Object):
778+
@property
779+
def registry(self) -> str:
780+
"""
781+
The registry being used.
782+
"""
783+
...
784+
785+
@registry.setter
786+
def registry(self, value: str) -> None:
787+
"""
788+
Change the registry to use.
789+
"""
790+
...
791+
792+
def search(
793+
self,
794+
query: str,
795+
offset: Optional[int] = None,
796+
limit: Optional[int] = None,
797+
) -> PackageSearchResult:
798+
"""
799+
Search for packages to install.
800+
"""
801+
...
802+
803+
def install(
804+
self,
805+
project_root: Optional[str] = None,
806+
role: Optional[str] = None,
807+
specs: Optional[Sequence[str]] = None,
808+
omits: Optional[Sequence[str]] = None,
809+
) -> PackageInstallResult:
810+
"""
811+
Install one or more packages.
812+
"""
813+
...
814+
815+
class Package(Object):
816+
@property
817+
def name(self) -> str:
818+
"""
819+
Package name.
820+
"""
821+
...
822+
823+
@property
824+
def version(self) -> str:
825+
"""
826+
Package version.
827+
"""
828+
...
829+
830+
@property
831+
def description(self) -> Optional[str]:
832+
"""
833+
Package description.
834+
"""
835+
...
836+
837+
@property
838+
def url(self) -> Optional[str]:
839+
"""
840+
Package URL.
841+
"""
842+
...
843+
844+
class PackageSearchResult(Object):
845+
@property
846+
def packages(self) -> List[Package]:
847+
"""
848+
Batch of matching packages.
849+
"""
850+
...
851+
852+
@property
853+
def total(self) -> int:
854+
"""
855+
Total matching packages.
856+
"""
857+
...
858+
859+
class PackageInstallResult(Object):
860+
@property
861+
def packages(self) -> List[Package]:
862+
"""
863+
The toplevel packages that are installed.
864+
"""
865+
...
866+
777867
__version__: str

0 commit comments

Comments
 (0)