Skip to content

Commit

Permalink
publish to pypi.
Browse files Browse the repository at this point in the history
  • Loading branch information
mix1009 committed Dec 21, 2022
1 parent 94bd0f6 commit 57b74b5
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ You can use --api-auth user1:pass1,user2:pass2 option to enable authentication f

API calls are (almost) direct translation from http://127.0.0.1:7860/docs as of 2022/11/21.

# Install

```
pip install webuiapi
```

# Usage

Expand Down
28 changes: 28 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
""" See:
https://github.com/mix1009/sdwebuiapi
"""

# Always prefer setuptools over distutils
from setuptools import setup, find_packages
import pathlib

here = pathlib.Path(__file__).parent.resolve()
long_description = (here / "README.md").read_text(encoding="utf-8")

setup(
name="webuiapi",
version="0.0.1",
description="Python API client for AUTOMATIC1111/stable-diffusion-webui",
url="https://github.com/mix1009/sdwebuiapi",
author="ChunKoo Park",
author_email="[email protected]",
keywords="stable-diffuion-webui, AUTOMATIC1111, stable-diffusion, api",
packages=["webuiapi"],
#packages=find_packages(),
python_requires=">=3.7, <4",
install_requires=['requests',
'Pillow',],
long_description=long_description,
long_description_content_type='text/markdown',
license="MIT",
)
11 changes: 11 additions & 0 deletions webuiapi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from .webuiapi import WebUIApi, WebUIApiResult, Upscaler

__version__ = "0.0.1"

__all__ = [
"__version__",
"WebUIApi",
"WebUIApiResult",
"Upscaler",
]

File renamed without changes.

0 comments on commit 57b74b5

Please sign in to comment.