Zodiac Signs
Project description
Description
Getting the Zodiac sign by date.
Languages:
English (en_US, default)
Russian (ru_RU)
Portuguese (pt_BR, pt_PT) - Thanks to @guilhermecomum
Greek (el, el_CY, el_GR) - Thanks to @hargikas
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
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.2.3.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for zodiac_sign-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc48b96c334907552af7b9bd042c0e6b4ef69356bf43e4287f8c9ee4cecd0b8 |
|
MD5 | c9b4c2e99172bf92993f6cb01300c019 |
|
BLAKE2b-256 | e7f8b8104023612e24c14d4e694649acd2649f152b93f46c007b5183696d8839 |