Skip to content

Commit

Permalink
cut out old web stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanLukes committed Oct 20, 2024
1 parent e49af7d commit aa75585
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 1,857 deletions.
File renamed without changes.
37 changes: 14 additions & 23 deletions src/renkon/core/trait/_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
# SPDX-License-Identifier: BSD-3-Clause
from collections.abc import Hashable
from enum import StrEnum
from typing import Annotated, Self

from pydantic import AfterValidator, BaseModel, ConfigDict, Field, model_validator
Expand All @@ -14,20 +13,10 @@
type TraitId = str


class TraitSpecState(StrEnum):
"""
State of the trait in the inference pipeline. As a specification is passed
through the pipeline, various changes occur until it is in a state suitable
to feed directly into the inference engine.
"""

# TODO: implement here


class TraitSpec(BaseModel, Hashable):
"""
Models the declarative specification for a trait. This can be seen as all
of the data about a Trait that can be serialized. A Trait instance can be
the data about a Trait that can be serialized. A Trait instance can be
reconstructed from a TraitSpec provided the id attribute is a fully qualified
import name for the corresponding Trait class.
Expand Down Expand Up @@ -56,17 +45,19 @@ class TraitSpec(BaseModel, Hashable):
... }
... }''')
>>> trait = TraitSpec.model_validate({
... "label": "Equal",
... "id": "renkon.core.doctest.traits.Equal",
... "kind": "logical",
... "pattern": "{A} = {B}",
... "commutors": {"A", "B"},
... "typevars": {
... "T": "equatable",
... },
... "typings": {"A": "T", "B": "T"},
... })
>>> trait = TraitSpec.model_validate(
... {
... "label": "Equal",
... "id": "renkon.core.doctest.traits.Equal",
... "kind": "logical",
... "pattern": "{A} = {B}",
... "commutors": {"A", "B"},
... "typevars": {
... "T": "equatable",
... },
... "typings": {"A": "T", "B": "T"},
... }
... )
"""

model_config = ConfigDict(
Expand Down
1 change: 0 additions & 1 deletion src/renkon/web/.gitignore

This file was deleted.

Empty file removed src/renkon/web/__init__.py
Empty file.
51 changes: 0 additions & 51 deletions src/renkon/web/app.py

This file was deleted.

34 changes: 0 additions & 34 deletions src/renkon/web/htmx-ws.web-types.json

This file was deleted.

Loading

0 comments on commit aa75585

Please sign in to comment.