Skip to main content

Computerender

Project description

Computerender

PyPI Status Python Version License

Read the documentation at https://computerender.readthedocs.io/ Tests Codecov

pre-commit Black

Features

  • TODO

Requirements

  • TODO

Installation

You can install Computerender via pip from PyPI:

$ pip install computerender

Usage

It is recommended to set the COMPUTERENDER_KEY environmental variable to your API key.

Otherwise, you can pass it to the Computerender class as api_key.

Basic usage of asynchronous client.

import asyncio

from computerender import Computerender


async def main():

    async with Computerender() as api:
        data: bytes = api.generate("A cowboy wearing a pink hat", width=512, height=512, guidance=7.5, seed=8675309)
    
    with open("a-cowboy-wearing-a-pink-hat.jpg", "wb") as f:
        f.write(data)


if __name__ == "__main__":
    asyncio.run(main())

Sync client is not recommended at this time.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, this python binding for Computerender is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

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

computerender-0.0.2.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

computerender-0.0.2-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

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