Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

igrek51/wat: Deep inspection of Python objects #850

Open
1 task
ShellLM opened this issue Aug 1, 2024 · 1 comment
Open
1 task

igrek51/wat: Deep inspection of Python objects #850

ShellLM opened this issue Aug 1, 2024 · 1 comment
Labels
AI-Agents Autonomous AI agents using LLMs ai-platform model hosts and APIs Algorithms Sorting, Learning or Classifying. All algorithms go here. Code-Interpreter OpenAI Code-Interpreter data-validation Validating data structures and formats embeddings vector embeddings and related tools finetuning Tools for finetuning of LLMs e.g. SFT or RLHF github gh tools like cli, Actions, Issues, Pages MachineLearning ML Models, Training and Inference openai OpenAI APIs, LLMs, Recipes and Evals prompt Collection of llm prompts and notes python Python code, tools, info source-code Code snippets

Comments

@ShellLM
Copy link
Collaborator

ShellLM commented Aug 1, 2024

igrek51/wat: Deep inspection of Python objects

"WAT Inspector

GitHub PyPI Documentation

Deep inspection of Python objects.

WAT is a powerful inspection tool that allows you to delve into and examine unknown objects at runtime.

"Wat" is a variant of the English word "what" that is often used to express confusion or disgust. If you find yourself deep within the Python console, feeling dazed and confused, wondering "WAT? What's that thing?", that's where the wat inspector comes in handy.

Start the Python Interpreter (or attach to one) and execute wat / object on any object to investigate its type, formatted value, variables, methods, parent types, signature, documentation, and even its source code. Alternatively, you can use wat(object) syntax.

wat-demo.mp4

Import

Insta-Load

If you want to quickly debug something, you can use this inspector without installing anything, in the same session.

Load it on the fly by pasting this snippet to your Python interpreter:

import base64, zlib
code = b'eJzdW/1u28gR/z9PsUj/IJnoVDvpB+A7pfUlanqA71L4fA0CxyAocWXzQpECScV2BQH3EH2Ge7A+SedjP/khyW4KFA1wMrm785vZmdmZ2eXeoiqXIk2aZJ4ndS1rkS1XZdXYpieqISvqlZw3+rU0HZXUT/V9/WSBeM39KiuuNdRpcT8Sb7J5MxJnWQ2/71Z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q/qO6FX0TCPMRvFZi+BQDonUFjKDazRSbBEdvDwfRKEeCjLUpv5Lh10eV7DamREj6u9Dbt/J26K5rudaS4yVI3LopQLzBePDoEdDjw4nCASJPms6MB7BDieXqHzDlrFyUkX6E/hYyUBHRLIOc7Ij4eHhJ28Iqy+CqZzSr5OYNomfJWUIWDcg4FuNqBd9D4DkZbPx4NxQgtn7quwfcSO2hQLngGn+dr1HaewzPX430ygPM6VPoj843UHgPz2eEwXV9oqn449W2ci36KSjJJUf2kQ2jrQF1Xyb2DlWY1eoqg7+KLdW6+tjM+xJG6zOWT1zjh7uLISyin6l3rJ4x6lguRCeOl4yH467ycOfgOAvc4EIGTAPZeCDCxYeBSAP4jBTptHKmwerQRGwMvBu5OwMbiE1pa+0E/fvcFdVhZq3snWHbJxutVihtPxbLviwFkrLCTTMbqPXzm09HnSx7T+/mBwdrcBr9WuIHfGCfkoyCyutMawab7zPeEwOpay8uqLsEZ3WP8oTREF7Rs/O+/EmdSp7rLSuBoxz6TRD0AMc9WmRCW0CpP7mPuC/lPy4YLn7K77Vf680a1IdzUjh8lwwDGBSP+IBANY+L0+ozlXXFY4PWcvKWvQTX7NQN5bSv3FvI2BvIJO9BuzaqxpmzxJtpaEkp2RWKXZssKym3YFt7C7GoRQ6JRI0ax/dFDOZIXP9qG7+UFBAMW8zygFYba0J0vzbYOsuuLVWDeR6LJmtzlyueWuDbNFTVL3aFr3/fadWWLkIdvbDlT2LuEOO42sKzT7LMJvSoeeCg6YnCfQ5yk6eMI8/omWzSPo63+A9qyeiTPxxLmjxRUXQ4zxHQLshsDCITXsfCyNAxHd9kEVOziDeA62PrLwsQGP3hcKpIrP+JTO

#### Suggested labels
#### None
@ShellLM ShellLM added AI-Agents Autonomous AI agents using LLMs ai-platform model hosts and APIs Algorithms Sorting, Learning or Classifying. All algorithms go here. Code-Interpreter OpenAI Code-Interpreter data-validation Validating data structures and formats embeddings vector embeddings and related tools ExLlamaV2 finetuning Tools for finetuning of LLMs e.g. SFT or RLHF github gh tools like cli, Actions, Issues, Pages MachineLearning ML Models, Training and Inference openai OpenAI APIs, LLMs, Recipes and Evals prompt Collection of llm prompts and notes python Python code, tools, info source-code Code snippets labels Aug 1, 2024
@ShellLM
Copy link
Collaborator Author

ShellLM commented Aug 1, 2024

Related content

#848 similarity score: 0.87
#625 similarity score: 0.86
#762 similarity score: 0.86
#772 similarity score: 0.86
#456 similarity score: 0.86
#743 similarity score: 0.85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI-Agents Autonomous AI agents using LLMs ai-platform model hosts and APIs Algorithms Sorting, Learning or Classifying. All algorithms go here. Code-Interpreter OpenAI Code-Interpreter data-validation Validating data structures and formats embeddings vector embeddings and related tools finetuning Tools for finetuning of LLMs e.g. SFT or RLHF github gh tools like cli, Actions, Issues, Pages MachineLearning ML Models, Training and Inference openai OpenAI APIs, LLMs, Recipes and Evals prompt Collection of llm prompts and notes python Python code, tools, info source-code Code snippets
Projects
None yet
Development

No branches or pull requests

2 participants