One letter variables thoughtlessly strewed about a codebase annoyed a colleague and an idle thought became this poorly named project.
Uses the AST (and some cool projects like Astor and codegen.py) to quickly mangle / transform your code.
Why not just rename the variable and be done with it?
Excellent question! It’s fun to play at the A.S.T.!
Example usage
..:
$ python -m nato somefile.py > one_letter_variable_free.py
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nato-1.0.0.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nato-1.0.0-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file nato-1.0.0.tar.gz.
File metadata
- Download URL: nato-1.0.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
011e64b8c503bd845b7d27b9d1cd87544c22246dc10f22e739b470404e182df2
|
|
| MD5 |
009dd36963c089bbf3afce57ce0cf733
|
|
| BLAKE2b-256 |
13f2d6e07c07142b0c015f3f17fdcc3d61c06f68f0fed3e84dae9cdab7f89259
|
File details
Details for the file nato-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nato-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43d151cf0af41f87dcfebbdf1edeef9b383f64daab1cc13cc9a1653e54bb9e27
|
|
| MD5 |
b8845e81d394ce5c2be9501c7f8b91d7
|
|
| BLAKE2b-256 |
14ff188fde3fa09594fdf536c5cd15a372075e77409c099cd65ccbb8fca4b80c
|