Not really much of a library just a few emoji utilities
Project description
#libmoji
Currently a work in progress, some functionality is currently undocumented. Feel free to help out.
* Makes you hate variable character pixel width
* Provides a list of emojis and their unicode values.
* Randomly select emojis
* Create cool loading animations
### Installation
```bash
pip install libmoji
```
##Documentation
###random()
Returns a random emoji
```python
import libmoji
print(libmoji.random())
```
#####Positional Arguments: **None**
#####Keyword Arguments: **None**
###get_emoji_vals()
Returns a random emoji
```python
import libmoji
print(libmoji.get_emoji_vals())
```
#####Positional Arguments: **None**
#####Keyword Arguments: **None**
###load_moji()
Helps you distract how painstakingly slow your code is, with cool loading animations featuring emojis
```python
import libmoji
from time import sleep
# Displays randomly chosen emojis along with a loading "animation" for ten seconds.
libmoji.load_moji(sleep,args=[10],frames=["LOADING.","LOADING..","LOADING..."])
```
#####Positional Arguments:
* **func**
- The function to run while the animation is playing.
#####Keyword Arguments:
* **args**
*(Default Value: [ ])*
- Any arguments that the function takes
* **kwargs**
*(Default Value: { })*
- Any keyword arguments that the function takes
* **frames**
*(Default Value: [ ])*
- Text animation frames to be looped through
* **fixed_width**
*(Default Value: True)*
- Pad animation frames to the same width
* **text_color**
*(Default Value: "green")*
- Color of frame text (See termcolor for text options)
* **text_attrs**
*(Default Value: ["reverse","bold"])*
- Frame text attributes (See termcolor for text options)
* **width**
*(Default Value: 10)*
- How many emojis to display
* **delay**
*(Default Value: 0.1)*
- Delay between frames in seconds.
Currently a work in progress, some functionality is currently undocumented. Feel free to help out.
* Makes you hate variable character pixel width
* Provides a list of emojis and their unicode values.
* Randomly select emojis
* Create cool loading animations
### Installation
```bash
pip install libmoji
```
##Documentation
###random()
Returns a random emoji
```python
import libmoji
print(libmoji.random())
```
#####Positional Arguments: **None**
#####Keyword Arguments: **None**
###get_emoji_vals()
Returns a random emoji
```python
import libmoji
print(libmoji.get_emoji_vals())
```
#####Positional Arguments: **None**
#####Keyword Arguments: **None**
###load_moji()
Helps you distract how painstakingly slow your code is, with cool loading animations featuring emojis
```python
import libmoji
from time import sleep
# Displays randomly chosen emojis along with a loading "animation" for ten seconds.
libmoji.load_moji(sleep,args=[10],frames=["LOADING.","LOADING..","LOADING..."])
```
#####Positional Arguments:
* **func**
- The function to run while the animation is playing.
#####Keyword Arguments:
* **args**
*(Default Value: [ ])*
- Any arguments that the function takes
* **kwargs**
*(Default Value: { })*
- Any keyword arguments that the function takes
* **frames**
*(Default Value: [ ])*
- Text animation frames to be looped through
* **fixed_width**
*(Default Value: True)*
- Pad animation frames to the same width
* **text_color**
*(Default Value: "green")*
- Color of frame text (See termcolor for text options)
* **text_attrs**
*(Default Value: ["reverse","bold"])*
- Frame text attributes (See termcolor for text options)
* **width**
*(Default Value: 10)*
- How many emojis to display
* **delay**
*(Default Value: 0.1)*
- Delay between frames in seconds.
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
libmoji-0.0.4.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for libmoji-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0badd00f7dd8d67b7cf7ad22d8e56c32ad2aef435fa9cab1f46994fb148f927b |
|
MD5 | 8a77859972ea234eee48e0dae9186b90 |
|
BLAKE2b-256 | 8d9bf7e9bce166b5e7a52b1ac1e68ffb2cc674dc62d84fb70a3d51fc02185cb2 |