René's URL Explorer Experiment


Title: GitHub - amahi2001/python-token-killer: Minimize LLM tokens from Python objects, code, logs, diffs, and more. Zero deps. Ultra-Lightweight. · GitHub

Open Graph Title: GitHub - amahi2001/python-token-killer: Minimize LLM tokens from Python objects, code, logs, diffs, and more. Zero deps. Ultra-Lightweight.

X Title: GitHub - amahi2001/python-token-killer: Minimize LLM tokens from Python objects, code, logs, diffs, and more. Zero deps. Ultra-Lightweight.

Description: Minimize LLM tokens from Python objects, code, logs, diffs, and more. Zero deps. Ultra-Lightweight. - amahi2001/python-token-killer

Open Graph Description: Minimize LLM tokens from Python objects, code, logs, diffs, and more. Zero deps. Ultra-Lightweight. - amahi2001/python-token-killer

X Description: Minimize LLM tokens from Python objects, code, logs, diffs, and more. Zero deps. Ultra-Lightweight. - amahi2001/python-token-killer

Opengraph URL: https://github.com/amahi2001/python-token-killer

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:1adc75a4-0205-53f3-bcb9-22a349439cd5
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idD6B0:312530:FC6620:15C4C0C:6A4CA11D
html-safe-nonce52ddd47d5c83a544de0187942c636117b87938369cea613b5f53e6ab0643b4be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkIwOjMxMjUzMDpGQzY2MjA6MTVDNEMwQzo2QTRDQTExRCIsInZpc2l0b3JfaWQiOiIxMDkwNjg3NTgwNTk1MDY5MjEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacca44b477e0e2c6e4ea6429dd708c67c7eb5dd14279a22c8897db05a16ed9ba7d
hovercard-subject-tagrepository:1205497629
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/amahi2001/python-token-killer
twitter:imagehttps://opengraph.githubassets.com/bfd689d0c6623bc9b1f4455fbd61fc9cdcfa5bb6956095e69aebe97e64bc8e69/amahi2001/python-token-killer
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bfd689d0c6623bc9b1f4455fbd61fc9cdcfa5bb6956095e69aebe97e64bc8e69/amahi2001/python-token-killer
og:image:altMinimize LLM tokens from Python objects, code, logs, diffs, and more. Zero deps. Ultra-Lightweight. - amahi2001/python-token-killer
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-cache
go-importgithub.com/amahi2001/python-token-killer git https://github.com/amahi2001/python-token-killer.git
octolytics-dimension-user_id56854337
octolytics-dimension-user_loginamahi2001
octolytics-dimension-repository_id1205497629
octolytics-dimension-repository_nwoamahi2001/python-token-killer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1205497629
octolytics-dimension-repository_network_root_nwoamahi2001/python-token-killer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseae90d426644ca15e89bacceb72e51f4e9dbf85f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/amahi2001/python-token-killer#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Famahi2001%2Fpython-token-killer
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Famahi2001%2Fpython-token-killer
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=amahi2001%2Fpython-token-killer
Reloadhttps://github.com/amahi2001/python-token-killer
Reloadhttps://github.com/amahi2001/python-token-killer
Reloadhttps://github.com/amahi2001/python-token-killer
amahi2001 https://github.com/amahi2001
python-token-killerhttps://github.com/amahi2001/python-token-killer
Notifications https://github.com/login?return_to=%2Famahi2001%2Fpython-token-killer
Fork 1 https://github.com/login?return_to=%2Famahi2001%2Fpython-token-killer
Star 14 https://github.com/login?return_to=%2Famahi2001%2Fpython-token-killer
Code https://github.com/amahi2001/python-token-killer
Issues 1 https://github.com/amahi2001/python-token-killer/issues
Pull requests 6 https://github.com/amahi2001/python-token-killer/pulls
Actions https://github.com/amahi2001/python-token-killer/actions
Projects https://github.com/amahi2001/python-token-killer/projects
Security and quality 0 https://github.com/amahi2001/python-token-killer/security
Insights https://github.com/amahi2001/python-token-killer/pulse
Code https://github.com/amahi2001/python-token-killer
Issues https://github.com/amahi2001/python-token-killer/issues
Pull requests https://github.com/amahi2001/python-token-killer/pulls
Actions https://github.com/amahi2001/python-token-killer/actions
Projects https://github.com/amahi2001/python-token-killer/projects
Security and quality https://github.com/amahi2001/python-token-killer/security
Insights https://github.com/amahi2001/python-token-killer/pulse
https://github.com/amahi2001/python-token-killer
Brancheshttps://github.com/amahi2001/python-token-killer/branches
Tagshttps://github.com/amahi2001/python-token-killer/tags
https://github.com/amahi2001/python-token-killer/branches
https://github.com/amahi2001/python-token-killer/tags
66 Commitshttps://github.com/amahi2001/python-token-killer/commits/main/
https://github.com/amahi2001/python-token-killer/commits/main/
.githubhttps://github.com/amahi2001/python-token-killer/tree/main/.github
.githubhttps://github.com/amahi2001/python-token-killer/tree/main/.github
assetshttps://github.com/amahi2001/python-token-killer/tree/main/assets
assetshttps://github.com/amahi2001/python-token-killer/tree/main/assets
benchmarkshttps://github.com/amahi2001/python-token-killer/tree/main/benchmarks
benchmarkshttps://github.com/amahi2001/python-token-killer/tree/main/benchmarks
docs-sitehttps://github.com/amahi2001/python-token-killer/tree/main/docs-site
docs-sitehttps://github.com/amahi2001/python-token-killer/tree/main/docs-site
exampleshttps://github.com/amahi2001/python-token-killer/tree/main/examples
exampleshttps://github.com/amahi2001/python-token-killer/tree/main/examples
src/ptkhttps://github.com/amahi2001/python-token-killer/tree/main/src/ptk
src/ptkhttps://github.com/amahi2001/python-token-killer/tree/main/src/ptk
testshttps://github.com/amahi2001/python-token-killer/tree/main/tests
testshttps://github.com/amahi2001/python-token-killer/tree/main/tests
.gitignorehttps://github.com/amahi2001/python-token-killer/blob/main/.gitignore
.gitignorehttps://github.com/amahi2001/python-token-killer/blob/main/.gitignore
.pre-commit-config.yamlhttps://github.com/amahi2001/python-token-killer/blob/main/.pre-commit-config.yaml
.pre-commit-config.yamlhttps://github.com/amahi2001/python-token-killer/blob/main/.pre-commit-config.yaml
.python-versionhttps://github.com/amahi2001/python-token-killer/blob/main/.python-version
.python-versionhttps://github.com/amahi2001/python-token-killer/blob/main/.python-version
AGENTS.mdhttps://github.com/amahi2001/python-token-killer/blob/main/AGENTS.md
AGENTS.mdhttps://github.com/amahi2001/python-token-killer/blob/main/AGENTS.md
CHANGELOG.mdhttps://github.com/amahi2001/python-token-killer/blob/main/CHANGELOG.md
CHANGELOG.mdhttps://github.com/amahi2001/python-token-killer/blob/main/CHANGELOG.md
CLAUDE.mdhttps://github.com/amahi2001/python-token-killer/blob/main/CLAUDE.md
CLAUDE.mdhttps://github.com/amahi2001/python-token-killer/blob/main/CLAUDE.md
CONTRIBUTING.mdhttps://github.com/amahi2001/python-token-killer/blob/main/CONTRIBUTING.md
CONTRIBUTING.mdhttps://github.com/amahi2001/python-token-killer/blob/main/CONTRIBUTING.md
LICENSEhttps://github.com/amahi2001/python-token-killer/blob/main/LICENSE
LICENSEhttps://github.com/amahi2001/python-token-killer/blob/main/LICENSE
Makefilehttps://github.com/amahi2001/python-token-killer/blob/main/Makefile
Makefilehttps://github.com/amahi2001/python-token-killer/blob/main/Makefile
README.mdhttps://github.com/amahi2001/python-token-killer/blob/main/README.md
README.mdhttps://github.com/amahi2001/python-token-killer/blob/main/README.md
SECURITY.mdhttps://github.com/amahi2001/python-token-killer/blob/main/SECURITY.md
SECURITY.mdhttps://github.com/amahi2001/python-token-killer/blob/main/SECURITY.md
pyproject.tomlhttps://github.com/amahi2001/python-token-killer/blob/main/pyproject.toml
pyproject.tomlhttps://github.com/amahi2001/python-token-killer/blob/main/pyproject.toml
uv.lockhttps://github.com/amahi2001/python-token-killer/blob/main/uv.lock
uv.lockhttps://github.com/amahi2001/python-token-killer/blob/main/uv.lock
READMEhttps://github.com/amahi2001/python-token-killer
Contributinghttps://github.com/amahi2001/python-token-killer
MIT licensehttps://github.com/amahi2001/python-token-killer
Securityhttps://github.com/amahi2001/python-token-killer
https://github.com/amahi2001/python-token-killer/blob/main/assets/mascot.png
https://github.com/amahi2001/python-token-killer/actions/workflows/ci.yml
https://camo.githubusercontent.com/d3c3507d53173d06aab51fbdf7c3ecdb8770be8562b37a3a30c303f4943ff50e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e31302b2d3337373641423f7374796c653d666c61742d737175617265266c6f676f3d707974686f6e266c6f676f436f6c6f723d7768697465
https://camo.githubusercontent.com/6d785902e0e7553b748c502519820de4f802d4cd126992473ecb31efb792496a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d7970792d7374726963742d626c75653f7374796c653d666c61742d737175617265
https://github.com/amahi2001/python-token-killer/blob/main/LICENSE
https://github.com/amahi2001/python-token-killer#your-llm-calls-carry-dead-weight
https://github.com/amahi2001/python-token-killer#benchmarks
https://github.com/amahi2001/python-token-killer#how-it-works
https://github.com/amahi2001/python-token-killer#usage
https://github.com/amahi2001/python-token-killer#real-world-examples
https://github.com/amahi2001/python-token-killer#rag-pipeline-compress-retrieved-docs-before-they-hit-the-prompt
examples/rag_pipeline.pyhttps://github.com/amahi2001/python-token-killer/blob/main/examples/rag_pipeline.py
https://github.com/amahi2001/python-token-killer#langgraph--langchain-compress-tool-outputs-between-nodes
examples/langgraph_agent.pyhttps://github.com/amahi2001/python-token-killer/blob/main/examples/langgraph_agent.py
https://github.com/amahi2001/python-token-killer#log-triage-feed-only-failures-to-your-llm
examples/log_triage.pyhttps://github.com/amahi2001/python-token-killer/blob/main/examples/log_triage.py
https://github.com/amahi2001/python-token-killer#api-reference
https://github.com/amahi2001/python-token-killer#ptkminimizeobj--aggressivefalse-content_typenone-kw--str
https://github.com/amahi2001/python-token-killer#ptkstatsobj-kw--dict
https://github.com/amahi2001/python-token-killer#ptkobj-callable-shorthand
https://github.com/amahi2001/python-token-killer#comparison
RTKhttps://github.com/rtk-ai/rtk
claw-compactorhttps://github.com/open-compress/claw-compactor
LLMLinguahttps://github.com/microsoft/LLMLingua
https://github.com/amahi2001/python-token-killer#design
https://github.com/amahi2001/python-token-killer#development
https://github.com/amahi2001/python-token-killer#license
python https://github.com/topics/python
ai https://github.com/topics/ai
developer-tools https://github.com/topics/developer-tools
agents https://github.com/topics/agents
llm https://github.com/topics/llm
cost-reduction https://github.com/topics/cost-reduction
llm-tools https://github.com/topics/llm-tools
agentic-workflow https://github.com/topics/agentic-workflow
token-optimization https://github.com/topics/token-optimization
Readme https://github.com/amahi2001/python-token-killer#readme-ov-file
MIT license https://github.com/amahi2001/python-token-killer#MIT-1-ov-file
Contributing https://github.com/amahi2001/python-token-killer#contributing-ov-file
Security policy https://github.com/amahi2001/python-token-killer#security-ov-file
Please reload this pagehttps://github.com/amahi2001/python-token-killer
Activityhttps://github.com/amahi2001/python-token-killer/activity
1 forkhttps://github.com/amahi2001/python-token-killer/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Famahi2001%2Fpython-token-killer&report=amahi2001+%28user%29
Releases 3https://github.com/amahi2001/python-token-killer/releases
v0.2.0 Latest Apr 16, 2026 https://github.com/amahi2001/python-token-killer/releases/tag/v0.2.0
+ 2 releaseshttps://github.com/amahi2001/python-token-killer/releases
Packages 0https://github.com/users/amahi2001/packages?repo_name=python-token-killer
Please reload this pagehttps://github.com/amahi2001/python-token-killer
Please reload this pagehttps://github.com/amahi2001/python-token-killer
Contributorshttps://github.com/amahi2001/python-token-killer/graphs/contributors
Please reload this pagehttps://github.com/amahi2001/python-token-killer
Python 96.3% https://github.com/amahi2001/python-token-killer/search?l=python
Makefile 2.4% https://github.com/amahi2001/python-token-killer/search?l=makefile
JavaScript 1.3% https://github.com/amahi2001/python-token-killer/search?l=javascript
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.