-
Notifications
You must be signed in to change notification settings - Fork 1
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 #84 from graphbookai/dev
v0.6.0
- Loading branch information
Showing
55 changed files
with
5,172 additions
and
1,153 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
# Add list of installed plugins to the list below | ||
plugins: ["example_plugin"] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from .nodes import SimpleStep | ||
from .nodes import SimpleResource | ||
import os.path as osp | ||
from graphbook.plugins import export, web | ||
|
||
|
||
export("SimpleStep", SimpleStep) | ||
export("SimpleResource", SimpleResource) | ||
|
||
web(osp.realpath(osp.join(osp.dirname(__file__), "../web/dist/bundle.js"))) |
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,19 @@ | ||
import graphbook.steps as steps | ||
import graphbook.resources as resources | ||
|
||
class SimpleStep(steps.Step): | ||
RequiresInput = True | ||
Parameters = {} | ||
Outputs = ["out"] | ||
Category = "Simple" | ||
def __init__(self): | ||
super().__init__() | ||
|
||
def on_item(self, item, note): | ||
self.log(item) | ||
|
||
class SimpleResource(resources.Resource): | ||
Parameters = {} | ||
Category = "Simple" | ||
def __init__(self): | ||
super().__init__("Hello, World!") |
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 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "example_plugin" | ||
version = "0.0.0" | ||
dependencies = [ | ||
] | ||
requires-python = ">=3.10" | ||
authors = [ | ||
] | ||
|
||
description = "" |
Oops, something went wrong.