Skip to content

Commit

Permalink
numeric/equatable/comparable unions and more
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanLukes committed Aug 12, 2024
1 parent 4b7bc1d commit e005801
Show file tree
Hide file tree
Showing 14 changed files with 958 additions and 415 deletions.
47 changes: 47 additions & 0 deletions notebooks/Datatypes.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"cells": [
{
"cell_type": "code",
"id": "initial_id",
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2024-08-07T21:52:11.780812Z",
"start_time": "2024-08-07T21:52:11.764428Z"
}
},
"source": "from renkon.vendor.sly import Lexer, Parser",
"outputs": [],
"execution_count": 1
},
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": "",
"id": "5655c0485b7a1422"
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
# Typing and Modeling
# Domain Modeling
"annotated-types", # Annotated type annotations
"pydantic", # Data modeling and validation
"pydantic-settings", # Settings management

# todo: may be able to remove
"bitarray", # Bit arrays

# Data Processing
Expand All @@ -37,13 +39,18 @@ dependencies = [
"pyarrow", # Columnar data format

# Infrastructure
# todo replace with structlog
"loguru", # Logging

# Miscellaneous
"lark-parser", # Parsing

# CLI Interface
"click", # CLI
"rich", # Pretty console output

# Web Interface
# todo replace with Django (for Channels) maybe?
"fastapi", # Web framework
"uvicorn", # ASGI server
"jinja2", # Templating
Expand Down
2 changes: 1 addition & 1 deletion src/renkon/cli/web.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import click
import uvicorn

from renkon.util.logging import configure_logging
from renkon.util.logger import configure_logging


@click.command(context_settings={"show_default": True})
Expand Down
5 changes: 3 additions & 2 deletions src/renkon/core/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: BSD-3-Clause

__all__ = [
"RenkonDataType",
"RenkonType",
"ColumnName",
"ColumnNames",
"ColumnType",
Expand All @@ -22,10 +22,11 @@
]

from renkon.core.model.bitseries import BitSeries
from renkon.core.model.datatypes import RenkonType
from renkon.core.model.schema import Schema
from renkon.core.model.trait.kind import TraitKind
from renkon.core.model.trait.pattern import TraitPattern
from renkon.core.model.trait.result import TraitResult, TraitResultScore
from renkon.core.model.trait.sketch import TraitSketch
from renkon.core.model.trait.spec import TraitId, TraitSpec
from renkon.core.model.type_aliases import RenkonDataType, ColumnName, ColumnNames, ColumnType, ColumnTypes, ColumnTypeSet
from renkon.core.model.type_aliases import ColumnName, ColumnNames, ColumnType, ColumnTypes, ColumnTypeSet
Loading

0 comments on commit e005801

Please sign in to comment.