📚 Ultimate Emoji Generator library for Python
- Python 3.6, 3.7 or 3.8
- C11 Compiler
We officially support building and running on these platforms below, but you can try it on other platforms.
- macOS 10.14 Mojave
- macOS 10.15 Catalina
- Debian 10 Buster
$ pip install emojilib --extra-index-url https://repo.fury.io/emoji-gen/
import emojilib
def main():
data = emojilib.generate(text="ab\nc.", width=128, height=128)
with open('emoji.png', 'wb') as f:
f.write(data)
if __name__ == '__main__':
main()
First, please build externals. See also libemoji's README.
$ git submodule update --init --recursive
$ cd externals/libemoji
$ cmake .
$ make
$ python -m venv venv
$ . venv/bin/activate
$ python setup.py build
$ pip install -r requirements-dev.txt
$ python setup.py install
$ python ./example/example.py
$ python setup.py build install test
$ pip install wheel --upgrade
$ python setup.py bdist_wheel
MIT © Emoji Generator