Skip to content

Generate wishes from your command line with full customization :bowtie:

License

Notifications You must be signed in to change notification settings

darxtrix/priest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#priest

Generate wishes from your command line with full customization.

Clueless ?

Okay, see this

  • If you try this in night :
>>> from priest import now
>>> now()
    #=> good night, have sweet dreams !!
    #=> howdy, nighttime :-)
  • If you try this in morning :
>>> from priest import now
>>> now()
    #=> hey, morning !
    #=> heya !! morning !

PS: You can run this at any time of a day , it will generate wish messages accordingly. 😃

See more

  • If you run it in France in night
>>> from priest import now
>>> now()
    # = > Bonne nuit , beaux rêves !!
  • If you run it in Germany in night
>>> from priest import now
>>> now()
    # => Gute Nacht, süße Träume haben !!

Not impressed ?

And, this gives you an awesome picture message 😉

>>> from priest import now
>>> now(lang='en',pic=True)

And, the wishes are quite random, running the following 10 times,

>>> from priest import morning
>>> morning(lang='en')

would generate wishes like these :

Hope your day goes great cheerful morning :-)
Hope your day goes superb splendid sunup !
yo, sunrise :)
Wish you a good sunrise 
hi, morning ;-)
eventful sunup 
Wish you a splendid aurora 
heya, have a marvelous day .
marvelous sunup !
morning !

What it does and how ?

It generates random wish messages/pictures in your native language and according to time of the day by querying APIs internally for getting the information of your timezone, location etc.

Note : If you are using a proxy connection, it might create a mess ! 😳

Usage

###methods now - Generates a wish according to current time of the day
morning - Outputs a morning greeting message
afternoon - Outputs a afternoon greeting message
evening - Outputs a evening greeting message
night- Outputs a night greeting message

##parameters Each method takes in an optional lang parameter for eg. en,de etc and you can pass in an optional pic parameter.

>>> from priest import morning
>>> morning(lang='de',pic=True)

Result:

#Installing

>>> pip install priest

Note : You need to register at Mashape and set your api key as an environment variable as follow:

>>> export X_Mashape_Key=<api-key>

Some feature storming

  • Rest API coming soon !
  • Use calendar API to generate wishes for festivals ?

Contributions

Pull requests are awesome and always welcome. Please use the issue tracker to report any bugs or file feature requests.

#License MIT

About

Generate wishes from your command line with full customization :bowtie:

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages