Skip to main content

A package for requesting decompiler service

Project description

Decompiler-Client (declient)

Asynchronous Request

from declient import decompile_async, get_decompilers_async
import asyncio
async def main():
    base_url = "http://localhost:8000"  # Example base URL
    decompilers = await get_decompilers_async(base_url)

    binary_path = "/path/to/binary"
    address_list = ["0x1a00", "0x1b00"]  # Example address list

    tasks = [
        asyncio.create_task(decompile_async(binary_path, address_list, decompiler_name))
        for decompiler in decompilers
    ]
    for task in tasks:
        print(await task)

if __name__ == "__main__":
    asyncio.run(main())

Synchronous Request

from declient import get_decompilers, decompile

binary_path = "/path/to/binary"
address_list = ["0x1a00", "0x1b00"]  
base_url = "http://localhost:8000"  
decompilers = get_decompilers(base_url)

for decompiler_name in decompilers:
    print(decompile(binary_path, address_list, decompiler_name, base_url))

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

pydeclient-1.0.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

pydeclient-1.0.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

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