Avatars
多种风格SVG头像生成工具
安装
目前 Avatars 支持的 Python 环境有 2.7, 3.4, 3.5, 3.6, 3.7 和 pypy。
为了简化安装过程,推荐使用 pip 进行安装
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("张三"))
Metadata
Release files for avatars 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| avatars-0.1.1.tar.gz | 91.6 kB | Without provenance | Details for avatars-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| avatars-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for avatars-0.1.1-py3-none-any.whl |
Total release size: 198.0 kB
Release files / avatars-0.1.1.tar.gz
| Download URL | avatars-0.1.1.tar.gz |
|---|---|
| Size | 91.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdd2c5f7068bd7792757e4aa97bad874008f6dd29e350bfafb15e8684dcde9fb
|
|
BLAKE2b-256 checksum How to use checksums |
d096ab767ef4cee0ab42d199082e35e6cb63ab12e9b47476504dd9a19ef56da5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.7
|
Release files / avatars-0.1.1-py3-none-any.whl
| Download URL | avatars-0.1.1-py3-none-any.whl |
|---|---|
| Size | 106.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22a6e323d042cbe567ab3e24aecf09c4cab497a17e2b5c17ce46b7e1b8ccdc8a
|
|
BLAKE2b-256 checksum How to use checksums |
29182c2c7d415e61d218bd8bf1a0f957f8d090c0905b599a403e2ea36480d794
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.7
|
Security for avatars 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.