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 | Provenance | Actions |
|---|---|---|---|---|
| rock_avatars-0.0.2.tar.gz | 8.1 kB | Without provenance | Details for rock_avatars-0.0.2.tar.gz |
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
|
Security for rock-avatars 0.0.2
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.