GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python/src/useknockout/__init__.py at main · useknockout/python

Expand file tree

/

__init__.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
47 lines (38 loc) · 1.02 KB
/

__init__.py

Copy path

File metadata and controls

47 lines (38 loc) · 1.02 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"""
useknockout — state-of-the-art background removal API.
Quickstart:
from useknockout import Knockout
client = Knockout(token="kno_public_beta_4d7e9f1a3c5b2e8d6a9f7c1b3e5d8a2f")
png_bytes = client.remove("photo.jpg")
open("out.png", "wb").write(png_bytes)
Async:
import asyncio
from useknockout import AsyncKnockout
async def main():
async with AsyncKnockout(token="...") as client:
png = await client.remove("photo.jpg")
open("out.png", "wb").write(png)
asyncio.run(main())
"""
from useknockout._version import __version__
from useknockout.client import Knockout
from useknockout.async_client import AsyncKnockout
from useknockout.errors import (
KnockoutError,
AuthError,
BadRequestError,
PayloadTooLargeError,
RateLimitError,
ServerError,
)
__all__ = [
"__version__",
"Knockout",
"AsyncKnockout",
"KnockoutError",
"AuthError",
"BadRequestError",
"PayloadTooLargeError",
"RateLimitError",
"ServerError",
]
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.