Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
############################# Avatars ############################# .. image:: https://travis-ci.org/007gzs/avatars.svg?branch=master :target: https://travis-ci.org/007gzs/avatars .. image:: https://img.shields.io/pypi/v/avatars.svg :target: https://pypi.org/project/avatars
多种风格SVG头像生成工具
.. image:: https://github.com/007gzs/avatars/raw/master/resource/male_0.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/male_0.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/female_0.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/female_0.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/identicon_0.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/identicon_0.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/bottts_0.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/bottts_0.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/initials_0.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/initials_0.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/gridy_0.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/gridy_0.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/avatio_female_0.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/avatio_female_0.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/avatio_male_0.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/avatio_male_0.svg
.. image:: https://github.com/007gzs/avatars/raw/master/resource/male_1.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/male_1.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/female_1.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/female_1.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/identicon_1.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/identicon_1.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/bottts_1.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/bottts_1.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/initials_1.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/initials_1.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/gridy_1.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/gridy_1.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/avatio_female_1.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/avatio_female_1.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/avatio_male_1.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/avatio_male_1.svg
.. image:: https://github.com/007gzs/avatars/raw/master/resource/male_2.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/male_2.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/female_2.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/female_2.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/identicon_2.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/identicon_2.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/bottts_2.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/bottts_2.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/initials_2.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/initials_2.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/gridy_2.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/gridy_2.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/avatio_female_2.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/avatio_female_2.svg .. image:: https://github.com/007gzs/avatars/raw/master/resource/avatio_male_2.svg?sanitize=true :target: https://github.com/007gzs/avatars/raw/master/resource/avatio_male_2.svg
安装
目前 Avatars 支持的 Python 环境有 2.7, 3.4, 3.5, 3.6, 3.7 和 pypy。
为了简化安装过程,推荐使用 pip 进行安装
.. code-block:: bash
pip install avatars
升级 Avatars 到新版本::
pip install -U avatars
如果需要安装 GitHub 上的最新代码::
pip install https://github.com/007gzs/avatars/archive/master.zip
使用
代码样例::
from avatars.sprite import *
print(MaleSprite().create("张三"))
print(FemaleSprite().create("张三"))
print(IdenticonSprite().create("张三"))
print(BotttsSprite().create("张三"))
print(InitialsSprite().create("张三"))
FAQs
avatars
We found that avatars demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.