PyReflect
This library is a simple reflection library for Python. It is designed to be simple and easy to use.
Installation
pip install pyreflect
Usage
from pyreflect import reflect
def foo():
return 1
foo_meta = reflect(foo)
print(foo_meta.name) # foo
foo_meta.args.add("a", reflect(int))
foo_meta.update_origin()
try:
foo()
except TypeError as e:
print(e) # foo() missing 1 required positional argument: 'a'
Metadata
Release files for pyreflect 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyreflect-0.1.0.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyreflect-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.7 kB
Release files / pyreflect-0.1.0.tar.gz
| Download URL | pyreflect-0.1.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8d8816506b5a0c9e5a63ea7d453e9bb5598d00ad3fb5e7d61355eb3a0845351
|
|
BLAKE2b-256 checksum How to use checksums |
883c284ae3ff4cb27dd1c3e1ab54990434320246a36fd2261a3fd30f5da5badf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / pyreflect-0.1.0-py3-none-any.whl
| Download URL | pyreflect-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
308b5f8a0dd70e6fe09d022082abd161e79a84c172e92f985fab83a03ca6786b
|
|
BLAKE2b-256 checksum How to use checksums |
e9b6bae59230361bbd14e304c81dc6dd0bae59f964635df8bf845f59a202b9c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|