Skip to main content

kindof

kindof provides a small, typed API for describing Python objects at runtime. It is useful when an application needs stable metadata or a JSON-compatible description without serializing an object's values directly.

from kindof import inspect

description = inspect(instance)
print(description.schema)

The result exposes type, fields, methods, signatures, annotations, and a recursive JSON-compatible schema. Instance fields, class fields, properties, inherited members, and safely introspectable method signatures are included. Unsupported or dynamic members are omitted.

Installation

python -m pip install kindof

Quick example

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.fields["name"].required is False
assert result.methods["greet"].signature == "(self, punctuation: str = '!') -> str"
assert result.schema["properties"]["name"] == {"type": "string"}

See the API guide for the complete result model and schema mapping, and the examples for more usage patterns.

Releasing

Releases are published to PyPI through GitHub Actions using trusted publishing. The repository's pypi environment supplies the OIDC authorization; no PyPI token is stored in the repository. To publish a release:

  1. Confirm the version in pyproject.toml.
  2. Create and publish a GitHub release whose tag is exactly v<version> (for example, v0.1.0).
  3. The release workflow checks the tag against the package metadata, builds and validates the source distribution and wheel, and publishes both to PyPI.

Metadata

Release files for kindof 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kindof 0.1.0
File Size Uploaded Provenance Actions
kindof-0.1.0.tar.gz 5.4 kB With provenance Details for kindof-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kindof 0.1.0
File Interpreter ABI Platform Actions
kindof-0.1.0-py3-none-any.whl Python 3 none any Details for kindof-0.1.0-py3-none-any.whl

Total release size: 9.9 kB

Release files / kindof-0.1.0.tar.gz

Download URL kindof-0.1.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
12c9e51d34e5d697a1596a07e6593b8c790c941c563810c1e138adb72f974bdc
BLAKE2b-256 checksum
How to use checksums
60a2198fa8a75d99b4f83c84f7509f5650feea1e1d9fb40c761ce8c82a52a508
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / kindof-0.1.0-py3-none-any.whl

Download URL kindof-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
125d5709af451f34da2e8324e6bb337c00bd75b61614ea0bedda3a8623d3f04f
BLAKE2b-256 checksum
How to use checksums
710747f0287ef65d6957d44bf21ff7227b1a25589a79d4363bd48527374a8b45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for kindof 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kindof-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page