{"id":37708870,"url":"https://github.com/jkoestner/morai","last_synced_at":"2026-04-20T06:01:32.914Z","repository":{"id":229741940,"uuid":"753948538","full_name":"jkoestner/morai","owner":"jkoestner","description":"Actuarial experience dashboard and predictor","archived":false,"fork":false,"pushed_at":"2026-04-20T04:07:48.000Z","size":125119,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-20T05:35:46.439Z","etag":null,"topics":["actuarial","actuary","mortality","plotly","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jkoestner.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-07T05:01:42.000Z","updated_at":"2026-04-20T04:06:02.000Z","dependencies_parsed_at":"2024-06-27T04:40:25.641Z","dependency_job_id":"3e203794-454f-4b6f-ae96-ac36b212ded3","html_url":"https://github.com/jkoestner/morai","commit_stats":null,"previous_names":["jkoestner/xact"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jkoestner/morai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoestner%2Fmorai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoestner%2Fmorai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoestner%2Fmorai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoestner%2Fmorai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkoestner","download_url":"https://codeload.github.com/jkoestner/morai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkoestner%2Fmorai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32035276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actuarial","actuary","mortality","plotly","python"],"created_at":"2026-01-16T13:13:15.068Z","updated_at":"2026-04-20T06:01:32.892Z","avatar_url":"https://github.com/jkoestner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"morai/dashboard/assets/morai_logo.png\"\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n# Morai\n![workflow badge](https://github.com/jkoestner/morai/actions/workflows/test-and-deploy.yml/badge.svg)\n[![license badge](https://img.shields.io/github/license/jkoestner/morai)](https://github.com/jkoestner/morai/blob/main/LICENSE.md)\n[![codecov](https://codecov.io/gh/jkoestner/morai/branch/main/graph/badge.svg?token=386HHBN1AK)](https://codecov.io/gh/jkoestner/morai)\n[![Code style: black](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)\n![Python](https://img.shields.io/badge/python-3.12-blue.svg)\n\n## Table of Contents\n- [Morai](#morai)\n  - [Table of Contents](#table-of-contents)\n  - [Overview](#overview)\n  - [Installation](#installation)\n    - [Local Install](#local-install)\n    - [Docker Install](#docker-install)\n  - [Usage](#usage)\n    - [CLI](#cli)\n  - [Other Tools](#other-tools)\n    - [Jupyter Lab Usage](#jupyter-lab-usage)\n    - [Logging](#logging)\n    - [Coverage](#coverage)\n\n## Overview\n\n**📖 Description:**\n\n[Moirai](https://en.wikipedia.org/wiki/Moirai#:~:text=In%20ancient%20Greek%20religion%20and,Moirai) \nin greek mythology are known as the fates. They are personifications of destiny.\nThe name Morai was chosen as the package is designed to help actuaries review \nmortality and experience data.\n\n**📊 Dashboard:**\n\n- [Dashboard](https://morai.koestner.fun)\n- Data Overview: ![dash_data_input](docs/screenshots/morai_data.gif)\n- Data Tables: ![dash_data_tables](docs/screenshots/morai_tables.gif)\n- Data CDC: ![dash_cdc](docs/screenshots/morai_cdc.gif)\n\n**🔬 Jupyter Notebook:**\n\n- [Data Process](http://githubtocolab.com/jkoestner/morai/blob/main/notebooks/01.data_process.ipynb)\n- [Exploratory](http://githubtocolab.com/jkoestner/morai/blob/main/notebooks/02.exploratory.ipynb)\n- [Predictive Models](http://githubtocolab.com/jkoestner/morai/blob/main/notebooks/06.1.predictive_model.ipynb)\n- And Others\n\n## Installation\n\n### Install\n\nTo install the base package\n\n```\nuv pip install morai\n```\n\nTo install optional dependencies\n\n```\nuv pip install morai[dev][neural][r]\n```\n\n### Local Install\nTo install, download this repository and run the following command in \nthe environment of choice. Optional dependencies can be installed by adding\n`[dev][neural][r]` to the end of the command.\n\n```\nuv pip install -e .\n```\n\n### Docker Install\nThe package can also be run in docker which provides a containerized environment, hosting the web dashboard.\n\n```bash\nversion: \"3.8\"\nservices:\n  morai:\n    image: dmbymdt/morai:latest\n    container_name: morai\n    command: gunicorn -b 0.0.0.0:8001 morai.dashboard.app:server\n    restart: unless-stopped\n    environment:\n      MORAI_FILES_PATH: /code/morai/files # setting the files path for morai\n    ports:\n      - '8001:8001'\n    volumes:\n      - $DOCKERDIR/morai/files:/code/morai/files # mounting the files directory\n```\n\n## Usage\n\n### CLI\n\nCLI can be used for easier commands of python scripts for both portfolio or manager. An example of a CLI command is shown below. When running the dashboard the `MORAI_FILES_PATH` environment variable needs to be set to the directory where the files are stored.\n\n```commandline\nmorai dashboard\n```\n\nIt also can be run locally by running below in the root directory of the repository.\n\n```python\npython -m morai.dashboard.app\n```\n\n## Other Tools\n### Jupyter Lab Usage\n\nTo have conda environments work with Jupyter Notebooks a kernel needs to be defined. This can be done defining a kernel, shown below when\nin the conda environment.\n\n```\npython -m ipykernel install --user --name=morai\n```\n\nIf plotly images are not showing in the default set up there may need to be some extensions added to JupyterLab.\nThe extension particularly needed is the jupyterlab-plotly extension.\nThis is also discussed more in this issue: [Plotly Issue](https://github.com/plotly/plotly.py/issues/2672)\n\n### Logging\n\nIf wanting to get more detail in output of messages the logging can increased\n```python\nfrom morai.utils import custom_logger\ncustom_logger.set_log_level(\"DEBUG\")\n```\n\n### Coverage\n\nTo see the test coverage the following command is run in the root directory.\n```\npytest --cov=morai --cov-report=html\n```\n\nTo test static typing\n```\nmypy morai\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkoestner%2Fmorai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkoestner%2Fmorai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkoestner%2Fmorai/lists"}