Skip to main content

A Python utility library for talking clock

Project description

Prerequisites

  • Python 3.5+
  • lib playsound
  • lib icalendar

Build Pypi and upload

1. Project structure

py-talkingclock:
   src:
     talkingclock:
         talkingclock.py
         __init__.py
         buddha.ics
         mp3:
             1.mp3
             2.mp3
             ...
   setup.py

2. Build the package

python3 setup.py sdist bdist_wheel

3. Upload the package

twine upload dist/*

Binary Download

TalkingClock

1. Install TalkingClock

  • Run the following command to install talkingclock
    pip3 install talkingclock
    
  • Note: If there's error about "OSError: could not get source code" try the following commands:
    pip3 install --upgrade wheel
    pip3 install --upgrade setuptools
    pip3 install PyObjC
    pip3 install playsound
    pip3 install talkingclock
    

2. Use : play current sound time

  • Import and use talkingclock
    Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from talkingclock import talkingclock
    >>> talkingclock.play_soundtime()   
    
  • Use in cronjob:
    0 8-23 * * * python3 -c "from talkingclock import talkingclock; talkingclock.play_soundtime()" >> ~/logs/time.log 1>&2
    

3. Use : play buddhist holy day sound

  • Import and use talkingclock
    Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from talkingclock import buddhist_holyday
    >>> buddhist_holyday.play_holysound()
    
  • Use in cronjob:
    0 8,12,17 * * * python3 -c "from talkingclock import buddhist_holyday; buddhist_holyday.play_holysound()" >> ~/logs/holyday.log  1>&2
    

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

talkingclock-1.0.tar.gz (618.9 kB view details)

Uploaded Source

Built Distribution

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

talkingclock-1.0-py3-none-any.whl (639.5 kB view details)

Uploaded Python 3

File details

Details for the file talkingclock-1.0.tar.gz.

File metadata

  • Download URL: talkingclock-1.0.tar.gz
  • Upload date:
  • Size: 618.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for talkingclock-1.0.tar.gz
Algorithm Hash digest
SHA256 452ed64025982f45bd73e51b0f57dcd266687c36ad5df95513d965ad5d788d5a
MD5 ce57f5bc60351450b05cfc8c612c097e
BLAKE2b-256 3842beb3ad06515a147a199278e723cd7f5d05e8bdf8f40fd00d289f8b7d810c

See more details on using hashes here.

File details

Details for the file talkingclock-1.0-py3-none-any.whl.

File metadata

  • Download URL: talkingclock-1.0-py3-none-any.whl
  • Upload date:
  • Size: 639.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for talkingclock-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27aa6d642bb1f4ad51d3822b696e5a100cd661e88711c987a99bd2bb58b64be9
MD5 9dc44df661ab927c3629c58af17a160e
BLAKE2b-256 87f278ef45ebddd1f96d297e455fd8c065cef07cf767045811cacaac9c8773df

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