Runtime reflection (lite)
Project description
runtime-reflection-lite
This project is meant as a light implementation of the later runtime-reflection project which will support deeper reflection of the source code. As such, it contains the bare minimum to reflect on functions and resolve type annotations.
Example
from runtime.reflection.lite import reflect_function
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 = reflect_function(Class1.do_something) # -> (suffix: str | None) -> str
signature2 = reflect_function(Class1.__init__) # -> (value: str)
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.0.0.tar.gz.
File metadata
- Download URL: runtime_reflection_lite-0.0.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2037fa5d5d0ec314030944495c23089931acffa3fda154d2407f603f72c87c48
|
|
| MD5 |
85a30f0edd0a7e3d0beae07c409c7aba
|
|
| BLAKE2b-256 |
16830293abe6101356f5ed738713f0d14da1e3e4c1ba421fb74fb8dd5e343cde
|
Provenance
The following attestation bundles were made for runtime_reflection_lite-0.0.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.0.0.tar.gz -
Subject digest:
2037fa5d5d0ec314030944495c23089931acffa3fda154d2407f603f72c87c48 - Sigstore transparency entry: 266986858
- Sigstore integration time:
-
Permalink:
apmadsen/runtime-reflection-lite@afd89d80f8a4db04cf234727c812b97b1bac972d -
Branch / Tag:
refs/tags/v0.0.0 - Owner: https://github.com/apmadsen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@afd89d80f8a4db04cf234727c812b97b1bac972d -
Trigger Event:
release
-
Statement type:
File details
Details for the file runtime_reflection_lite-0.0.0-py3-none-any.whl.
File metadata
- Download URL: runtime_reflection_lite-0.0.0-py3-none-any.whl
- Upload date:
- Size: 8.2 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 |
67545b1300fb6b272c0023c8ac6a08dad615ac63cb63258ecd59858a8e57a3f0
|
|
| MD5 |
b1e50b27e7cec69b6638ee86e1ffb1eb
|
|
| BLAKE2b-256 |
5f1280267891af5c28582c08f999e1acdbb57f668b431186b14940ba80173aa1
|
Provenance
The following attestation bundles were made for runtime_reflection_lite-0.0.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.0.0-py3-none-any.whl -
Subject digest:
67545b1300fb6b272c0023c8ac6a08dad615ac63cb63258ecd59858a8e57a3f0 - Sigstore transparency entry: 266986864
- Sigstore integration time:
-
Permalink:
apmadsen/runtime-reflection-lite@afd89d80f8a4db04cf234727c812b97b1bac972d -
Branch / Tag:
refs/tags/v0.0.0 - Owner: https://github.com/apmadsen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@afd89d80f8a4db04cf234727c812b97b1bac972d -
Trigger Event:
release
-
Statement type: