[GH-ISSUE #112] ask for python version #41

Open
opened 2026-03-03 13:52:27 +03:00 by kerem · 5 comments
Owner

Originally created by @ghost on GitHub (Sep 21, 2024).
Original GitHub issue: https://github.com/jehna/humanify/issues/112

Is there any version for python?

Originally created by @ghost on GitHub (Sep 21, 2024). Original GitHub issue: https://github.com/jehna/humanify/issues/112 Is there any version for python?
Author
Owner

@jehna commented on GitHub (Sep 21, 2024):

Not anymore. You can still find v1 from the version history that had some python components, but as far as I know there's not an easy way to parse and manipulate Javascript with Python.

<!-- gh-comment-id:2365315895 --> @jehna commented on GitHub (Sep 21, 2024): Not anymore. You can still find v1 from the version history that had some python components, but as far as I know there's not an easy way to parse and manipulate Javascript with Python.
Author
Owner

@ghost commented on GitHub (Sep 22, 2024):

i mean version for decode code encrypt for python

<!-- gh-comment-id:2366866537 --> @ghost commented on GitHub (Sep 22, 2024): i mean version for decode code encrypt for python
Author
Owner

@jehna commented on GitHub (Sep 22, 2024):

No Python version at the moment. You should be able to wrap the CLI to Python wrapper if needed, but don't know if that serves your use case

<!-- gh-comment-id:2366871827 --> @jehna commented on GitHub (Sep 22, 2024): No Python version at the moment. You should be able to wrap the CLI to Python wrapper if needed, but don't know if that serves your use case
Author
Owner

@0xdevalias commented on GitHub (Sep 24, 2024):

i mean version for decode code encrypt for python

You should be able to wrap the CLI to Python wrapper if needed

@jehna @Galkurta If I understand this question properly, it's to be able to run humanify against mangled python code, not to be able to call it from python.

@Galkurta The way humanify is currently written, it relies on webcrack to do the 'heavy lifting' of the code unminification / AST manipulation, and then humanify just sprinkles some 'rename variables nicely with AI' on top of that. webcrack is specifically written for unminifying JavaScript code. If you wanted something similar to humanify for python, you would basically need to find an appropriate python unminifier/decompiler that could replace webcrack.

I'm curious, what is your usecase/workflow, as my understanding is that reversing python code would likely be a pretty different method than reversing JavaScript.

<!-- gh-comment-id:2372587244 --> @0xdevalias commented on GitHub (Sep 24, 2024): > i mean version for decode code encrypt for python > You should be able to wrap the CLI to Python wrapper if needed @jehna @Galkurta If I understand this question properly, it's to be able to run `humanify` against mangled python code, not to be able to call it from python. @Galkurta The way `humanify` is currently written, it relies on [webcrack](https://github.com/j4k0xb/webcrack) to do the 'heavy lifting' of the code unminification / AST manipulation, and then `humanify` just sprinkles some 'rename variables nicely with AI' on top of that. `webcrack` is specifically written for unminifying JavaScript code. If you wanted something similar to `humanify` for python, you would basically need to find an appropriate python unminifier/decompiler that could replace `webcrack`. I'm curious, what is your usecase/workflow, as my understanding is that reversing python code would likely be a pretty different method than reversing JavaScript.
Author
Owner

@jehna commented on GitHub (Oct 18, 2024):

Right, sorry I misunderstood. Thanks @0xdevalias for clarifying!

I'm sure this same technique could be done in a language-agnostic way too, e.g. using a language server from VSCode or other means to support renaming multiple different languages.

Unfortunately humanity is specifically focusing at javascript at the moment, and there's no plans on supporting other languages at the moment.

@Galkurta would love to hear your use case though!

<!-- gh-comment-id:2423196348 --> @jehna commented on GitHub (Oct 18, 2024): Right, sorry I misunderstood. Thanks @0xdevalias for clarifying! I'm sure this same technique could be done in a language-agnostic way too, e.g. using a language server from VSCode or other means to support renaming multiple different languages. Unfortunately humanity is specifically focusing at javascript at the moment, and there's no plans on supporting other languages at the moment. @Galkurta would love to hear your use case though!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/humanify#41
No description provided.