{"id":13755079,"url":"https://github.com/kerrigan29a/idapython_virtualenv","last_synced_at":"2025-05-10T00:31:34.084Z","repository":{"id":23745441,"uuid":"27119412","full_name":"Kerrigan29a/idapython_virtualenv","owner":"Kerrigan29a","description":"Enable Virtualenv or Conda in IDAPython","archived":false,"fork":false,"pushed_at":"2020-11-11T23:53:32.000Z","size":6,"stargazers_count":39,"open_issues_count":1,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-02-12T15:18:07.931Z","etag":null,"topics":["conda","idapython","python","virtualenv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kerrigan29a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-25T09:56:29.000Z","updated_at":"2023-03-01T09:34:01.000Z","dependencies_parsed_at":"2022-07-23T23:16:06.343Z","dependency_job_id":null,"html_url":"https://github.com/Kerrigan29a/idapython_virtualenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kerrigan29a%2Fidapython_virtualenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kerrigan29a%2Fidapython_virtualenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kerrigan29a%2Fidapython_virtualenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kerrigan29a%2Fidapython_virtualenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kerrigan29a","download_url":"https://codeload.github.com/Kerrigan29a/idapython_virtualenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253346488,"owners_count":21894264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conda","idapython","python","virtualenv"],"created_at":"2024-08-03T10:00:43.900Z","updated_at":"2025-05-10T00:31:33.744Z","avatar_url":"https://github.com/Kerrigan29a.png","language":"Python","readme":"# Multiples virtual envs support for IDAPython\nby Javier Escalada Gómez\n\n## How to install in IDA\n\nOpen IDA and paste the folloging code:\n\n```python\nimport urllib2,os,hashlib\nurllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler()))\noriginal_hash = \"d7c05737619aa0ef86e962832d7812338b39465b088fd55f2c8d996e8e6d72b8\"\nenv_code = urllib2.urlopen('https://raw.githubusercontent.com/Kerrigan29a/idapython_virtualenv/master/envs.py').read()\ncalculated_hash = hashlib.sha256(env_code).hexdigest()\nidadir = get_user_idadir()\nidapythonrc_code = \"from envs import detect_env; detect_env()\"\nif calculated_hash == original_hash:\n    open(os.path.join(idadir,'envs.py'),'wb').write(env_code)\n    open(os.path.join(idadir,'idapythonrc.py'),'ab').write(idapythonrc_code)\n    Warning('Please restart IDA to finish installation')\nelse:\n    Warning('Error validating download (got {} instead of {}), please try manual install'.format(calculated_hash, original_hash))\n```\n\nthen restart.\n\n## Supported envs\n- [Virtualenv](http://virtualenv.pypa.io/en/latest/)\n- [Conda](http://conda.io/)\n\n## How it works\nThis script try to detect automatically if the environment variables are defined. In this case it uses them to activate the Python virtual environment. If the variable is not defined you can call this functions manually:\n- [activate_virtual_env](envs.py#L34)\n- [activate_conda_env](envs.py#L56)\n","funding_links":[],"categories":["\u003ca id=\"ad68872e14f70db53e8d9519213ec039\"\u003e\u003c/a\u003eIDAPython本身"],"sub_categories":["\u003ca id=\"2299bc16945c25652e5ad4d48eae8eca\"\u003e\u003c/a\u003e未分类"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkerrigan29a%2Fidapython_virtualenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkerrigan29a%2Fidapython_virtualenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkerrigan29a%2Fidapython_virtualenv/lists"}