skill-dojo 0.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app/__init__.py +12 -0
- app/app.py +67 -0
- app/bootstrap_admin.py +88 -0
- app/components/navbar.py +16 -0
- app/components/templates.py +36 -0
- app/configuration.py +24 -0
- app/pages/users.py +45 -0
- app/roles.py +13 -0
- app/styles.py +68 -0
- skill_dojo-0.0.0.dist-info/METADATA +62 -0
- skill_dojo-0.0.0.dist-info/RECORD +13 -0
- skill_dojo-0.0.0.dist-info/WHEEL +4 -0
- skill_dojo-0.0.0.dist-info/licenses/LICENSE.md +21 -0
app/__init__.py
ADDED
app/app.py
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import reflex as rx
|
|
2
|
+
from appkit_commons.middleware import (
|
|
3
|
+
ForceHTTPSMiddleware,
|
|
4
|
+
SecurityHeadersMiddleware,
|
|
5
|
+
trusted_proxy_hosts_from_env,
|
|
6
|
+
)
|
|
7
|
+
from appkit_user.authentication import add_session_guard, install_session_filter
|
|
8
|
+
from appkit_user.authentication.pages import ( # noqa: F401
|
|
9
|
+
azure_oauth_callback_page,
|
|
10
|
+
github_oauth_callback_page,
|
|
11
|
+
)
|
|
12
|
+
from appkit_user.authentication.templates import authenticated_page
|
|
13
|
+
from appkit_user.user_management.components import user_profile_view
|
|
14
|
+
from appkit_user.user_management.pages import (
|
|
15
|
+
create_login_page,
|
|
16
|
+
create_password_reset_confirm_page,
|
|
17
|
+
create_password_reset_request_page,
|
|
18
|
+
)
|
|
19
|
+
from starlette.types import ASGIApp
|
|
20
|
+
|
|
21
|
+
from app.components.templates import default_layout, navbar_template
|
|
22
|
+
from app.pages.users import users_page # noqa: F401
|
|
23
|
+
from app.styles import base_style, base_stylesheets
|
|
24
|
+
|
|
25
|
+
create_login_page(default_layout)
|
|
26
|
+
create_password_reset_request_page(default_layout)
|
|
27
|
+
create_password_reset_confirm_page(default_layout)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@authenticated_page(route="/profile", title="Profil", template=navbar_template)
|
|
31
|
+
def profile() -> rx.Component:
|
|
32
|
+
return user_profile_view(w="100%", maw="800px", gap="lg", p="2rem")
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@authenticated_page(
|
|
36
|
+
route="/index",
|
|
37
|
+
title="ProjectKit",
|
|
38
|
+
description="The ProjectKit Homepage",
|
|
39
|
+
template=navbar_template,
|
|
40
|
+
)
|
|
41
|
+
def index() -> rx.Component:
|
|
42
|
+
return rx.container(
|
|
43
|
+
rx.vstack(
|
|
44
|
+
rx.heading("Welcome to ProjectKit!", size="9"),
|
|
45
|
+
spacing="2",
|
|
46
|
+
justify="center",
|
|
47
|
+
margin_top="0",
|
|
48
|
+
),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def add_https_middleware(asgi_app: ASGIApp) -> ASGIApp:
|
|
53
|
+
"""Correct the scheme behind the proxy and add the security response headers."""
|
|
54
|
+
return ForceHTTPSMiddleware(
|
|
55
|
+
SecurityHeadersMiddleware(asgi_app),
|
|
56
|
+
trusted_hosts=trusted_proxy_hosts_from_env(),
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
app = rx.App(
|
|
61
|
+
stylesheets=base_stylesheets,
|
|
62
|
+
style=base_style, # ty: ignore[invalid-argument-type] # reflex dynamic styling
|
|
63
|
+
# The session guard sits inside the scheme correction, so it already sees the
|
|
64
|
+
# corrected scheme when it issues a redirect.
|
|
65
|
+
api_transformer=[add_session_guard, add_https_middleware],
|
|
66
|
+
)
|
|
67
|
+
install_session_filter(app)
|
app/bootstrap_admin.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""Create the first administrator from secrets.
|
|
2
|
+
|
|
3
|
+
The template ships no default credentials. This command runs safely any number of
|
|
4
|
+
times: it does nothing while an active administrator exists. The password has to be
|
|
5
|
+
changed at first login. Run it with `task admin:bootstrap`.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import asyncio
|
|
9
|
+
import logging
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
from appkit_commons.configuration.logging import init_logging
|
|
13
|
+
from appkit_commons.configuration.secret_provider import (
|
|
14
|
+
SecretNotFoundError,
|
|
15
|
+
get_secret,
|
|
16
|
+
)
|
|
17
|
+
from appkit_commons.database.session import get_asyncdb_session
|
|
18
|
+
from appkit_user.authentication.backend.database.entities import UserEntity
|
|
19
|
+
from appkit_user.authentication.password_policy import PASSWORD_REGEX
|
|
20
|
+
from sqlalchemy import select
|
|
21
|
+
|
|
22
|
+
from app import configuration
|
|
23
|
+
|
|
24
|
+
logger = logging.getLogger(__name__)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class BootstrapError(ValueError):
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def build_admin(email: str, password: str) -> UserEntity:
|
|
32
|
+
"""Validate the secrets and build the administrator entity."""
|
|
33
|
+
if "@" not in email:
|
|
34
|
+
raise BootstrapError("mn-admin-email must be an email address")
|
|
35
|
+
if not PASSWORD_REGEX.match(password):
|
|
36
|
+
raise BootstrapError(
|
|
37
|
+
"mn-admin-password must have at least 12 characters with upper case, "
|
|
38
|
+
"lower case, a digit and a special character"
|
|
39
|
+
)
|
|
40
|
+
admin = UserEntity(
|
|
41
|
+
email=email,
|
|
42
|
+
name="Administrator",
|
|
43
|
+
is_active=True,
|
|
44
|
+
is_admin=True,
|
|
45
|
+
is_verified=True,
|
|
46
|
+
needs_password_reset=True,
|
|
47
|
+
roles=[],
|
|
48
|
+
)
|
|
49
|
+
admin.password = password
|
|
50
|
+
return admin
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
async def bootstrap_admin() -> bool:
|
|
54
|
+
"""Create the administrator if there is none. Returns whether one was created."""
|
|
55
|
+
async with get_asyncdb_session() as session:
|
|
56
|
+
result = await session.execute(
|
|
57
|
+
select(UserEntity.id).where(UserEntity.is_admin, UserEntity.is_active)
|
|
58
|
+
)
|
|
59
|
+
if result.first() is not None:
|
|
60
|
+
logger.info("An active administrator exists, nothing to do")
|
|
61
|
+
return False
|
|
62
|
+
|
|
63
|
+
try:
|
|
64
|
+
email = get_secret("mn-admin-email")
|
|
65
|
+
password = get_secret("mn-admin-password")
|
|
66
|
+
except SecretNotFoundError:
|
|
67
|
+
logger.warning(
|
|
68
|
+
"No active administrator exists. Set mn-admin-email and "
|
|
69
|
+
"mn-admin-password and run this command again"
|
|
70
|
+
)
|
|
71
|
+
return False
|
|
72
|
+
|
|
73
|
+
session.add(build_admin(email, password))
|
|
74
|
+
logger.info("Created the first administrator")
|
|
75
|
+
return True
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def main() -> None:
|
|
79
|
+
init_logging(configuration)
|
|
80
|
+
try:
|
|
81
|
+
asyncio.run(bootstrap_admin())
|
|
82
|
+
except BootstrapError as e:
|
|
83
|
+
logger.error("Cannot create the administrator: %s", e)
|
|
84
|
+
sys.exit(1)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
if __name__ == "__main__":
|
|
88
|
+
main()
|
app/components/navbar.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import appkit_mantine as mn
|
|
2
|
+
import reflex as rx
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def app_navbar() -> rx.Component:
|
|
6
|
+
return mn.box(
|
|
7
|
+
mn.stack(
|
|
8
|
+
mn.text("Project Kit Navbar", fw=700, size="md"),
|
|
9
|
+
rx.link("Home", href="/"),
|
|
10
|
+
rx.link("Users", href="/admin/users"),
|
|
11
|
+
),
|
|
12
|
+
padding="2rem",
|
|
13
|
+
border_right="1px solid",
|
|
14
|
+
border_color="gray",
|
|
15
|
+
height="100vh",
|
|
16
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Page layouts of the app."""
|
|
2
|
+
|
|
3
|
+
from collections.abc import Callable
|
|
4
|
+
|
|
5
|
+
import appkit_mantine as mn
|
|
6
|
+
import reflex as rx
|
|
7
|
+
from appkit_user.authentication.templates import default_meta
|
|
8
|
+
|
|
9
|
+
from app.components.navbar import app_navbar
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def default_layout(
|
|
13
|
+
*,
|
|
14
|
+
route: str | None = None,
|
|
15
|
+
title: str | None = None,
|
|
16
|
+
on_load: rx.EventHandler | list[rx.EventHandler] | None = None,
|
|
17
|
+
) -> Callable[[Callable[[], rx.Component]], rx.Component]:
|
|
18
|
+
"""Public page decorator for login and password reset (``PageLayout``)."""
|
|
19
|
+
|
|
20
|
+
def decorator(page_content: Callable[[], rx.Component]) -> rx.Component:
|
|
21
|
+
@rx.page(route=route, title=title, meta=default_meta, on_load=on_load)
|
|
22
|
+
def page() -> rx.Component:
|
|
23
|
+
return mn.theme_wrapper(page_content())
|
|
24
|
+
|
|
25
|
+
return page
|
|
26
|
+
|
|
27
|
+
return decorator
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def navbar_template(content: rx.Component) -> rx.Component:
|
|
31
|
+
"""Authenticated layout with the app navbar on the left."""
|
|
32
|
+
return mn.app_shell(
|
|
33
|
+
mn.app_shell.navbar(app_navbar()),
|
|
34
|
+
mn.app_shell.main(content),
|
|
35
|
+
navbar={"width": 250, "breakpoint": "sm"},
|
|
36
|
+
)
|
app/configuration.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
from functools import lru_cache
|
|
3
|
+
|
|
4
|
+
from appkit_commons.configuration.configuration import (
|
|
5
|
+
ApplicationConfig,
|
|
6
|
+
Configuration,
|
|
7
|
+
)
|
|
8
|
+
from appkit_commons.registry import service_registry
|
|
9
|
+
from appkit_user.configuration import AuthenticationConfiguration
|
|
10
|
+
|
|
11
|
+
logger = logging.getLogger(__name__)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AppConfig(ApplicationConfig):
|
|
15
|
+
authentication: AuthenticationConfiguration
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@lru_cache(maxsize=1)
|
|
19
|
+
def configure() -> Configuration[AppConfig]:
|
|
20
|
+
logger.debug("--- Configuring application settings ---")
|
|
21
|
+
return service_registry().configure(
|
|
22
|
+
AppConfig,
|
|
23
|
+
env_file="/.env",
|
|
24
|
+
)
|
app/pages/users.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import appkit_mantine as mn
|
|
2
|
+
import reflex as rx
|
|
3
|
+
from appkit_user.authentication.components.components import requires_admin
|
|
4
|
+
from appkit_user.authentication.templates import authenticated_page
|
|
5
|
+
from appkit_user.user_management.components.user import (
|
|
6
|
+
add_user_button,
|
|
7
|
+
add_user_modal,
|
|
8
|
+
edit_user_modal,
|
|
9
|
+
search_user_input,
|
|
10
|
+
user_table_view,
|
|
11
|
+
)
|
|
12
|
+
from appkit_user.user_management.states.user_states import UserState
|
|
13
|
+
|
|
14
|
+
from app.components.templates import navbar_template
|
|
15
|
+
from app.roles import ALL_ROLES
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@authenticated_page(
|
|
19
|
+
route="/admin/users",
|
|
20
|
+
title="Benutzerverwaltung",
|
|
21
|
+
template=navbar_template,
|
|
22
|
+
admin_only=True,
|
|
23
|
+
# ty cannot model reflex event-handler calls; suppress the false positives.
|
|
24
|
+
on_load=[UserState.set_available_roles(ALL_ROLES)], # ty: ignore[invalid-argument-type]
|
|
25
|
+
)
|
|
26
|
+
def users_page() -> rx.Component:
|
|
27
|
+
additional_components = []
|
|
28
|
+
|
|
29
|
+
return requires_admin(
|
|
30
|
+
add_user_modal(),
|
|
31
|
+
edit_user_modal(),
|
|
32
|
+
mn.stack(
|
|
33
|
+
mn.title("Benutzerverwaltung"),
|
|
34
|
+
mn.group(
|
|
35
|
+
add_user_button(),
|
|
36
|
+
search_user_input(),
|
|
37
|
+
),
|
|
38
|
+
user_table_view(additional_components=additional_components),
|
|
39
|
+
width="100%",
|
|
40
|
+
max_width="1200px",
|
|
41
|
+
spacing="6",
|
|
42
|
+
pr="2rem",
|
|
43
|
+
pl="2rem",
|
|
44
|
+
),
|
|
45
|
+
)
|
app/roles.py
ADDED
app/styles.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""Styles for the app."""
|
|
2
|
+
|
|
3
|
+
import reflex as rx
|
|
4
|
+
|
|
5
|
+
accent_bg_color = rx.color("accent", 2)
|
|
6
|
+
accent_color = rx.color("accent", 3)
|
|
7
|
+
accent_text_color = rx.color("accent", 9)
|
|
8
|
+
border = f"1px solid {rx.color('gray', 5)}"
|
|
9
|
+
border_radius = "var(--radius-2)"
|
|
10
|
+
box_shadow = "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"
|
|
11
|
+
box_shadow_right_light = "inset -5px -5px 15px -5px rgba(0, 0, 0, 0.1)"
|
|
12
|
+
box_shadow_right_dark = "inset -5px -5px 15px -5px rgba(0.9, 0.9, 0.9, 0.1)"
|
|
13
|
+
box_shadow_light = "0 1px 10px -0.5px rgba(0, 0, 0, 0.1)"
|
|
14
|
+
box_shadow_dark = "0 1px 10px -0.5px rgba(0.8, 0.8, 0.8, 0.1)"
|
|
15
|
+
content_max_width = "1280px"
|
|
16
|
+
gray_bg_color = rx.color("gray", 3)
|
|
17
|
+
max_width = "1480px"
|
|
18
|
+
sidebar_bg = rx.color("gray", 2)
|
|
19
|
+
|
|
20
|
+
sidebar_width = ["100%", "100%", "100%", "375px", "450px"]
|
|
21
|
+
text_color = rx.color("gray", 11)
|
|
22
|
+
|
|
23
|
+
markdown_style = {
|
|
24
|
+
"code": lambda text: rx.code(text, color_scheme="gray"),
|
|
25
|
+
"codeblock": lambda text, **props: rx.code_block(text, **props, margin_y="1em"),
|
|
26
|
+
"a": lambda text, **props: rx.link(
|
|
27
|
+
text,
|
|
28
|
+
**props,
|
|
29
|
+
font_weight="bold",
|
|
30
|
+
text_decoration="underline",
|
|
31
|
+
text_decoration_color=accent_text_color,
|
|
32
|
+
),
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
image_props = {
|
|
36
|
+
"decoding": "auto",
|
|
37
|
+
"loading": "eager",
|
|
38
|
+
"vertical_align": "middle",
|
|
39
|
+
"object_fit": "contain",
|
|
40
|
+
"width": "100%",
|
|
41
|
+
"height": ["400px", "500px", "650px", "850px"],
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
button_props = {
|
|
45
|
+
"size": "2",
|
|
46
|
+
"cursor": "pointer",
|
|
47
|
+
"variant": "outline",
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
logo_font = {
|
|
51
|
+
"font-family": "Major Mono Display",
|
|
52
|
+
"font-weight": "400",
|
|
53
|
+
"font-style": "normal",
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
base_stylesheets = [
|
|
57
|
+
"https://fonts.googleapis.com/css2?family=Roboto+Flex:wght@400;500;600;700;800&display=swap",
|
|
58
|
+
"https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600&display=swap",
|
|
59
|
+
"css/react-zoom.css",
|
|
60
|
+
"css/appkit.css",
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
base_style = {
|
|
64
|
+
"font_family": "Roboto Flex",
|
|
65
|
+
rx.icon: {
|
|
66
|
+
"stroke_width": "1.5px",
|
|
67
|
+
},
|
|
68
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: skill-dojo
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Manages agent plugin marketplaces, skills, and MCP servers in a git repo.
|
|
5
|
+
Project-URL: Homepage, https://github.com/jenreh/skill-dojo
|
|
6
|
+
Project-URL: Repository, https://github.com/jenreh/skill-dojo
|
|
7
|
+
Author: Jens Rehpöhler
|
|
8
|
+
License: MIT
|
|
9
|
+
License-File: LICENSE.md
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Requires-Python: >=3.14
|
|
15
|
+
Requires-Dist: alembic>=1.20.1
|
|
16
|
+
Requires-Dist: appkit-mantine>=1.19.1
|
|
17
|
+
Requires-Dist: appkit-user>=1.19.1
|
|
18
|
+
Requires-Dist: psycopg[binary,pool]>=3.3.9
|
|
19
|
+
Requires-Dist: reflex>=0.11.0
|
|
20
|
+
Requires-Dist: sqlalchemy>=2.1.8
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
|
|
23
|
+
<div align="center">
|
|
24
|
+
|
|
25
|
+
# skill-dojo
|
|
26
|
+
|
|
27
|
+
**Manages agent plugin marketplaces, skills, and MCP servers in a git repo.**
|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
[](LICENSE.md)
|
|
31
|
+
[](https://www.python.org)
|
|
32
|
+
[](https://reflex.dev)
|
|
33
|
+
|
|
34
|
+
[Getting Started](#project-initialization) • [Branching](#branching)
|
|
35
|
+
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Project Initialization
|
|
41
|
+
|
|
42
|
+
Before initializing the project, install these required tools:
|
|
43
|
+
|
|
44
|
+
1. `uv`: [installation instructions](https://docs.astral.sh/uv/getting-started/installation/)
|
|
45
|
+
2. `task`: [installation instructions](https://taskfile.dev/installation/)
|
|
46
|
+
|
|
47
|
+
After both tools are installed, run:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
task init
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
This installs the required Python version, syncs dependencies, and installs the pre-commit hooks.
|
|
54
|
+
|
|
55
|
+
## Security
|
|
56
|
+
|
|
57
|
+
See [SECURITY.md](SECURITY.md) for the secure defaults and the checklist to go through
|
|
58
|
+
before a deployment.
|
|
59
|
+
|
|
60
|
+
## Branching
|
|
61
|
+
|
|
62
|
+
See [BRANCHING.md](BRANCHING.md) for the repository branch naming policy.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
app/__init__.py,sha256=LKXhAWDExbXsBu87w0ov2d9w-zHB6VYUpn7QwE5qF00,236
|
|
2
|
+
app/app.py,sha256=8FXi5VtzCscwqwrFwAhhh61k18_4De0zsP5uGwfjAW0,2199
|
|
3
|
+
app/bootstrap_admin.py,sha256=UWZOHGN-PFqO4KNHC8vNaUZdCsZNGBzLzA_WPLrwaFU,2727
|
|
4
|
+
app/configuration.py,sha256=8SjMLfV8vg7EvFHV_178EFOEYZ-kf2RwF9rm1CtSF-4,614
|
|
5
|
+
app/roles.py,sha256=ne9rxkOLKuhjMHb-hTHXrhOYeZRG0IRPyEbxQ8EqeyM,248
|
|
6
|
+
app/styles.py,sha256=RC3ZhyQOQhJbEpLoviFtBBWyQljdi8ro0xzKbq9L1Jw,1933
|
|
7
|
+
app/components/navbar.py,sha256=uamCAiUJIO74Q5OOwTNGAl3JSzAuyvBT7bEETcIl4Mc,401
|
|
8
|
+
app/components/templates.py,sha256=mrNEyycpXYq0-dMXzYoIxjQI-3xc6jdHvB8oS4CVmGY,1096
|
|
9
|
+
app/pages/users.py,sha256=GL1ndbvfCDaTWN-xDY6Z3TjSRlW1BAiNplfeBSOClME,1357
|
|
10
|
+
skill_dojo-0.0.0.dist-info/METADATA,sha256=F7MZZstyKAI1IumMlaDcqwx8W2InGxZO3Shd8zBENng,1946
|
|
11
|
+
skill_dojo-0.0.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
12
|
+
skill_dojo-0.0.0.dist-info/licenses/LICENSE.md,sha256=A25lXiJP9OQUE42BwN5rYJLvUkgryhk8oQJlPgxDETA,1074
|
|
13
|
+
skill_dojo-0.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jens Rehpöhler
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|