On this page
  1. kindof
  2. Role
  3. Install
  4. Quickstart
  5. When to Reach for It
  6. Gotchas & Pitfalls
  7. Pairs With
  8. Metadata

kindof

Prev: enforce-type | Up: projects | Next: builtouts
Rel: wispsy, Foundation, enforce-type
Ref: wispsy on GitHub
Tags: #public #wispsy #project #foundation #tier/core


Role

Small, typed runtime object inspection (inspect) for Python 3.9+ (0.1.0, zero runtime deps)—exposing type, fields, methods, signatures, annotations, and a recursive JSON-compatible schema without serializing an object's values directly.

Install

python -m pip install kindof

Quickstart

from kindof import inspect

class User:
    name: str
    active: bool = True
    def greet(self, punctuation: str = "!") -> str:
        return f"{self.name}{punctuation}"

user = User()
user.name = "Ada"
result = inspect(user)
assert result.methods["greet"].signature == "(self, punctuation: str = '!') -> str"
assert result.schema["properties"]["name"] == {"type": "string"}

When to Reach for It

Gotchas & Pitfalls

Pairs With


Metadata

type: project-card
slug: kindof
org: wispsy
repo: wispsy/kindof
package: kindof
version: 0.1.0
requires_python: ">=3.9"
layer: foundation
topic: wispsy-foundation
status: active
language: python
source_docs: README.md, docs/

Linked from

Related notes