Python Wrapper for aztro - The Astrology API | Get Daily Horoscope πŸ’«

Overview

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

You might also like...
A Python API wrapper for the Twitter API!

PyTweet PyTweet is an api wrapper made for twitter using twitter's api version 2! Installation Windows py3 -m pip install PyTweet Linux python -m pip

Python API wrapper library for Convex Value API

convex-value-python Python API wrapper library for Convex Value API. Further Links: Convex Value homepage @ConvexValue on Twitter JB on Twitter Authen

This an API wrapper library for the OpenSea API written in Python 3.

OpenSea NFT API Python 3 wrapper This an API wrapper library for the OpenSea API written in Python 3. The library provides a simplified interface to f

YARSAW is an Async Python API Wrapper for the Random Stuff API.

Yet Another Random Stuff API Wrapper - YARSAW YARSAW is an Async Python API Wrapper for the Random Stuff API. This module makes it simpler for you to

EpikCord.py - This is an API Wrapper for Discord's API for Python

EpikCord.py - This is an API Wrapper for Discord's API for Python! We've decided not to fork discord.py and start completely from scratch for a new, better structuring system!

A simple Python API wrapper for Cloudflare Stream's API.

python-cloudflare-stream A basic Python API wrapper for working with Cloudflare Stream. Arbington.com started off using Cloudflare Stream. We used the

A bot i made for a dead com server lol it gets updated daily etc

6ix-Bot-Source A bot i made for a dead com server lol it gets updated daily etc For The UserAgent CMD https://developers.whatismybrowser.com/ thats a

Automate HoYoLAB Genshin Daily Check-In Using Github Actions

Genshin Daily Check-In πŸ€– Automate HoYoLAB Daily Check-In Using Github Actions KOR, ENG Instructions Fork the repository Go to Settings - Secrets Cli

A project that automatically sends you a Medium article on a topic of your choosing to your email address daily.

Daily Article from Medium ✏️ About A project that automatically sends you a Medium article on a topic of your choosing to your email address daily. No

Comments
  • Exception on wrong data input

    Exception on wrong data input

    The problem with the class: Aztro in aztro.py is that it raises a ValueError when a wrong input is given to this however the aztro API returns a type string object

    opened by pegasus-lynx 2
  • TypeError

    TypeError

    https://github.com/sameerkumar18/pyaztro/blob/9f433682f1da0b9fbeb5836d4dcae81321fd65a8/tests/tests.py#L74

    >>> import datetime
    >>> datetime.date.today
    <built-in method today of type object at 0x7f6fed481f40>
    
    >>> datetime.date.today - datetime.timedelta(days=1)
    Traceback (most recent call last):
      File "<input>", line 1, in <module>
    TypeError: unsupported operand type(s) for -: 'builtin_function_or_method' and 'datetime.timedelta'
    
    >>> datetime.date.today() - datetime.timedelta(days=1)
    datetime.date(2018, 12, 4)
    
    opened by 42B 1
  • Exception on wrong day input

    Exception on wrong day input

    I found that when we enter wrong information for the day parameter, even then the API returns a JSON response with day parameter set to "today".

    opened by pegasus-lynx 1
Owner
Sameer Kumar
Product Engineer - Fullstack. Code, Finance, Stocks. Loves Products! Drop me a DM if you need help :)
Sameer Kumar
πŸš€ An asynchronous python API wrapper meant to replace discord.py - Snappy discord api wrapper written with aiohttp & websockets

Pincer An asynchronous python API wrapper meant to replace discord.py ❗ The package is currently within the planning phase ?? Links |Join the discord

Pincer 125 Dec 26, 2022
Discord bot that shows valorant your daily store by using the Ingame API

Valorant store checker - Discord Bot Discord bot that shows valorant your daily store by using the Ingame API. written using Python and the Pycord lib

STACIA 226 Jan 2, 2023
Aws-lambda-requests-wrapper - Request/Response wrapper for AWS Lambda with API Gateway

AWS Lambda Requests Wrapper Request/Response wrapper for AWS Lambda with API Gat

null 1 May 20, 2022
Get-Phone-Number-Details-using-Python - To get the details of any number, we can use an amazing Python module known as phonenumbers.

Get-Phone-Number-Details-using-Python To get the details of any number, we can use an amazing Python module known as phonenumbers. We can use the amaz

Coding Taggers 1 Jan 1, 2022
Get Notified about vaccine availability in your location on email & sms βœ‰οΈ! Vaccinator Octocat tracks & sends personalised vaccine info everday. Go get your shot ! πŸ’‰

Vaccinater Get Notified about vaccine availability in your location on email & sms βœ‰οΈ ! Vaccinator Octocat tracks & sends personalised vaccine info ev

Mayukh Pankaj 6 Apr 28, 2022
Want to get your driver's license? Can't get a appointment because of COVID? Well I got a solution for you.

NJDMV-appoitment-alert Want to get your driver's license? Can't get a appointment because of COVID? Well I got a solution for you. We'll get you one i

Harris Spahic 3 Feb 4, 2022
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

Python Reddit API Wrapper Development 3k Dec 29, 2022
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

Python Reddit API Wrapper Development 3k Dec 29, 2022
Python API wrapper around Trello's API

A wrapper around the Trello API written in Python. Each Trello object is represented by a corresponding Python object. The attributes of these objects

Richard Kolkovich 904 Jan 2, 2023
Async ready API wrapper for Revolt API written in Python.

Mutiny Async ready API wrapper for Revolt API written in Python. Installation Python 3.9 or higher is required To install the library, you can just ru

null 16 Mar 29, 2022