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
Metadata
Release files for strf-hint 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| strf_hint-0.10.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| strf_hint-0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / strf_hint-0.10.tar.gz
| Download URL | strf_hint-0.10.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59d4cc4c0ff90589e31aea6c7f3229fbe8db4cb3ff282a06df797a488bfd95c5
|
|
BLAKE2b-256 checksum How to use checksums |
eb7b07bf5532cd29c0588f0861a9d3e74c78b57251afc8e60a5d793945e36504
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.7
|
Release files / strf_hint-0.10-py3-none-any.whl
| Download URL | strf_hint-0.10-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8077856f94bfc27e69a8e8e7e224f585f8e94afa2ef3220ffa36c188c8ecc78a
|
|
BLAKE2b-256 checksum How to use checksums |
97b1cbe644297b3deb9cbcc2e53512c91fc8816a5d7f93693c048ddd228c52cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.7
|