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.
Release files for strptime-cli 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| strptime_cli-0.5.0.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| strptime_cli-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / strptime_cli-0.5.0.tar.gz
| Download URL | strptime_cli-0.5.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f03b053ed94debf3d99337231b4dd72cf737c4afd2dcc51f9693f5234aed2410
|
|
BLAKE2b-256 checksum How to use checksums |
8ac034791b018f6e58a7727065b270b74083e9b3aae623adc2c51cf69adf6ace
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / strptime_cli-0.5.0-py3-none-any.whl
| Download URL | strptime_cli-0.5.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bf4a114490afaef3b7d705c79f6eed573f700adee720122bdae1d9bc1fc95a7
|
|
BLAKE2b-256 checksum How to use checksums |
b7c3f1829650d6c6e47384d1349b89d7b8c2d09af14467ba3b3818c9599a6cd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|