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.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for zodiac_sign-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf2095876077715215ee7a6a32b1db615fedb4fb5ed73d48eb1096e65a80271e |
|
MD5 | ecc0fcbd38dd8124dd1e041ae2a0e2d8 |
|
BLAKE2b-256 | 3ea0d4f7360b73b2e362440e37e8b60df11e8e7c874d20be94d5ecdcd662c17e |