[](https://github.com/apmadsen/runtime-reflection-lite/actions/workflows/python-test.yml)
[](https://github.com/apmadsen/runtime-reflection-lite/actions/workflows/python-test-coverage.yml)
[](https://github.com/apmadsen/runtime-reflection-lite/releases)


[](https://pepy.tech/projects/runtime-reflection-lite)
# runtime-reflection-lite
This project is meant as a lightweight implementation of the later reflection project which will support deeper reflection of the source code.
### Example
```python
from runtime.reflection.lite import MemberFilter, get_signature, get_members
class Class1:
def __init__(self, value: str):
self.__value = value
def do_something(self, suffix: str | None = None) -> str:
return self.__value + (suffix or "")
signature1 = get_signature(Class1.do_something) # -> (suffix: str | None) -> str
signature2 = get_signature(Class1.__init__) # -> (value: str)
members = get_members(Class1, filter = MemberFilter.FUNCTIONS_AND_METHODS)
info, member = members["do_something"] # -> MemberInfo, Method
```
## Full documentation
[Go to documentation](https://github.com/apmadsen/runtime-reflection-lite/blob/main/docs/documentation.md)
Raw data
{
"_id": null,
"home_page": null,
"name": "runtime-reflection-lite",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "windows, linux, async, reflection, inspection",
"author": null,
"author_email": "Anders Madsen <anders.madsen@alphavue.com>",
"download_url": "https://files.pythonhosted.org/packages/cb/7b/42fdd277d5d39a7a6daf68f89eff80205078cc0361a947c9e903aa9e1dbd/runtime_reflection_lite-0.1.1.tar.gz",
"platform": null,
"description": "[](https://github.com/apmadsen/runtime-reflection-lite/actions/workflows/python-test.yml)\n[](https://github.com/apmadsen/runtime-reflection-lite/actions/workflows/python-test-coverage.yml)\n[](https://github.com/apmadsen/runtime-reflection-lite/releases)\n\n\n[](https://pepy.tech/projects/runtime-reflection-lite)\n\n# runtime-reflection-lite\n\nThis project is meant as a lightweight implementation of the later reflection project which will support deeper reflection of the source code.\n\n### Example\n\n```python\nfrom runtime.reflection.lite import MemberFilter, get_signature, get_members\n\nclass Class1:\n def __init__(self, value: str):\n self.__value = value\n\n def do_something(self, suffix: str | None = None) -> str:\n return self.__value + (suffix or \"\")\n\nsignature1 = get_signature(Class1.do_something) # -> (suffix: str | None) -> str\nsignature2 = get_signature(Class1.__init__) # -> (value: str)\n\nmembers = get_members(Class1, filter = MemberFilter.FUNCTIONS_AND_METHODS)\ninfo, member = members[\"do_something\"] # -> MemberInfo, Method\n```\n\n## Full documentation\n\n[Go to documentation](https://github.com/apmadsen/runtime-reflection-lite/blob/main/docs/documentation.md)\n",
"bugtrack_url": null,
"license": null,
"summary": "Runtime reflection (lite)",
"version": "0.1.1",
"project_urls": {
"repository": "https://github.com/apmadsen/runtime-reflection-lite"
},
"split_keywords": [
"windows",
" linux",
" async",
" reflection",
" inspection"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e7899eda517384dda0ebc8d27f50e98f043d94a2795f735e4b90ee22b2675b4c",
"md5": "545e4424e5f0fc82e60e7dc1b76681f1",
"sha256": "161c9d00cd1d7025e244f2e5367b5a1dbc2e68e8e746c024dcdb9ea68f6f76d3"
},
"downloads": -1,
"filename": "runtime_reflection_lite-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "545e4424e5f0fc82e60e7dc1b76681f1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 26659,
"upload_time": "2025-08-07T08:54:18",
"upload_time_iso_8601": "2025-08-07T08:54:18.844933Z",
"url": "https://files.pythonhosted.org/packages/e7/89/9eda517384dda0ebc8d27f50e98f043d94a2795f735e4b90ee22b2675b4c/runtime_reflection_lite-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "cb7b42fdd277d5d39a7a6daf68f89eff80205078cc0361a947c9e903aa9e1dbd",
"md5": "1ec38faf4651a8a94f15827aeb05e0d3",
"sha256": "9b382902dc40a4627de0745bc26bc307d919b55f22cf06d9b45fbe0428265a69"
},
"downloads": -1,
"filename": "runtime_reflection_lite-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "1ec38faf4651a8a94f15827aeb05e0d3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 21317,
"upload_time": "2025-08-07T08:54:20",
"upload_time_iso_8601": "2025-08-07T08:54:20.276408Z",
"url": "https://files.pythonhosted.org/packages/cb/7b/42fdd277d5d39a7a6daf68f89eff80205078cc0361a947c9e903aa9e1dbd/runtime_reflection_lite-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-07 08:54:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "apmadsen",
"github_project": "runtime-reflection-lite",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "runtime-reflection-lite"
}