dstamp
CLI app for generating timestamps for use in Discord chats.
TODO
I intend to rewrite this project to use the standard argparse library instead of cyclopts. This makes the whole typer-to-cyclopts migration seem rather silly. My reasoning is that cyclopts is a bit too heavy-handed for my tastes, and I prefer how argparse forces you to separate parsing from handling functions.
Installation
pipx install dstamp
uv tool install dstamp
Example usage
# For the current time
dstamp get
# Two hours in the future
dstamp get --offset 2h
# Round to the nearest hour
dstamp get --offset 2h --round --precision h
# Copy to clipboard
dstamp --copy-to-clipboard
For full documentation see the help messages:
dstamp --help
dstamp get --help
Configuration
dstamp accepts a TOML configuration file which can override any command-line
argument. Keys should be structured as command.option. For example, to enable
rounding by default and set a custom default rounding precision for the get
command, you could do the following:
[get]
round = true
precision = "15m"
Use the show-config command to find the default config location. Specify the
--config flag to use a different file.
dstamp show-config
dstamp --config ./path-to-a-different-file.toml
Versioning
This project uses an X.Y versioning scheme. Bugfixes will move the version to
X.Y+1, and anything else will move it to X+1.0. If Y is 0, we omit it,
so X+1.0 actually just becomes X+1.
Contributing
If you'd like to see something added to dstamp or if you would like to add something yourself, please see CONTRIBUTING!
Please also see the above if you have a bug to report.
Metadata
Release files for dstamp 2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dstamp-2.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dstamp-2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.0 kB
Release files / dstamp-2.tar.gz
| Download URL | dstamp-2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0f1c5f4dc4f6d3bf2cd14f9d7896f9d1b35bcda84dba09c3c2553d50b01f749
|
|
BLAKE2b-256 checksum How to use checksums |
a9b68893aeeca5c0e3cee53bd352b6eed1f2866b087465b369ec002d06bfcf59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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 / dstamp-2-py3-none-any.whl
| Download URL | dstamp-2-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef7607107abe3963b3939071dd4308cf9584a60b80668e2894f1058cb2d304a2
|
|
BLAKE2b-256 checksum How to use checksums |
d053169c66849682e75c7cc87c8a8cc79eee27c4ea667675b5c6d6e7a95eeab4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}
|