Skip to main content

CLI app for generating timestamps for use in Discord chats.

Project description

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

Install using pipx or uv:

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dstamp-2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dstamp-2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file dstamp-2.tar.gz.

File metadata

  • Download URL: dstamp-2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for dstamp-2.tar.gz
Algorithm Hash digest
SHA256 e0f1c5f4dc4f6d3bf2cd14f9d7896f9d1b35bcda84dba09c3c2553d50b01f749
MD5 729bd2cd90c089b5df84006cbf75225f
BLAKE2b-256 a9b68893aeeca5c0e3cee53bd352b6eed1f2866b087465b369ec002d06bfcf59

See more details on using hashes here.

File details

Details for the file dstamp-2-py3-none-any.whl.

File metadata

  • Download URL: dstamp-2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for dstamp-2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7607107abe3963b3939071dd4308cf9584a60b80668e2894f1058cb2d304a2
MD5 039f160548dc22f9117b8855a5b98e54
BLAKE2b-256 d053169c66849682e75c7cc87c8a8cc79eee27c4ea667675b5c6d6e7a95eeab4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page