Skip to main content

Rockflow Avatars generator

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rock_avatars-0.0.2.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file rock_avatars-0.0.2.tar.gz.

File metadata

  • Download URL: rock_avatars-0.0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rock_avatars-0.0.2.tar.gz
Algorithm Hash digest
SHA256 18c3ee0fda4f221e2c2c4d3ca54ea613d30d033199bb592228b800e62079e080
MD5 53c890d85e42c66b398b0950f6b9f6e6
BLAKE2b-256 b8b7df2a429d9c7877ad592bdee36d62ae1361352e9aff6907428e93959ac29d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page