Runtime reflection (lite)
Project description
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
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runtime_reflection_lite-0.1.0.tar.gz.
File metadata
- Download URL: runtime_reflection_lite-0.1.0.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cea5683b7d786a8b193612395f927465bde438b4ea3f4ecc4d39e1b6238f538d
|
|
| MD5 |
3feca4195e10976fc186565483c8038c
|
|
| BLAKE2b-256 |
3935d84b2041561d471c4668edc065f2d6aecd0b7be09d1143506c7c98a28a8d
|
Provenance
The following attestation bundles were made for runtime_reflection_lite-0.1.0.tar.gz:
Publisher:
python-publish.yml on apmadsen/runtime-reflection-lite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runtime_reflection_lite-0.1.0.tar.gz -
Subject digest:
cea5683b7d786a8b193612395f927465bde438b4ea3f4ecc4d39e1b6238f538d - Sigstore transparency entry: 271644518
- Sigstore integration time:
-
Permalink:
apmadsen/runtime-reflection-lite@7570fc2c7cbc81529df392f568c3e8507e7e6335 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/apmadsen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7570fc2c7cbc81529df392f568c3e8507e7e6335 -
Trigger Event:
release
-
Statement type:
File details
Details for the file runtime_reflection_lite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: runtime_reflection_lite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eea25a183f638c3a248c7aa47581ee5dea05a163115668e5c0bf46c029cbee4f
|
|
| MD5 |
fbd5892cceaf43356fc4df5eb5a8800e
|
|
| BLAKE2b-256 |
70d824c1055833a745e4a7a18257c2f09ef7edbae86f9427754ed45f8d464678
|
Provenance
The following attestation bundles were made for runtime_reflection_lite-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on apmadsen/runtime-reflection-lite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runtime_reflection_lite-0.1.0-py3-none-any.whl -
Subject digest:
eea25a183f638c3a248c7aa47581ee5dea05a163115668e5c0bf46c029cbee4f - Sigstore transparency entry: 271644520
- Sigstore integration time:
-
Permalink:
apmadsen/runtime-reflection-lite@7570fc2c7cbc81529df392f568c3e8507e7e6335 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/apmadsen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7570fc2c7cbc81529df392f568c3e8507e7e6335 -
Trigger Event:
release
-
Statement type: