Built a small experimental concurrency system in Python called Py-TokenGate.
The idea: instead of tasks competing freely for threads, a token system classifies them by cost and routes them before they ever hit the queue. Decorator-based API, asyncio + threading hybrid.
It's a proof of concept, not production code — but it benchmarks well and the model feels worth exploring.
https://github.com/TavariAgent/Py-TokenGate
#Python #OpenSource #Concurrency #Programming #ProofOfConcept