Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emoji-gen/emojilib
:books: Ultimate Emoji Generator library for Python
https://github.com/emoji-gen/emojilib
cython emoji python python3 skia
Last synced: 2 months ago
JSON representation
:books: Ultimate Emoji Generator library for Python
- Host: GitHub
- URL: https://github.com/emoji-gen/emojilib
- Owner: emoji-gen
- License: mit
- Created: 2018-02-11T12:10:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T17:22:56.000Z (almost 4 years ago)
- Last Synced: 2024-09-27T10:23:53.227Z (4 months ago)
- Topics: cython, emoji, python, python3, skia
- Language: Python
- Homepage: https://gemfury.com/emoji-gen/python:emojilib
- Size: 13.5 MB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emojilib
[![PyPI version](https://badge.fury.io/py/emojilib.svg)](https://badge.fury.io/py/emojilib)
[![Build Status](https://travis-ci.org/emoji-gen/emojilib.svg?branch=master)](https://travis-ci.org/emoji-gen/emojilib)
[![wercker status](https://app.wercker.com/status/486fa62cf2efbf47c595632b1e902e58/s/master "wercker status")](https://app.wercker.com/project/byKey/486fa62cf2efbf47c595632b1e902e58)
[![Requirements Status](https://requires.io/github/emoji-gen/emojilib/requirements.svg?branch=master)](https://requires.io/github/emoji-gen/emojilib/requirements/?branch=master):books: Ultimate Emoji Generator library for Python
## System requirements
- Python 3.6, 3.7 or 3.8
- C11 Compiler### Official supported platforms
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## Used libraries
- [Cython](http://cython.org/)
- [libemoji](https://github.com/emoji-gen/libemoji) - Ultimate Emoji Generator library for C/C++## Getting started
```
$ pip install emojilib --extra-index-url https://repo.fury.io/emoji-gen/
```## Example
```python
import emojilibdef 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()
```## How to build
### 1. Compile libemoji
First, please build externals.
See also [libemoji](https://github.com/emoji-gen/libemoji)'s README.```
$ git submodule update --init --recursive
$ cd externals/libemoji
$ cmake .
$ make
```### 2. Setup Python virtualenv
```
$ python -m venv venv
$ . venv/bin/activate
```### 3. Run build command
```
$ python setup.py build
```## Development
### Dependencies```
$ pip install -r requirements-dev.txt
```### Example
```
$ python setup.py install
$ python ./example/example.py
```### Test
```
$ python setup.py build install test
```### Create wheel package
```
$ pip install wheel --upgrade
$ python setup.py bdist_wheel
```## See also
- [emojilib (Gemfury)](https://gemfury.com/emoji-gen/python:emojilib)
- [emojilib (PyPI)](https://pypi.org/project/emojilib/)## License
MIT © [Emoji Generator](https://emoji-gen.ninja)