Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Obfuscating code by changing the variable names to underscores

Project Description
Underscore
==========
Obfuscating code by changing the variable names to underscores

## Installation
```
pip install underscore
```

## Usage
```
$ _ [file] > _file.py
```
You can also compile through python
```python
from underscore import _

_(filename, output_filename)
```

## Example

###### Input
```python
# 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
```python
# _fib.py

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

## Tests
```
nosetests
```
Release History

Release History

This version
History Node

0.0.1

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting