Built a System Explorer CLI tool using Python. The tool supports: • Listing files in the current or a custom directory • Viewing disk usage in a human-readable format • Inspecting running processes (PID and name) • Logging process snapshots with timestamps While building this, I focused on understanding how Python interacts with system-level data rather than just implementing features. Key things I explored: • Simplifying an initial tree-style approach after identifying unnecessary complexity • Designing a menu-driven CLI for flexible interaction • Converting raw byte values into readable formats (KB, MB, GB) • Accessing and handling system process data using psutil, including permission-related edge cases The repository also includes sample outputs for each feature to demonstrate how the tool behaves. GitHub: https://lnkd.in/gQWQr2RJ #Python #Linux #CLI #SystemProgramming #Automation #LearningByDoing
Python System Explorer CLI Tool with psutil
More Relevant Posts
-
Managing Python environments across different tools can get messy fast. As I’ve been using uv with good results in my Python projects, I decided to align agents around a uv-first workflow for generating and running code. Using one tool for environments, dependencies, and execution made the setup much simpler and more predictable. I wrote down how I set this up step by step: https://lnkd.in/dAvyjEwr There’s also a GitHub repo linked in the post with AGENTS.md and CLAUDE.md you can use as a starting point.
To view or add a comment, sign in
-
-
I’ve been using Jupyter notebooks for years, but they tend to get messy once they stop being "temporary". I recently tried marimo, and it feels like a different approach: • notebooks as plain Python files • dependency-based execution (no more weird states) • much cleaner to keep in git What I like most is that it sits somewhere between a notebook and a small app. I also show a real example: using it to recover deleted S3 files. 👉 https://lnkd.in/d_YdRCbd
To view or add a comment, sign in
-
📂 Moving beyond the basics: Automating file system analysis with Python. I recently tackled a challenge to build a directory analyzer that goes deeper than a simple ls command. Using the os module, I developed a script that provides a comprehensive audit of any given path. What it does: 1) Recursively traverses directories using os.walk(). 2) Aggregates total file counts and folder structures. 3) Calculates total storage footprint with formatted sizing. 4) Identifies the "heavy hitters" (largest files). 5) Uses Python dictionaries to map and group files by extension. This project was a great exercise in handling file metadata and organizing unstructured data into a clean, readable summary. Check out the screen recording below to see it in action! 👇 #Python #Coding #Automation #SoftwareDevelopment #Programming
To view or add a comment, sign in
-
Give our google-gemini GitHub org a follow, it has some helpful repos! Some of my favorites: /gemini-skills: library of skills for the Gemini API /gemini-cli: source code of @geminicli /cookbook: gemini guides /gemma-cookbook: gemma guides /genai-processors: python lib for efficient pipelines All links: 🔗 skills: https://lnkd.in/dvfqGUug 🔗 cookbook: https://lnkd.in/diib6xDd 🔗 gemma cookbook: https://lnkd.in/dXmbdfmu 🔗 cli: https://lnkd.in/dz_Y32pg 🔗 processors: https://lnkd.in/d78w9QWv
To view or add a comment, sign in
-
-
Claude Agent SDK tracing in LangSmith just got an upgrade. Now you can trace: → Subagents → Child runs inside MCP tools → Cost tracking + more Update to the latest Python SDK to try it out. Docs: https://lnkd.in/gTaNkWMa
To view or add a comment, sign in
-
-
🚀 Project Completed: Expense Tracker using Python I developed a command-line application to track daily expenses using Python and CSV file handling. 🔹 Features: ✔ Add and store expenses ✔ View all transactions ✔ Calculate total spending 🔗 GitHub Repository: https://lnkd.in/gQ4nwR95. This project helped me understand file handling and build a real-world application. #Python #DataScience #BeginnerProject #Learning
To view or add a comment, sign in
-
Turning an n8n workflow into a Python script and running it on GitHub for free is easier than you might think. Here’s a simple way to do it, especially if you want to run scheduled workflows. First, download your n8n workflow as a JSON file. Next, upload that file to Claude and ask it to convert the workflow into a Python script. Once you have the script, create a new GitHub repository and add the Python file. Move any API keys or sensitive information into GitHub Secrets to keep them secure. Then, ask Claude to guide you through setting up a GitHub Actions workflow that will run your script on a schedule. That’s it. Now your workflow runs for free on GitHub, without needing to keep n8n running.
To view or add a comment, sign in
-
🚀 Just Published My First Python Library on PyPI! Excited to share that I’ve built and published "common-fun" — a modular Python utility library designed to simplify everyday development tasks. 📦 Install: pip install common-fun 🖥️ Try CLI: common-fun help 🔗 GitHub: https://lnkd.in/gjWRyhpq 🔧 What it includes: • Number utilities (prime, gcd, factorial, etc.) • String processing (palindrome, slugify, etc.) • Array helpers (flatten, chunk, rotate) • Validators (email, URL, password) • File utilities • Performance decorators (timer, retry, caching) • 🔥 CLI support for direct terminal usage 💡 Why I built this: While working on multiple projects, I realized I was repeatedly writing similar utility functions. So I decided to consolidate everything into a clean, reusable, and structured library. ⚙️ Key highlights: • Fully modular architecture • Optimized implementations • CLI tool for quick access • PyPI-ready packaging • Clean documentation This project helped me understand: ✔️ Library design ✔️ Packaging & publishing ✔️ CLI development ✔️ Clean code practices Would love your feedback and suggestions! #Python #OpenSource #Developer #Programming #PyPI #SoftwareDevelopment
To view or add a comment, sign in
-
I’m excited to share my latest Python project – a simple Expense Tracker built using core Python fundamentals. This project focuses on strengthening the basics and demonstrates how powerful simple concepts can be when applied effectively. It is developed using: • Variables • Lists & Tuples • Functions • Loops (for, while) • Conditionals (if-elif-else) • User Input • Basic Data Handling To make it beginner-friendly, I’ve also included text files with line-by-line explanations of the code, so anyone starting with Python can easily follow along and understand the logic behind the program. You can explore the complete project here: https://lnkd.in/gdce9UUX This is a great hands-on project for beginners looking to build a strong foundation in Python and understand how to structure small real-world applications. I’d appreciate your feedback and suggestions! #Python #BeginnerProject #PythonProjects #Coding #LearnPython #Programming #SoftwareDevelopment #100DaysOfCode #TechSkills #CareerGrowth
To view or add a comment, sign in
-
7 small steps to start with algorithmic trading: 1. Start with Python 2. Learn to use VSCode 3. Take a pandas tutorial 4. Then a plotly tutorial 5. Make a portfolio with riskfolio 6. Make a backtest with vectorbt 7. Analyze performance with vectorbt You can do this! Want to learn how? Register here: https://lnkd.in/e6MyxcJd
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development
🥰