Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sameerkumar18/pyaztro

Python Wrapper for aztro - The Astrology API | Get Daily Horoscope 💫
https://github.com/sameerkumar18/pyaztro

astrology horoscope horoscope-api pip pypi pypi-packages python python2 python3

Last synced: about 1 month ago
JSON representation

Python Wrapper for aztro - The Astrology API | Get Daily Horoscope 💫

Awesome Lists containing this project

README

        

PyAztro
============
|downloads| |GitHub make-a-pull-requests| |Maintenance yes| |Paypal| |say thanks|

PyAztro is a client library for `aztro `_ written in Python.

aztro provides horoscope info for sun signs such as Lucky Number, Lucky Color, Mood, Color, Compatibility with other sun signs, description of a sign for that day etc.

Documentation for aztro API is available `here `_, documentation for PyAztro most of the common usage.

Requirements
---------------

* Python 3+ (Recommended)
* The ``requests`` and ``dateutils`` library. `pip` should handle this for you when installing pyaztro.

Installation
---------------
::

$ pip install pyaztro

Usage
------------------
::

>>> import pyaztro
>>> horoscope = pyaztro.Aztro(sign='aries')

# Mood
>>> horoscope.mood
'Relaxed'

# Lucky time
>>> horoscope.lucky_time
'2pm'

# Description
>>> horoscope.description
'If you don't have big plans, you can rest assured that you will soon. A surprise missive is waiting. Enjoy. It's spontaneity, not variety, that's the spice of life.'

# Sun sign date range
>>> horoscope.date_range
[datetime.datetime(2019, 3, 21, 0, 0), datetime.datetime(2019, 4, 20, 0, 0)]

# Lucky Color
>>> horoscope.color
'Spring Green'

# Sign compatibility
>>> horoscope.compatibility
'Aquarius'

# Horoscope date for which the info is valid for
>>> horoscope.current_date
datetime.date(2019, 6, 2)

# Lucky number
>>> horoscope.lucky_number
85

Support
----------
If you encounter any bugs, please let me know by `creating an issue `_ or tweeting at me `@sameer_kumar018 `_.

Author
------
`Sameer Kumar `_

.. |downloads| image:: https://pepy.tech/badge/pyaztro
:target: https://pepy.tech/project/pyaztro

.. |GitHub make-a-pull-requests| image:: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
:target: http://makeapullrequest.com

.. |say thanks| image:: https://img.shields.io/badge/say-thanks-ff69b4.svg
:target: https://saythanks.io/to/sameerkumar18

.. |Maintenance yes| image:: https://img.shields.io/badge/Maintained%3F-yes-green.svg
:target: https://gitHub.com/sameerkumar18/pyaztro

.. |Paypal| image:: https://img.shields.io/badge/Paypal-Donate-blue.svg
:target: https://www.paypal.me/sameerkumar18