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
```
==========
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
```
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Underscore-0.0.30000001.tar.gz.
File metadata
- Download URL: Underscore-0.0.30000001.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff896066c7bb0b4232beae33cd2adbbd74b5e0c7f994107f045ef47b4d7cf2f2
|
|
| MD5 |
c91b77f014bb2131976440585c2495c9
|
|
| BLAKE2b-256 |
44c62c6ce3bf34024e03c7769334fee077db892117452f5a435684db47012289
|