Socket
Socket
Sign inDemoInstall

Dunderscore

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    Dunderscore

Obfuscating code by changing the variable names to underscores


Maintainers
1

Readme

Underscore

Obfuscating code by changing the variable names to underscores

Installation

pip install underscore

Usage

$ _ [file] > _file.py

You can also compile through python

from underscore import _

_(filename, output_filename)

Example

Input
# fib.py

def fib(n):
    a, b = 0, 1
    for i in xrange(n):
        a, b = b, a + b
    return b

print fib(10)
Output
# _fib.py

def _(_):
    (__, ___) = (0, 1)
    for ____ in xrange(_):
    (__, ___) = (___, __ + ___)
    return ___
print _(10)

Tests

nosetests

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc