Skip to content

Commit

Permalink
Package renamed python_avataaars -> python_avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
ibonn committed Mar 28, 2021
1 parent d161be0 commit 855702d
Show file tree
Hide file tree
Showing 158 changed files with 228 additions and 40 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# python_avatars

[![Build Status](https://travis-ci.org/ibonn/python_avatars.svg?branch=main)](https://travis-ci.org/ibonn/python_avatars) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/0f0ba4f148724111a40681296d0dc740)](https://www.codacy.com/gh/ibonn/python_avatars/dashboard?utm_source=github.com&utm_medium=referral&utm_content=ibonn/python_avatars&utm_campaign=Badge_Grade) ![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/ibonn/python_avatars) [![PyPi version](https://img.shields.io/pypi/v/python_avataaars)](https://img.shields.io/pypi/v/python_avataaars) ![PyPI - Downloads](https://img.shields.io/pypi/dm/python_avataaars) ![GitHub top language](https://img.shields.io/github/languages/top/ibonn/python_avatars)
[![Build Status](https://travis-ci.org/ibonn/python_avatars.svg?branch=main)](https://travis-ci.org/ibonn/python_avatars) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/0f0ba4f148724111a40681296d0dc740)](https://www.codacy.com/gh/ibonn/python_avatars/dashboard?utm_source=github.com&utm_medium=referral&utm_content=ibonn/python_avatars&utm_campaign=Badge_Grade) ![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/ibonn/python_avatars) [![PyPi version](https://img.shields.io/pypi/v/python_avatars)](https://img.shields.io/pypi/v/python_avatars) ![PyPI - Downloads](https://img.shields.io/pypi/dm/python_avatars) ![GitHub top language](https://img.shields.io/github/languages/top/ibonn/python_avatars)

[![Randomly generated avatars. (View at: https://github.com/ibonn/python_avatars/blob/main/examples/random_gif_apng/avatars.png)](https://raw.githubusercontent.com/ibonn/python_avatars/main/examples/random_gif_apng/avatars.png)](https://github.com/ibonn/python_avatars/blob/main/examples/random_gif_apng/avatars.png)

Expand Down Expand Up @@ -28,7 +28,7 @@
## Install
Using pip, from PyPi (latest stable release):

pip install python_avataaars
pip install python_avatars

Using pip, from this repository (May not be stable!):

Expand All @@ -39,11 +39,11 @@ Using pip, from this repository (May not be stable!):
## Usage
### Create your own avatar
```python
import python_avataaars as pa
import python_avatars as pa

my_avatar = pa.Avatar(
style=pa.AvatarStyle.CIRCLE,
background_color:pa.BackgroundColor.BLACK,
background_color=pa.BackgroundColor.BLACK,
top=pa.HairType.STRAIGHT_2,
eyebrows=pa.EyebrowType.DEFAULT_NATURAL,
eyes=pa.EyeType.DEFAULT,
Expand All @@ -64,7 +64,7 @@ my_avatar.render("my_avatar.svg")
```
### Create a random avatar
```python
import python_avataaars as pa
import python_avatars as pa

# Completely random avatar
random_avatar_1 = pa.Avatar.random()
Expand All @@ -85,7 +85,7 @@ random_avatar_3 = pa.Avatar(
When using the graphic shirt, - _ClothingType.GRAPHIC_ - you can set a custom text if you want to.

```python
import python_avataaars as pa
import python_avatars as pa

pa.Avatar(
style=pa.AvatarStyle.CIRCLE,
Expand All @@ -110,7 +110,7 @@ that looks like this

You can add it to the library just by running
```python
from python_avataaars import install_part
from python_avatars import install_part

# Install the new part
install_part("suit.svg", pa.ClothingType)
Expand All @@ -131,7 +131,7 @@ The name of the newly added value will be exactly the name of the svg file conve

Uninstalling the installed part is as easy as installing it
```python
from python_avataaars import uninstall_part, ClothingType
from python_avatars import uninstall_part, ClothingType

uninstall_part(ClothingType.SUIT, confirm=False) # confirm=False will not prompt for confirmation
```
Expand Down
2 changes: 1 addition & 1 deletion examples/avatar/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import python_avataaars as pa
import python_avatars as pa

pa.Avatar(
style=pa.AvatarStyle.CIRCLE,
Expand Down
2 changes: 1 addition & 1 deletion examples/avatar/my_avatar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/banner/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from PIL import Image
from cairosvg import svg2png

import python_avataaars as pa
import python_avatars as pa

# The script used to generate the social preview image for this repository

Expand Down
2 changes: 1 addition & 1 deletion examples/install/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import python_avataaars as pa
import python_avatars as pa

# IMPORTANT: You should run install.py before running this script, otherwise it won't work.

Expand Down
2 changes: 1 addition & 1 deletion examples/install/avatar_suit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/install/install.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import python_avataaars as pa
import python_avatars as pa

# Install the new part
pa.install_part('suit.svg', pa.ClothingType)
2 changes: 1 addition & 1 deletion examples/random/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import random

from python_avataaars import Avatar
from python_avatars import Avatar

# Set a seed
random.seed(123)
Expand Down
2 changes: 1 addition & 1 deletion examples/random/avatar_0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random/avatar_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random/avatar_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random/avatar_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random/avatar_4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random/avatar_5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random/avatar_6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random/avatar_7.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random/avatar_8.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random/avatar_9.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/random_gif_apng/gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from PIL import Image
from cairosvg import svg2png
from python_avataaars import Avatar
from python_avatars import Avatar

# IMPORTANT: This example requires 'PIL (Pillow)' to work
#
Expand Down
2 changes: 1 addition & 1 deletion examples/random_gif_apng/png.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from apng import APNG
from cairosvg import svg2png
from python_avataaars import Avatar
from python_avatars import Avatar

# IMPORTANT: This example requires 'apng' and 'cairosvg' to work
#
Expand Down
2 changes: 1 addition & 1 deletion examples/reset/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from python_avataaars import factory_reset
from python_avatars import factory_reset

# WARNING: Running this script will reset the library to its default state.
# This means all the colors and parts (eyes, eyebrows, nose types,
Expand Down
2 changes: 1 addition & 1 deletion examples/shirt_text/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import python_avataaars as pa
import python_avatars as pa

pa.Avatar(
style=pa.AvatarStyle.CIRCLE,
Expand Down
2 changes: 1 addition & 1 deletion examples/shirt_text/avatar_text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/uninstall/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import python_avataaars as pa
import python_avatars as pa

# IMPORTANT: You should run the example at examples/install before running this script

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
More info @ https://github.com/ibonn/python_avatars
"""

__version__ = "1.2.1"
__version__ = "1.3.0-dev210328"

# Enums
from .accessory_types import AccessoryType
Expand Down
Loading

0 comments on commit 855702d

Please sign in to comment.