Skip to main content

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
```

Project details


Release history Release notifications

This version
History Node

0.0.30000001

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Underscore-0.0.30000001.tar.gz (6.6 kB) Copy SHA256 hash SHA256 Source None Aug 30, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page