{"id":20766224,"url":"https://github.com/datapuzzler/multilevel_py","last_synced_at":"2025-06-28T23:40:57.569Z","repository":{"id":57443958,"uuid":"325514742","full_name":"dataPuzzler/multilevel_py","owner":"dataPuzzler","description":"A library that simplifies the construction of deep classification hierarchies","archived":false,"fork":false,"pushed_at":"2021-08-13T12:47:52.000Z","size":2845,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-18T01:48:07.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dataPuzzler.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-30T09:57:24.000Z","updated_at":"2022-08-12T15:22:56.000Z","dependencies_parsed_at":"2022-09-14T00:52:12.685Z","dependency_job_id":null,"html_url":"https://github.com/dataPuzzler/multilevel_py","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataPuzzler%2Fmultilevel_py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataPuzzler%2Fmultilevel_py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataPuzzler%2Fmultilevel_py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataPuzzler%2Fmultilevel_py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dataPuzzler","download_url":"https://codeload.github.com/dataPuzzler/multilevel_py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243093969,"owners_count":20235469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-17T11:22:06.427Z","updated_at":"2025-03-11T18:48:43.477Z","avatar_url":"https://github.com/dataPuzzler.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://github.com/dataPuzzler/multilevel_py/workflows/Run%20unittests/badge.svg\n\t:target: https://github.com/dataPuzzler/multilevel_py/workflows/Run%20unittests/badge.svg\n\t:alt: Unittests Badge\n.. image:: https://readthedocs.org/projects/multilevel-py/badge/?version=latest\n    :target: https://readthedocs.org/projects/multilevel-py/badge/?version=latest\n    :alt: Docs Badge\n\n\nmultilevel_py\n=============\n\n*Multilevel_py* is a library that simplifies the construction of classification hierarchies over more than two levels.\nThe framework depends on python3 only and implements a \"deep instantiation\" mechanism using pythons metaprogramming\nfacilities. In academia, the addressed topic is also discussed under the term \"Multilevel (Meta-) Modelling\". Since\nthere is no corresponding framework in the python community until this point, multilevel_py was built to fill this gap.\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n    # Python only\n    pip install multilevel_py \n    \n    # with graphical syntax\n    pip install multilevel_py[viz] \n\n\nNote that for using the graphical syntax, an installation of the underlying visualisation engine `graphviz`_ is required. \n\nA Simple Example\n----------------\n \n The following code constructs a classification structure that spans three levels.\n\n.. code-block:: python\n\n    from multilevel_py.constraints import is_int_constraint, is_str_constraint\n    from multilevel_py.core import create_clabject_prop, Clabject\n    \n    Breed = Clabject(name=\"Breed\")\n    yearReg = create_clabject_prop(n=\"yearReg\", t=1, f=0, i_f=True, c=[is_int_constraint])\n    age = create_clabject_prop(n=\"age\", t=2, f=0, i_f=True, c=[is_int_constraint])\n    Breed.define_props([yearReg, age])\n    \n    Collie = Breed(name=\"Collie\", init_props={\"yearReg\": 1888})\n    lassie = Collie(name=\"Lassie\", init_props={\"age\": 7}, declare_as_instance=True)\n\nVisualisation\n-------------\nUsing the viz module, the following graph can be rendered for the previous\nexample:\n\n.. image:: https://github.com/dataPuzzler/multilevel_py/blob/master/docs/images/collie_chain_initial_example.png\n    :width: 400\n    :alt: Visulisation of the collie example\n\n\n\nLinks\n-----\n* Github Repository: https://github.com/dataPuzzler/multilevel_py\n* Documentation: https://multilevel-py.readthedocs.io/en/latest/\n* Releases: https://pypi.org/project/multilevel-py/#description\n\n.. _pip: https://pip.pypa.io/en/stable/quickstart/\n.. _graphviz: https://graphviz.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatapuzzler%2Fmultilevel_py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatapuzzler%2Fmultilevel_py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatapuzzler%2Fmultilevel_py/lists"}