strptime
Installation
Installing with uv tool:
uv tool install strptime-cli
Installing with pipx:
pipx install strptime-cli
You can also install globally strptime-cli with pip, but I usually recommend installing command-line tools in their own separate environment.
Usage
Run strptime with a date string to see the format string you would need to pass to datetime.datetime.strptime to parse the date:
$ strptime "2030-01-24 05:45"
%Y-%m-%d %H:%M
Development
This project uses uv and just.
Run just to see every available task.
$ just test # run the test suite
$ just check # format, lint, and test
No setup step is needed: uv creates the virtual environment and installs dependencies on the first uv run.
To run the tests on every supported Python version:
just test-all
If you would rather not install just, every task is a short uv command that you can run directly (check the justfile for the commands):
uv run pytest
Releasing
Releases are published to PyPI by GitHub Actions whenever a v* tag is pushed.
From an up-to-date main:
$ just bump minor # or patch, or major
$ git commit -am "Version 0.5.0"
$ just release
The release task refuses to run unless the checks pass, the working tree is clean, and you are on main.
It then tags the current version and pushes, which triggers the release workflow.
License
This package is distributed under the terms of the MIT license.
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 strptime_cli-0.5.0.tar.gz.
File metadata
- Download URL: strptime_cli-0.5.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f03b053ed94debf3d99337231b4dd72cf737c4afd2dcc51f9693f5234aed2410
|
|
| MD5 |
11b28e9c6e1971bf17a12df91945ad0d
|
|
| BLAKE2b-256 |
8ac034791b018f6e58a7727065b270b74083e9b3aae623adc2c51cf69adf6ace
|
File details
Details for the file strptime_cli-0.5.0-py3-none-any.whl.
File metadata
- Download URL: strptime_cli-0.5.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bf4a114490afaef3b7d705c79f6eed573f700adee720122bdae1d9bc1fc95a7
|
|
| MD5 |
b7568b0a59b87935fbdf162d56b6d249
|
|
| BLAKE2b-256 |
b7c3f1829650d6c6e47384d1349b89d7b8c2d09af14467ba3b3818c9599a6cd3
|