Skip to main content

Type stubs for Hopper Disassembler Python API

Project description

Hopper Disassembler Python API Type Stubs

What is it?

These type stubs provide intelligent code completion, type checking, and enhanced developer experience when writing automation scripts for Hopper. These stubs transform the scripting process from guesswork into a confident, productive workflow by offering:

  • Smart Autocomplete: Get instant suggestions for methods, properties, and classes as you type
  • Real-time Type Checking: Catch errors before runtime with static type analysis
  • Enhanced Documentation: Access comprehensive API documentation directly in your IDE
  • Improved Code Navigation: Easily explore the Hopper API with reliable jump-to-definition features
  • Professional Development Experience: Enjoy the same comfort of modern Python development tools

stubs-in-action.mp4

Installation

pip install types-hopper-disassembler

Or install from source:

git clone https://github.com/fi5t/hopper-disassembler-stubs.git
cd hopper-disassembler-stubs
pip install -e .

Usage

Once installed, your IDE will automatically provide type hints for Hopper scripts:

autocomplete.png

# type: ignore
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from hopper_api import Document, GlobalInformation

# Get type hints and autocomplete!
doc: Document = Document.getCurrentDocument()
version = GlobalInformation.getHopperVersion()

print(version)

for segment in doc.getSegmentsList():
    print(segment.getName())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

types_hopper_disassembler-1.0.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

types_hopper_disassembler-1.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file types_hopper_disassembler-1.0.0.tar.gz.

File metadata

File hashes

Hashes for types_hopper_disassembler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ad70b6b45886902ed09a530a89ae61efc4ceac36e139006b8f70782b416ea87f
MD5 00c1fad7d7ee7cad07d2ae74a5705bf7
BLAKE2b-256 203895cafb4daf04c01a03bc575068dc9e650d64e58f94bf4bd64c6b96bc2de9

See more details on using hashes here.

File details

Details for the file types_hopper_disassembler-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for types_hopper_disassembler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd82588a76b38034c976dc85e15b66738326f92af56d99b021483973fb234eb5
MD5 9b488261f057865276c34e4507d1c463
BLAKE2b-256 dd27f44dcadf7cc2b7ff154be1a31616e4aa2624b759ada9281843de115b0a2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page