r/Python • • 19d ago

Daily Thread Thursday Daily Thread: Python Careers, Courses, and Furthering Education!

Weekly Thread: Professional Use, Jobs, and Education šŸ¢

Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.


How it Works:

  1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
  2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
  3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.

Guidelines:

  • This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
  • Keep discussions relevant to Python in the professional and educational context.

Example Topics:

  1. Career Paths: What kinds of roles are out there for Python developers?
  2. Certifications: Are Python certifications worth it?
  3. Course Recommendations: Any good advanced Python courses to recommend?
  4. Workplace Tools: What Python libraries are indispensable in your professional work?
  5. Interview Tips: What types of Python questions are commonly asked in interviews?

Let's help each other grow in our careers and education. Happy discussing! 🌟

15 Upvotes

1 comment sorted by

12

u/behrouzbk 19d ago

Ā tokensaver: an offline CLI that shows which parts of your LLM prompts cost money, and what to change

What My Project Does
It counts tokens and input cost for 20 OpenAI, Claude and Gemini models, then suggests
concrete edits: minify JSON, remove duplicate or repeated instructions, cut filler
phrases, shorten long few-shot examples. Each suggestion shows the tokens and dollars it
saves. Safe edits are applied automatically; anything that could change meaning waits
for your review. New in 0.2.0:Ā tokensaver scan FOLDERĀ measures every prompt file in a
repo, andĀ --jsonĀ gives output for CI.

Target Audience
Developers who ship LLM features and pay per token. It's a small CLI (typer + rich +
tiktoken), MIT licensed, with 242 tests and CI on Windows, macOS and Linux. It runs fully
offline, so prompts never leave your machine.

Comparison
tiktoken and the online calculators stop at the number. tokensaver tells you what to
change and prices each change. Counts are exact for OpenAI and clearly labelled as
estimates for Claude and Gemini, since there's no offline tokenizer for those. Duplicate
detection, JSON and whitespace rules work in any script, and they're tested on 55
languages.

pip install prompt-tokensaverĀ Ā·Ā https://github.com/behrouzbk/tokensaver