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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pydeclient-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36593ce209b31dda0c169e3368a573f3a4f53159a77e230309053d13ec647b13 |
|
MD5 | c4f372fb021e4e174de3a45cebabc9e9 |
|
BLAKE2b-256 | 3a96cddf269284359f54c57a2f9b15121227eec6b3afb8aa67107d8b7e151593 |