Skip to content

DjagbleyEmmanuel/Shortlife_Clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Shortlife Clock

Shortlife Clock is a Python application that calculates life expectancy based on user input and provides health tips and motivational quotes. The application features a user-friendly interface built with PyQt5 and offers a range of customization options to enhance the user experience.


Features

  • Life Expectancy Calculation:

    • Calculate life percentage used based on age, gender, and continent.
    • Display detailed statistics, including days, weeks, months, and years remaining.
  • Customizable Health Tips and Motivational Quotes:

    • Add, remove, and manage health tips and motivational quotes.
    • Personalized tips and quotes make the app more engaging and relevant.
  • Daily Health Tips:

    • Receive daily health tips to encourage a healthier lifestyle.
  • Countdown Timer:

    • A real-time countdown timer displays the remaining time in days, hours, minutes, and seconds.
  • Dark/Light Mode:

    • Toggle between dark and light mode for a comfortable viewing experience.
  • Export Data:

    • Export life statistics (life percentage, days lived, remaining days) to a CSV file for easy sharing and analysis.
  • User Preferences:

    • Save user preferences, including dark mode, health tips, and motivational quotes, for a personalized experience across sessions.
  • Improved UI/UX:

    • Tooltips for input fields and buttons.
    • Icons for buttons (e.g., dark mode toggle).
    • Responsive and visually appealing layout.

Requirements

  • Python 3.x
  • PyQt5 (pip install PyQt5)
  • dateutil (pip install python-dateutil)

Installation

  1. Clone the repository:

    git clone https://github.com/DjagbleyEmmanuel/shortlife-clock.git
    cd shortlife-clock
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the application:

    python Shortlife_Clock_3.0.py

Usage

  1. Enter your age manually or select your birthdate.
  2. Choose your gender and continent.
  3. Click Calculate to see your life percentage, days lived, and remaining days.
  4. Toggle Dark/Light Mode for a comfortable viewing experience.
  5. Use the Manage Health Tips and Manage Motivational Quotes buttons to customize the app.
  6. Export your life statistics to a CSV file using the Export Data button.

Screenshots

Shortlifeclock

Example screenshot of the Shortlife Clock application.


Contributing

Contributions are welcome! If you have suggestions, bug reports, or feature requests, please:

  1. Submit an issue on GitHub.
  2. Fork the repository and create a pull request with your changes.

Please ensure your code follows the project's coding standards and includes appropriate documentation.

Acknowledgments

  • Thanks to the PyQt5 community for providing a powerful framework for building desktop applications.
  • Inspired by the concept of life expectancy calculators and productivity tools.

About

Shortlife Clock is a Python application that calculates life expectancy.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages