-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Kiln-AI/uv
UV docs
- Loading branch information
Showing
50 changed files
with
7,138 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,10 @@ __pycache__/ | |
*.py[cod] | ||
*$py.class | ||
.coverage | ||
**/.venv | ||
|
||
libs/core/docs | ||
libs/core/build | ||
libs/server/build | ||
|
||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import io | ||
import sys | ||
|
||
import pystray | ||
|
||
|
||
class KilnTray(pystray.Icon): | ||
# Special handling for Mac to support dark/light mode and retina icons | ||
# lots of type ignores because we're accessing private attributes of pystray | ||
def X_assert_image(self): | ||
if sys.platform != "darwin": | ||
super()._assert_image() # type: ignore | ||
return | ||
|
||
import AppKit | ||
import Foundation | ||
|
||
thickness = self._status_bar.thickness() # type: ignore | ||
logical_size = (int(thickness), int(thickness)) | ||
if self._icon_image and self._icon_image.size() == logical_size: | ||
return | ||
|
||
source = self._icon | ||
|
||
# Convert the PIL image to an NSImage | ||
b = io.BytesIO() | ||
source.save(b, "png") # type: ignore | ||
data = Foundation.NSData(b.getvalue()) # type: ignore | ||
|
||
self._icon_image = AppKit.NSImage.alloc().initWithData_(data) # type: ignore | ||
try: | ||
# template image will respect dark/light mode | ||
self._icon_image.setTemplate_(True) | ||
# set the logical size of the image, which will be scaled for retina | ||
self._icon_image.setSize_(logical_size) | ||
except Exception as e: | ||
# Continue, this shouldn't be fatal | ||
print("Mac Tray Error", e) | ||
self._status_item.button().setImage_(self._icon_image) # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[project] | ||
name = "kiln-studio-desktop" | ||
version = "0.1.0" | ||
description = "The Kiln Desktop App. Download from https://getkiln.ai" | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"kiln-server", | ||
"pillow>=11.0.0", | ||
"pyinstaller>=6.11.0", | ||
"pystray>=0.19.5", | ||
] | ||
|
||
[tool.uv.sources] | ||
kiln-server = { workspace = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const WebsiteName: string = "Kiln Studio" | ||
export const WebsiteBaseUrl: string = "https://kiln-ai.com" | ||
export const WebsiteBaseUrl: string = "https://getkiln.ai" | ||
export const WebsiteDescription: string = "Build ML Products with Kiln Studio" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12 |
Oops, something went wrong.