touch
A lightweight implementation of the Unix touch command for Windows, written in Python.
touch creates a file if it does not exist. If the file already exists, its timestamp is updated without modifying its contents.
Features
- Create files from the command line
- Update timestamps of existing files
- Touch multiple files in a single command
- Support file and directory paths
- Continue processing remaining paths if one operation fails
- Return a non-zero exit code when an operation fails
- No runtime dependencies
Usage
Touch a single file:
touch hello.txt
Touch multiple files:
touch one.txt two.txt three.txt
Paths containing spaces can be quoted:
touch "hello world.txt"
Existing files are not overwritten. Their timestamps are updated instead.
Installation
Installation instructions will be added when the package is published to PyPI.
Development
This project uses uv for Python project and dependency management.
Clone the repository and run the command locally with:
uv run touch hello.txt
Run the help command with:
uv run touch --help
Requirements
- Windows
- Python 3.14 or later
Status
touch is currently in early development.
Version 0.1.0 implements the core touch functionality. Additional Unix touch options will be added in future versions.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file touch-0.1.0.tar.gz.
File metadata
- Download URL: touch-0.1.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfe5c8828bd3667e2a2aa853d871bf16db29421f07cba2ef46b55d464145000d
|
|
| MD5 |
93cabad1763dbc09759de7b0f9d86be7
|
|
| BLAKE2b-256 |
6747e01c9ce1cd7544ba5f98e341ff63766ac732ad01d9a1ec3e862bfedf4628
|
File details
Details for the file touch-0.1.0-py3-none-any.whl.
File metadata
- Download URL: touch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b0a3a8a37cfc0f3396f597ded0e767d97e2fa5c4f6619e45148658e0e3e4007
|
|
| MD5 |
5a6f5a68a56e6d456328cca591421153
|
|
| BLAKE2b-256 |
a223e9293d37bca5fd075e76e4eace377ca228252548d2f8c8b67e62c3b1a349
|