Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add docker image #384

Open
wants to merge 42 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
481fd55
qol: add attachments to cli interface
RLKRo Feb 11, 2024
973abaa
qol: make keywords upper case
RLKRo Feb 11, 2024
98692f9
qol: accept list of attachments as `Message.attachment`
RLKRo Feb 11, 2024
a9bbbb9
qol: make choice function accept responses as args
RLKRo Feb 11, 2024
d25fd30
qol: import script objects inside `dff/__init__.py`
RLKRo Feb 11, 2024
e8fc8f6
json import draft
RLKRo Feb 12, 2024
dfd61b5
add json import examples
RLKRo Feb 12, 2024
66b3bb0
add submodule aliases
RLKRo Feb 20, 2024
9637110
update resolve_target_object to use submodule aliases
RLKRo Feb 20, 2024
c4f04ba
add function to retrieve dff object mapping
RLKRo Feb 20, 2024
cfda4f7
small fixes
RLKRo Feb 22, 2024
0e5f72a
capitalize messages
RLKRo Mar 20, 2024
56755b9
improve import system for custom objects
RLKRo Mar 20, 2024
4b4cf69
make custom_dir standard way to address custom dir
RLKRo Mar 22, 2024
ce18579
prepare parser for dev release
RLKRo May 27, 2024
702ddc8
Merge branch 'master' into 'chore/slots2parser'
Ramimashkouk Jul 18, 2024
0c53232
Merge branch 'master' into chore/slots2parser
Ramimashkouk Jul 22, 2024
d787906
feat: Integrate slots parsing
Ramimashkouk Jul 22, 2024
8a4781d
chore: Add pre-transitions to script example
Ramimashkouk Jul 23, 2024
486a432
refactor: Use a consistent approach with slots
Ramimashkouk Aug 15, 2024
12c5913
feat: Add dockerfile image
Ramimashkouk Aug 15, 2024
cb0348d
refactor: Separate dockerfiles each in dir
Ramimashkouk Aug 22, 2024
8a49408
chore: Add chatsky to compose.yml
Ramimashkouk Aug 22, 2024
4f1c35f
chore: Add command to compose
Ramimashkouk Aug 28, 2024
f7faf1e
chore: Copy default pipeline to dockerfile
Ramimashkouk Aug 28, 2024
748aaec
feat: Add HTTPMessengerInterface
Ramimashkouk Aug 28, 2024
85f55ff
ci: Add workflow to build & publish docker image
Ramimashkouk Aug 28, 2024
3b8391b
fix: Make image workflow work
Ramimashkouk Sep 5, 2024
710d361
Merge branch 'feat/add-http-interface' into feat/add-docker-image
Ramimashkouk Sep 5, 2024
84a6630
chore: Publish docker image to ghrc
Ramimashkouk Sep 19, 2024
3e9e9d8
fix: Update dockerfile to find the built wheel
Ramimashkouk Sep 19, 2024
6af361b
Merge branch 'dev' into feat/add-docker-image
Ramimashkouk Sep 19, 2024
4a406c0
chore: Continue merge
Ramimashkouk Sep 19, 2024
7d15ab1
fix: Install dependencies in dokcerfile
Ramimashkouk Sep 19, 2024
6d17536
push poetry lock
Ramimashkouk Sep 19, 2024
a20de2c
chore: lock poetry
Ramimashkouk Nov 14, 2024
a0394eb
Merge branch 'dev' into feat/add-docker-image
Ramimashkouk Nov 14, 2024
d4296f0
fix: Import Message properly
Ramimashkouk Nov 14, 2024
029da89
chore: Get http_interface port from .env
Ramimashkouk Nov 18, 2024
51bc913
chore: Get port
Ramimashkouk Nov 18, 2024
584d06b
feat: Add http_interace health check
Ramimashkouk Nov 20, 2024
7e8f261
fix: Provide ctx_id for HttpInterface
Ramimashkouk Dec 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add function to retrieve dff object mapping
RLKRo committed Feb 20, 2024

Verified

This commit was signed with the committer’s verified signature.
RLKRo Roman Zlobin
commit c4f04ba8bbe3271fbcebe5b0685fd55bbe513285
17 changes: 17 additions & 0 deletions dff/pipeline/pipeline/script_parsing.py
Original file line number Diff line number Diff line change
@@ -142,3 +142,20 @@ def from_file(cls, file: Union[str, Path]):
return cls(yaml.load(fd, Loader=Loader))
else:
raise JSONImportError("file should have a `.json`, `.yaml` or `.yml` extension")


def get_dff_objects():
def get_objects_from_submodule(submodule_name: str, alias: Optional[str] = None):
module = importlib.import_module(submodule_name)

return {
".".join([alias or submodule_name, name]): obj
for name, obj in module.__dict__.items() if not name.startswith("_") and not ismodule(obj)
}

return {
**get_objects_from_submodule("dff.cnd"),
**get_objects_from_submodule("dff.rsp"),
**get_objects_from_submodule("dff.lbl"),
**get_objects_from_submodule("dff.msg", "dff")
}