Skip to main content

Encrypt your own datetime format using strf codes

Project description

strf_hint

Are you confused when you need to pass the encoded datetime format to a function like strftime? The specific format codes can be tough to remember due to the infrequent need to use them. Strf_hint can solve this trivial problem.

Strf_hint is lightweight and easy to use package, responsible for encoding the datatime formats using strf codes.

How to use it?

In order to transform custom datetime format into strf-codes-containing format, follow steps below:

>>> from strf_hint.recognizer import Recognizer
>>> r = Recognizer()
>>> r.encode_format("Day: Sunday, 2022-Nov-30, 9:30 PM")
'Day: %A, %Y-%b-%d, %-I:%M %p'

Contribution

In case of any bugs found or ideas feel free to contribute to this repository. Issues and PR are welcome.

License

MIT LICENSE

Project details


Release history Release notifications | RSS feed

This version

0.10

Download files

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

Source Distribution

strf_hint-0.10.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

strf_hint-0.10-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file strf_hint-0.10.tar.gz.

File metadata

  • Download URL: strf_hint-0.10.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.7

File hashes

Hashes for strf_hint-0.10.tar.gz
Algorithm Hash digest
SHA256 59d4cc4c0ff90589e31aea6c7f3229fbe8db4cb3ff282a06df797a488bfd95c5
MD5 692191efeff4fbc3db5b040bf1578518
BLAKE2b-256 eb7b07bf5532cd29c0588f0861a9d3e74c78b57251afc8e60a5d793945e36504

See more details on using hashes here.

File details

Details for the file strf_hint-0.10-py3-none-any.whl.

File metadata

  • Download URL: strf_hint-0.10-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.7

File hashes

Hashes for strf_hint-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8077856f94bfc27e69a8e8e7e224f585f8e94afa2ef3220ffa36c188c8ecc78a
MD5 40a8e48f37fe85351e1dca05906c0f8a
BLAKE2b-256 97b1cbe644297b3deb9cbcc2e53512c91fc8816a5d7f93693c048ddd228c52cf

See more details on using hashes here.

Supported by

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