[](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/98/94/0ff29ddcf29369b191b9b665806c44c0aacf922670d48ac2e0b128029972/runtime_reflection_lite-0.2.0.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.2.0",
"project_urls": {
"repository": "https://github.com/apmadsen/runtime-reflection-lite"
},
"split_keywords": [
"windows",
" linux",
" async",
" reflection",
" inspection"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "b53dcda38312d1dc1afb5632c5333ee04ea2eaa5283184969c3ff0f0828bab7d",
"md5": "2c28c686a5a95abfa612c5e55640b40b",
"sha256": "5ddf8930f5eea1cc1a0f605e3ea7234db1923e9e5caa4287e8b119e729111e7a"
},
"downloads": -1,
"filename": "runtime_reflection_lite-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2c28c686a5a95abfa612c5e55640b40b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 30034,
"upload_time": "2025-10-27T07:33:47",
"upload_time_iso_8601": "2025-10-27T07:33:47.122424Z",
"url": "https://files.pythonhosted.org/packages/b5/3d/cda38312d1dc1afb5632c5333ee04ea2eaa5283184969c3ff0f0828bab7d/runtime_reflection_lite-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "98940ff29ddcf29369b191b9b665806c44c0aacf922670d48ac2e0b128029972",
"md5": "c9017850ea0bf9874b108059895eeb22",
"sha256": "fc06e282588f92fb9f605c8db1c1fdce9139e6a4385f5d0edb318853e30f5ae3"
},
"downloads": -1,
"filename": "runtime_reflection_lite-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "c9017850ea0bf9874b108059895eeb22",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 25314,
"upload_time": "2025-10-27T07:33:48",
"upload_time_iso_8601": "2025-10-27T07:33:48.922754Z",
"url": "https://files.pythonhosted.org/packages/98/94/0ff29ddcf29369b191b9b665806c44c0aacf922670d48ac2e0b128029972/runtime_reflection_lite-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-27 07:33:48",
"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"
}