Skip to main content

Embodier creates a unique avatar that provide you image as a PNG, JPG, or Base64 string. This package is used to provide an avatar for new users on your application.

Project description

Dynamic Avatar Generator [API]

This library will help you to generate profile image for newly registered user on your application, like GitHub create profile picture for new users E.g.

75605781 (2)

Generated images

generatedimg New Project (3)

Usage

import embodier 

# Initialize image generator
obj = embodier.AvatarGenerator()
# To Generate block image
img = obj.BlockAvatar() 
img.show()

# To Generate text image
img = obj.TextAvatar('PP') 
img.show()

Advance

BlockAvatar generate bit block image
obj.BlockAvatar(row_columns,pixel_size,background_color)
@row_columns Integer, block size of row and columns, default 5
@pixel_size Integer, pixel size, default 300
@background_color String, background color of blocks in image, default lightgrey
@border Boolean, True to add border to image, False to without border image, default True

TextAvatar generate text image
obj.TextAvatar(text,background_color)
@text String, Text to print on image
@background_color String, background color of image, default random color

Export options
img.show() to open generated image
img.save('image.png') to save image with image name
obj.toBase64(img) to get Base64 value of generated image

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

embodier-1.0.9.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

embodier-1.0.9-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file embodier-1.0.9.tar.gz.

File metadata

  • Download URL: embodier-1.0.9.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.7

File hashes

Hashes for embodier-1.0.9.tar.gz
Algorithm Hash digest
SHA256 0c50570fa725b24aa256bbf68f0d39fe896e7847d2fdf8bc760208dc79326b1d
MD5 f68b3fcd4e1507a1602477373f6ada70
BLAKE2b-256 20afe5e403b6b2b5e536ac6b44fb1a1119b032c4b2b145d4eaee3c2774ed63d4

See more details on using hashes here.

File details

Details for the file embodier-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: embodier-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.7

File hashes

Hashes for embodier-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1e25152fcc9d226b8c5b41e311ee0871905fa02723a9d01ce74707c3c5f2e790
MD5 2a793063373e8fda20342dbe4b0ed7b5
BLAKE2b-256 b7be35928d0d296c80780ee520cb562cb67ccaaeaf592d650a451c2cb41165e9

See more details on using hashes here.

Supported by

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