clocksays
This small projects converts a given time (datetime.datetime) in a string of natural language. Languages supported so far:
- German
- English
- French
Feel free to add other languages and issue pull request.
Usage
import clocksays.saytime as st
import datetime as dt
t_str = st.clocksays(t = dt.datetime.now(), language='de', prefix='Es ist ', suffix='.')
print(t_str)
t_str = st.clocksays(t = dt.datetime.now(), language='en', prefix='It is ', suffix='.')
print(t_str)
t_str = st.clocksays(t = dt.datetime.now(), language='fr', prefix='Il est ', suffix='.')
print(t_str)
Release files for clocksays 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clocksays-0.2.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clocksays-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / clocksays-0.2.1.tar.gz
| Download URL | clocksays-0.2.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee6b5509f61d2088c84c6e9146534504544fb5109b5880cb5a0849460dec8cba
|
|
BLAKE2b-256 checksum How to use checksums |
a1fef176f8c0986dcfb9a7c33b3088522acc744fadf357c0f8bea7164241490f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|
Release files / clocksays-0.2.1-py3-none-any.whl
| Download URL | clocksays-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d75fec6348ac717be440b8dec5d40ce65026b329c1fa365519ad7142665d1bb
|
|
BLAKE2b-256 checksum How to use checksums |
a164fce4e47a3f3cfb8ffa860c16b3ac18796c597986408adcffd19dc13c57ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|