Skip to content

This is a Python project that uses the `rich` library to create a visually appealing command-line interface, displaying various information about the current date, including lunar calendar, solar terms, zodiac signs, and Bazi.

Notifications You must be signed in to change notification settings

XiDlilA/fortune-tellers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fortune-tellers

This is a Python project that uses the rich library to create a visually appealing command-line interface, displaying various information about the current date, including lunar calendar, solar terms, zodiac signs, and Bazi. Alt text

Dependencies

This project depends on the following Python libraries:

  • json
  • datetime
  • requests
  • rich

You can install these libraries using the following command:

pip install requests rich

Usage First, you need to create an API object:

api = API()

Then, you can call the today method to display information about the current date:

api.today()

This will display an interface in the command line that includes information about the current date. Or use

./tell --today

Classes and Methods

This project includes two classes: API and DateInfo.

The API class includes a method today that retrieves information about the current date and displays it in the command line.

The DateInfo class includes a method getTodayInfo that retrieves information about the current date from the API and returns a dictionary containing this information.

Note

This project uses an external API to retrieve date information, so you need a stable internet connection to use this project.

About

This is a Python project that uses the `rich` library to create a visually appealing command-line interface, displaying various information about the current date, including lunar calendar, solar terms, zodiac signs, and Bazi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages