Nudatus is a tool to remove comments from python scripts
It’s created for use in uflash to help squeeze longer programs onto the micro:bit but it should be suitable for various environments with restricted storage
Note Nudatus uses the tokenizer built into Python so only supports the syntax of the version it’s running on but it’s extreamly unlikly this will cause you any issues (print is handled fine)
Personally I pronounce nudatus as new-dat-us which I appreciate is probably ‘wrong’
Usage
Nudatus is designed to be embedded within a greater tool (like uflash or Mu by ntoll) but also provides a CLI tool
nudatus [-h] [--version] [input] [output]
An input file must be specified but if output is omitted the result will be printed on stdout
Calling from a Python script is quite simple:
import nudatus
source = '' # Input script
result = nudatus.mangle(source) # Result as str
0.0.2
Respect the contents of lists and dicts
0.0.1
Initial release.
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 nudatus-0.0.3.tar.gz.
File metadata
- Download URL: nudatus-0.0.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca2324777a10df8593eacacdd37a00e8fc780d5dc6a78cb02d6e6a5a85337ac9
|
|
| MD5 |
a3eef0ffc6a2d4fc9444235a9b98522e
|
|
| BLAKE2b-256 |
f2c93c3bcd7e9b2acd5cb52f34e638d8448b1b8089514fd02b2f2d78cf169098
|