Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for mythril #1773

Open
Hagar-Usama opened this issue May 31, 2023 · 2 comments
Open

API for mythril #1773

Hagar-Usama opened this issue May 31, 2023 · 2 comments

Comments

@Hagar-Usama
Copy link

Description

There should be a clear way to include Mythril as a package inside my Python project

Background

I've a Python project and I need a way to include Mythril and use its commands inside without the need for the terminal commands

@norhh
Copy link
Collaborator

norhh commented May 31, 2023

You can simply import mythril and use whatever libraries you want.
The easiest method would be running terminal commands in python using subprocess.check_output in python.
output = check_output(command, shell=True, stderr=STDOUT).decode("UTF-8")

@dalangll
Copy link

Is there a usage example of importing myril?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants