Skip to main content

Generate Lenny Faces

Project description

lennpy ( ͡° ͜ʖ ͡°)

Python Package for accessing Lenny faces ( ͡ᵔ ͜ʖ ͡ᵔ )

One day I woke up and decided that I needed lenny faces in my projects, but I was disappointed when I found the lack of categorized and easily accessable lenny faces in Python. So I made this.

Installation

python3 -m pip install lennpy

Usage

lennpy organizes lenny faces by categories, emotions, which from you can get the most popular standard representation very simply and elegantly:

>>> import lennpy as le
>>> le.basic
'( ͡° ͜ʖ ͡°)'
>>> le.table_flip
'(╯°□°)╯︵ ┻━┻'
>>> le.happy
'☜(⌒▽⌒)☞'

But don't want the same old face every time? Don't worry, lennpy has you covered! You can also call any of these emotions as if they were methods to get a randomzied lenny from a large pool of faces:

>>> import lennpy as le
>>> le.basic()
'( ͡◉ ͜ʖ ͡◉)'
>>> le.basic()
'( ͡° ل͜ ͡°)'
>>> le.table_flip()
'(╯ ͡° ل͜ ͡°)╯︵ ( ͜。 ͡ʖ ͜。)'
>>> le.table_flip()
'┻━┻ ︵ ¯\_( ͡° ͜ʖ ͡°)_/¯ ︵ ┻━┻'

And if it's needed you can also access the available emotions and retrive faces programmatically (but lets be honest here, this is boring):

>>> import lennpy as le
>>> le.emotions()
['basic', 'table_flip', ...]
>>> le.get('basic')
'( ͡° ͜ʖ ͡°)'
>>> le.get('basic')
'( ͡° ͜ʖ ͡°)'
>>> le.get_random('basic')
'(͠≖ ͜ʖ͠≖)'

┬┴┬┴┤ ͜ʖ ͡°) ├┬┴┬┴

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lennpy, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size lennpy-0.0.7-py3-none-any.whl (16.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size lennpy-0.0.7.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page