Skip to main content

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)

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

nudatus-0.0.2.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file nudatus-0.0.2.tar.gz.

File metadata

  • Download URL: nudatus-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nudatus-0.0.2.tar.gz
Algorithm Hash digest
SHA256 254df72ee580c1ddea0253dc7a4933d6699347ce307b79119c970ea21bce811e
MD5 17ff869c718e08e080d2de376bbfd735
BLAKE2b-256 672cb7bee19a9a8f5799a1129bd97493537996d41278afd52a6ee98f4411f28b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page