Skip to main content

Zodiac Signs

Project description

Description

Getting the Zodiac sign by date.

Languages:

  • English

  • Russian

Install

$ pip install zodiac-sign

Example

from zodiac_sign import get_zodiac_sign
from datetime import date

d = date(1988, 3, 6)

# only data param
print(get_zodiac_sign(d))

# two params - day and month, without year
print(get_zodiac_sign(6, 3))

Example with locale

from zodiac_sign import get_zodiac_sign
import locale

locale.setlocale(locale.LC_ALL, 'ru_RU')
print(get_zodiac_sign(6, 3))
# out "Рыбы"

locale.setlocale(locale.LC_ALL, 'en_US')
print(get_zodiac_sign(6, 3))
# out "Pisces"

Repository

https://github.com/crusat/python-zodiac-sign

License

MIT

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

zodiac-sign-0.1.2.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

zodiac_sign-0.1.2-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page