func-validator v1.3.0 feature highlight: Custom Error Message Validator classes provided by the func-validator Python package can accept custom error messages via the err_msg argument, which will be shown if an invalid argument value is provided. Custom error messages also let you interpolate argument names and values into the message. This can be done via the following syntax: “${arg_name}, ${arg_value}” Check the attached image below to see how to use custom error messages. You can install func-validator using the following command: pip install func-validator or pip3 install func-validator on Unix (or Linux) systems. Stay up to date with the latest “func-validator” features, tips, and updates—follow me now so you never miss an announcement! Links PyPI: https://lnkd.in/ez9h2QZy GitHub: https://lnkd.in/esHVSSt8 Docs: https://lnkd.in/eG_DTegq #Python #OpenSource #DevTools #CodeQuality #Programming #GitHub #MATLAB
"func-validator v1.3.0: Custom Error Messages"
More Relevant Posts
-
I just created a Linux System Call Table for easy reference — a simple Markdown reference listing syscall numbers, names, descriptions, and prototypes for x86_64 Linux. I hope it’ll also be helpful for developers, system programmers, and learners who want to explore and understand how Linux system calls are structured. I’ve also included the Python script that lets you generate or update the table directly from your own system — so it stays up to date across kernel versions. 👉 Check it out and feel free to contribute: https://lnkd.in/dHan2dVM #Linux #OpenSource #Syscalls #Programming #Python #Documentation
To view or add a comment, sign in
-
Ever built a "minimal" NixOS image and been shocked to find it's over 1.5GB? 🤯 Bloated images are a headache, but it doesn't have to be that way. The second article in our NixOS appliance image series is a deep dive into shrinking a NixOS appliance, taking it from 1.5GB all the way down to relatively lean ~360MB. The new post shares practical, step-by-step "tricks" for hunting down and eliminating unnecessary dependencies. You'll learn how to use tools like `nix-store --query` and `nix why-depends` to find out why things like Perl, Python, or even speech synthesizers are ending up in your build. If you're looking to optimize your NixOS systems, this is a must-read. Check out the full guide here: <link in the comments!> #NixOS #Linux #DevOps #ImageOptimization #EmbeddedSystems #Systemd #Performance
To view or add a comment, sign in
-
-
💡 Python + Ubuntu = Automation Powerhouse I’ve been using Python scripts on Ubuntu to automate everyday system tasks — from log cleanup and data backups to monitoring services. Some of my go-to tools and modules: • subprocess → run shell commands • os and pathlib → manage files & directories • crontab → schedule jobs • psutil → monitor system performance It’s amazing how much efficiency you can achieve with just a few lines of Python code. Anyone else here using Python for Linux automation? Would love to exchange ideas! #Python #Ubuntu #Automation #Linux #Scripting #DevCommunity
To view or add a comment, sign in
-
After dealing with a messy Python setup, I have decided to write this blog A quick guide on when (and how) to uninstall all Python packages safely across Windows, macOS and Linux Read it here 👉 https://lnkd.in/dy7DJQuQ How do you keep your Python setup clean - venv, Conda, pyenv, or something else? #Python #Developers #Programming #pyenv
To view or add a comment, sign in
-
One of my first Python Linux apps with the help of Cursor. A handy little tool to work with Gitea repos, push, pull, create ssh keys, work with API etc. You can download it at the Github link below for free (open source of course). https://lnkd.in/ecMtaUic
To view or add a comment, sign in
-
-
Ever wished your Linux terminal could do exactly what you want? Well, it can — with a little help from Python. 🐍💻 I just published a new blog where I show how to turn a simple Python script into a fully functional Linux command — one that works just like ls or grep. No heavy dependencies. No complex setup. Just pure Python + Linux power. ⚙️ If you love coding, automation, or just enjoy bending your terminal to your will — this one’s for you. 👉 Read it here: [https://lnkd.in/gPN-DbFi] #Python #Linux #Automation #Coding #Developers #Productivity #CommandLine #TechCommunity #Trading #AlgoTrading #Quant #DataScience #DevOps #Developers #CommandLine #Coding #WorkflowAutomation #OpenSource #TechInnovation
To view or add a comment, sign in
-
#zabbix_sender In this section, we’ll discuss Zabbix Sender and how to use it in practice. First, we’ll write a Python script that collects some data from the operating system — for example, CPU usage or memory utilization. Then, we’ll send this data to the Zabbix server using the zabbix_sender command. After successfully sending the data, we’ll create a graph in Zabbix to visualize the collected metrics and configure a trigger to generate alerts when certain thresholds are exceeded. #monitoring #zabbix #Linux #devops #python #docker #network See the full video on Aparat or YouTube: YouTube: https://lnkd.in/d8KnyUz7 aparat: https://lnkd.in/dXZcMnMa
To view or add a comment, sign in
-
I'm currently building a Python library with Rust, and you can too! It's simple with PyO3 Maturin Maturin handles the entire packaging workflow with minimal config. Maturin builds and publishes crates with PyO3, CFFI, and uniffi bindings as Python packages. It supports Windows, Linux, macOS, and FreeBSD. Works with CPython, PyPy, and GraalPy. 𝟰 𝗺𝗮𝗶𝗻 𝗰𝗼𝗺𝗺𝗮𝗻𝗱𝘀 👉🏽 maturin new - Creates a cargo project configured for Python 👉🏽 maturin build - Builds wheels and stores them locally 👉🏽 maturin publish - Builds and uploads to PyPI 👉🏽 maturin develop - Installs directly into your virtualenv for fast iteration 𝗠𝗶𝘅𝗲𝗱 𝗥𝘂𝘀𝘁/𝗣𝘆𝘁𝗵𝗼𝗻 𝗽𝗿𝗼𝗷𝗲𝗰𝘁𝘀 You can structure projects with both Rust and Python source files. Maturin adds the native extension as a module in your Python package. The tool handles all the glue code automatically. 𝗣𝘆𝘁𝗵𝗼𝗻 𝗺𝗲𝘁𝗮𝗱𝗮𝘁𝗮 Maturin supports PEP 621. Define dependencies, console scripts, and classifiers in pyproject.toml. It merges metadata from both Cargo.toml and pyproject.toml. 𝗠𝗮𝗻𝘆𝗹𝗶𝗻𝘂𝘅 𝗰𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲 The project includes auditwheel reimplementation that checks library compatibility. For full manylinux compliance, build in the official docker containers. Maturin assigns proper platform tags automatically. 𝗦𝗼𝘂𝗿𝗰𝗲 𝗱𝗶𝘀𝘁𝗿𝗶𝗯𝘂𝘁𝗶𝗼𝗻𝘀: Add a build-system entry to pyproject.toml and maturin can build sdists with --sdist. The source distribution contains the same files as cargo package. If you're writing Python extensions in Rust, maturin removes the packaging headaches. Just write code. #rust #python #opensource #ai
To view or add a comment, sign in
-
-
Claude is outputting commands that would break our operating systems! To give context for the unaware, python is installed by default as a system dependency by many of the most popular operating systems (macOS, almost every single linux distro) I was tinkering with an open source project and I asked Claude for recommendations on VAD (voice activity detection) models. It gave good library recommendations like I expected, but I noticed the command it gave me to install the libraries `pip install ... --break-system-packages` I actually did not know what that flag did, so I looked it up. Apparently, newer versions of pip checks if you are installing a package outside of a virtual environment and prevents you from installing in case you are. The `--break-system-packages` flag disables this check. This means that if you are installing a package that, for an example, modifies an existing system package's version, you have a very high risk of breaking the critical operating system functionalities. What bothers me is that Claude not only did not recommend me to create a virtual environment first, it just went ahead and gave me the command that would silence the error that would prevent me from doing something very dangerous! This is why we MUST check our copy pasted code before executing it, always. Never get lazy. I'll provide links from the official docs to explain the usage and the context behind this flag in the comments.
To view or add a comment, sign in
-
-
I often used online PDF tools to edit, watermark, or redact documents. But it always felt risky — uploading personal or sensitive files to unknown servers isn’t ideal. So, over the past two weekends, I decided to build my own desktop app for this. Ofcourse with the help of Cursor :) It’s built with Python and PySide6, and runs entirely offline — no uploads, no data leaving your system. Right now, it’s available for Linux as a single AppImage (no installation needed). A Windows version is on the way. Source code, AppImage, and other details are available on Github. [Link in comments] Would love to hear your feedback and suggestions. #keepbuilding #python #pyside6 #programming #desktopapps #privacy #security
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
You are doing great!