user-avatars
rock-avatars
测试
pytest --cov=rock_avatars/
上传安装包
python setup.py sdist build
twine upload dist/*
数据文件目录结构
tree ./data
./data
├── background.png
├── cloth
│ └── cloth.png
├── eye
│ └── eyes.png
├── hair
│ ├── hair.png
│ └── hair2.png
├── horn
│ └── horn.png
└── mouth
├── mouth.png
└── mouth2.png
5 directories, 8 files
用法
安装依赖
pip install rock-avatars
import rock_avatars as rf
avatar = rf.Avatar(
"./data",
"background.png",
[
"mouth",
"horn",
"hair",
"eye",
"cloth",
],
)
avatar.generate()
Development
Activate Virtual Environment
make
source venv/bin/activate
To install all of the dependencies necessary for development, run:
pip install -e '.[develop]'
To run all of the tests, run:
python setup.py test
Metadata
Release files for rock-avatars 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rock_avatars-0.0.2.tar.gz | 8.1 kB | Details |
Release files / rock_avatars-0.0.2.tar.gz
| Download URL | rock_avatars-0.0.2.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18c3ee0fda4f221e2c2c4d3ca54ea613d30d033199bb592228b800e62079e080
|
|
BLAKE2b-256 checksum How to use checksums |
b8b7df2a429d9c7877ad592bdee36d62ae1361352e9aff6907428e93959ac29d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|