imagepig


Nameimagepig JSON
Version 1.0.7 PyPI version JSON
download
home_pageNone
SummaryPackage to use Image Pig, the API for AI images
upload_time2024-11-08 05:38:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # imagepig
[Python package](https://pypi.org/project/imagepig/) for [Image Pig](https://imagepig.com/), the API for AI images.

## Installation

```
pip install imagepig
```

## Example of usage

```python
from imagepig import ImagePig

# create instance of API (put here your actual API key)
imagepig = ImagePig("your-api-key")

# call the API with a prompt to generate an image
result = imagepig.xl("cute piglet running on a green garden")

# save image to a file
result.save("cute-piglet.jpeg")

# or access image data (bytes)
result.data

# or access image as an object (needs to have the Pillow package installed)
result.image
```

## Contact us
Something does not work as expected? Feel free to [send us a message](https://imagepig.com/contact/), we are here for you.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "imagepig",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Pavel Mises <pavel@double.plus>",
    "download_url": "https://files.pythonhosted.org/packages/af/d2/a779604742341a61ab27446458e6b40b19df3f0b8a742f3cb21a26f90124/imagepig-1.0.7.tar.gz",
    "platform": null,
    "description": "# imagepig\n[Python package](https://pypi.org/project/imagepig/) for [Image Pig](https://imagepig.com/), the API for AI images.\n\n## Installation\n\n```\npip install imagepig\n```\n\n## Example of usage\n\n```python\nfrom imagepig import ImagePig\n\n# create instance of API (put here your actual API key)\nimagepig = ImagePig(\"your-api-key\")\n\n# call the API with a prompt to generate an image\nresult = imagepig.xl(\"cute piglet running on a green garden\")\n\n# save image to a file\nresult.save(\"cute-piglet.jpeg\")\n\n# or access image data (bytes)\nresult.data\n\n# or access image as an object (needs to have the Pillow package installed)\nresult.image\n```\n\n## Contact us\nSomething does not work as expected? Feel free to [send us a message](https://imagepig.com/contact/), we are here for you.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Package to use Image Pig, the API for AI images",
    "version": "1.0.7",
    "project_urls": {
        "Documentation": "https://imagepig.com/docs/",
        "Homepage": "https://imagepig.com/",
        "Issues": "https://github.com/double-plus/imagepig-python/issues",
        "Repository": "https://github.com/double-plus/imagepig-python"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8609977fd7741434d2224c0972f08fc97798d1f642308e40b41053e3c613fb62",
                "md5": "3329bf3fc69e6bc1773816acb6850900",
                "sha256": "a18babb5b232f0550d4926b737b0b5712686358c8162f222e670966b922ac1cb"
            },
            "downloads": -1,
            "filename": "imagepig-1.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3329bf3fc69e6bc1773816acb6850900",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4587,
            "upload_time": "2024-11-08T05:38:52",
            "upload_time_iso_8601": "2024-11-08T05:38:52.140912Z",
            "url": "https://files.pythonhosted.org/packages/86/09/977fd7741434d2224c0972f08fc97798d1f642308e40b41053e3c613fb62/imagepig-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "afd2a779604742341a61ab27446458e6b40b19df3f0b8a742f3cb21a26f90124",
                "md5": "9369fb4bde64b46d29bccb9d67240641",
                "sha256": "423951fdec27b8751f38d3774717e37b2ccced88d057a3155b8fac0d829bc300"
            },
            "downloads": -1,
            "filename": "imagepig-1.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "9369fb4bde64b46d29bccb9d67240641",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4427,
            "upload_time": "2024-11-08T05:38:53",
            "upload_time_iso_8601": "2024-11-08T05:38:53.125871Z",
            "url": "https://files.pythonhosted.org/packages/af/d2/a779604742341a61ab27446458e6b40b19df3f0b8a742f3cb21a26f90124/imagepig-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-08 05:38:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "double-plus",
    "github_project": "imagepig-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "imagepig"
}
        
Elapsed time: 0.37081s