Skip to main content

Create beautiful artwork using the power of AI.

Project description

Somnium

Create beautiful artwork using the power of AI

Downloads

Installation:

python3 -m pip install somnium

Examples:

somnium:

from somnium import Somnium

# Get Styles (url)
print(Somnium.StylesGraph())

# Get Styles (list)
print(Somnium.Styles())

# Generate Artwork
print(Somnium.Generate('A beautiful sunset', 2009))

# Edit an image
print(Somnium.Generate('Cyberpunk style', 2009, "/home/odium/image.png"))

somnium.sync:

import asyncio
from somnium.sync import Somnium

async def my_test():
    # Get Styles (url)
    print(await Somnium.StylesGraph())

    # Get Styles (list)
    print(await Somnium.Styles())

    # Generate Artwork
    print(await Somnium.Generate('A beautiful sunset', 2009))

    # Edit an image
    print(await Somnium.Generate('Cyberpunk style', 2009, "/home/odium/image.png"))
    
asyncio.run(my_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

somnium-9.9.7.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

somnium-9.9.7-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file somnium-9.9.7.tar.gz.

File metadata

  • Download URL: somnium-9.9.7.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for somnium-9.9.7.tar.gz
Algorithm Hash digest
SHA256 3f064576992fdf1cedeb2f333feff57355c1c9e928e5ab2681c7a9878caa2f32
MD5 44b3cb5988aa27ae2554ed82f071c2c2
BLAKE2b-256 45c5c102e7a4d80856ed28523382fbfe3b7cd3e4ed6f9dc871e248621d61a695

See more details on using hashes here.

File details

Details for the file somnium-9.9.7-py3-none-any.whl.

File metadata

  • Download URL: somnium-9.9.7-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for somnium-9.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7ba33b23185fc7372a0c0968f03c208a178be16c9ff8d08d2046c9a33c61c1c6
MD5 548fdb405d8a45377b035f8bc3291089
BLAKE2b-256 b874382b73ed15b7a6c5d97d42476466a0bea75f054426d38415bdcdc112f363

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