Skip to main content

Nuke

version license wheel python CI

say-thanks

Command line tool for nuking a directory 💥.

Installation

Installing nuke is intended to be super easy. The only dependency is a supported Python interpreter. You can get nuke via pip:

$ pip install nuke

nuke is supported for Python 3.7+.

Usage

The most common usage of nuke is when you wish to recreate a build directory for a build program such as CMake.

To use nuke, you just call nuke from the command line and specify the directory you wish to nuke:

$ nuke path/to/directory

If you are already in the directory you wish to nuke, you don't need to exit the directory. Calling nuke without any arguments will nuke the current directory:

$ nuke  # same as "nuke ."

Since nuking is a dangerous operation and you don't want to inadvertently delete something important, nuke always asks you to confirm the nuking of a directory. If you wish to override this since you know what you are doing or you wish to use nuke in a shell script, you can pass in the -y flag:

$ nuke -y /path/to/dir/

You can also specify a .nukeignore file inside the directory to be nuked. This works similar to the .gitignore file. Every file that matches a pattern in the .nukeignore is ignored and spared from a gruesome fate of its eligible siblings.

For example:

*.py

will result in all .py files not being nuked.

Suppose you just want to see what files will be nuked without actually deleting them, you can then run nuke -l /path/to/dir, and this will print out the directory tree of all the files that will be nuked.

Release files for nuke 2.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nuke 2.6.2
File Size Uploaded
nuke-2.6.2.tar.gz 29.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nuke 2.6.2
File Interpreter ABI Platform
nuke-2.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 37.5 kB

Release files / nuke-2.6.2.tar.gz

Download URL nuke-2.6.2.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a434cb936fe8ac80705e38492663efba4f994c81d449d9c8ef7c789d8ddbb60c
BLAKE2b-256 checksum
How to use checksums
43bc68558fa8ed17c64d73d5deec5fba85412d56fe50e4b847821743fa82316d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.5

Release files / nuke-2.6.2-py3-none-any.whl

Download URL nuke-2.6.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ded5c7cb42bd7e7cdad63c2d80f4e250818df924959eccd61bd82b58af4920b0
BLAKE2b-256 checksum
How to use checksums
c9aeffd5359a458a077a48d17427e60cce9c2af71f785316012859741e823046
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.5

Release history Release notifications | RSS feed

This release

2.6.2 This release

2 release files

2.6.1

2 release files

2.5.4

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.5

2 release files

2.4.4

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.2.5

1 release file

2.2.4

1 release file

2.2.3

1 release file

2.2.2

1 release file

2.2.1

2 release files

2.2.0

1 release file

2.1.1

1 release file

2.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page