{"id":26401449,"url":"https://github.com/elliottophellia/clock.py","last_synced_at":"2025-07-11T23:38:42.664Z","repository":{"id":156716348,"uuid":"423513821","full_name":"elliottophellia/clock.py","owner":"elliottophellia","description":"A Python implementation of the classic tty-clock, a digital clock for your terminal.","archived":false,"fork":false,"pushed_at":"2025-03-11T06:05:35.000Z","size":107,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T06:29:54.844Z","etag":null,"topics":["clock-app","clock-cli","tty-clock"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elliottophellia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-01T15:18:55.000Z","updated_at":"2025-03-11T06:05:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"1dd4713b-51f1-401f-a139-f1d9b11ecd66","html_url":"https://github.com/elliottophellia/clock.py","commit_stats":null,"previous_names":["elliottophellia/clock.py"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliottophellia%2Fclock.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliottophellia%2Fclock.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliottophellia%2Fclock.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliottophellia%2Fclock.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elliottophellia","download_url":"https://codeload.github.com/elliottophellia/clock.py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056342,"owners_count":20390719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clock-app","clock-cli","tty-clock"],"created_at":"2025-03-17T14:51:48.470Z","updated_at":"2025-03-17T14:51:49.130Z","avatar_url":"https://github.com/elliottophellia.png","language":"Python","funding_links":["https://paypal.me/ReidhoSatria"],"categories":[],"sub_categories":[],"readme":"# Clock.py\n\nA Python implementation of the classic tty-clock, a digital clock for your terminal.\n\n\n![Python](https://img.shields.io/badge/PYTHON-3.X-bf616a?style=flat-square) ![License](https://img.shields.io/badge/LICENCE-CC%20BY%20SA%204.0-ebcb8b?style=flat-square) ![Version](https://img.shields.io/badge/VERSION-1.0.0-a3be8c?style=flat-square)\n\n[![Buy Me a Coffee](https://img.shields.io/badge/BUY%20ME%20A%20COFFEE-79B8CA?style=for-the-badge\u0026logo=paypal\u0026logoColor=white)](https://paypal.me/ReidhoSatria) [![Traktir Saya Kopi](https://img.shields.io/badge/TRAKTIR%20SAYA%20KOPI-FAC76C?style=for-the-badge\u0026logo=BuyMeACoffee\u0026logoColor=black)](https://saweria.co/elliottophellia)\n\n## Features\n\n- 12/24 hour mode\n- Show/hide seconds\n- Display date\n- Custom colors\n- Blink separator\n- UTC time mode\n- Centered or custom positioning\n- Bold characters\n\n## Installation\n\n### Release\n\n```bash\n# Install using pipx\npipx install ttyclock-py\n```\n\n### Build from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/elliottophellia/clock.py\n\n# Change directory\ncd clock.py\n\n# Build the package\npoetry build\n\n# Install the package\npipx install dist/ttyclock_py-1.0.0.tar.gz\n```\n\n## Usage\n\n```bash\nttyclock-py\n```\n\n### Command Line Options\n\n```\n-h, --help            show this help message and exit\n-c, --center          Center the clock in the terminal\n-s, --seconds         Show seconds in the clock\n-b, --bold            Use bold characters\n-t, --twelve          Use 12-hour format\n-P, --ampm            Show AM/PM indicator in 12-hour format\n-k, --blink           Blink the colon\n-u, --utc             Use UTC time\n-d, --date            Show current date\n-C, --color {0,1,2,3,4,5,6,7}\n                      Set the clock color (0-7)\n-x X                  Set the clock's x position\n-y Y                  Set the clock's y position\n-D, --delay DELAY     Set the update delay (seconds)\n-S, --save-config     Save current settings to config file\n```\n\n## Configuration\n\nThe program stores its configuration in `~/.config/clock-py/config.json`. You can modify this file directly or use the `--save-config` option to save your current settings.\n\nDefault configuration:\n```json\n{\n  \"color\": \"GREEN\",\n  \"delay\": 0.1,\n  \"options\": {\n      \"twelve_hour\": False,\n      \"show_seconds\": False,\n      \"bold\": False,\n      \"center\": False,\n      \"blink_colon\": False,\n      \"utc\": False,\n      \"show_date\": False,\n      \"show_ampm\": False,\n  },\n  \"position\": {\n      \"x\": 0,\n      \"y\": 0\n  }\n}\n```\n\n## License\n\nThis project is licensed under the Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.0). For more information, please refer to the [LICENSE](LICENSE) file included in this repository.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliottophellia%2Fclock.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felliottophellia%2Fclock.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliottophellia%2Fclock.py/lists"}