{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/6"}],"enrichment":{"capability":"Provides sentinel values (REQ and OPT) and utility functions to simplify wrapper function creation around third-party APIs by marking parameters as required or optional and automatically validating or filtering them.","skillfed_tags":["api-wrapper","parameter-validation","dataclass-utilities"],"use_cases":["Creating a cleaner wrapper around a third-party API where you want to enforce required parameters and exclude optional ones.","Building configuration dataclasses where optional fields need to appear before required ones in the class definition.","Validating function arguments in a wrapper that passes them through to an underlying API, raising an error early if required.","Constructing kwargs dictionaries that filter out sentinel values before passing them to external functions.","Defining frozen configuration objects with computed fields that require some parameters but not others."],"what_it_does":"func_args is a lightweight, zero-dependency Python library that solves a common problem when wrapping third-party APIs: cleanly separating required parameters from optional ones and automatically validating or filtering them. It provides two sentinel values\u2014REQ to mark required parameters and OPT to mark optional ones\u2014along with utility functions like prepare_kwargs() that validate required arguments and remove optional ones in a single pass.\n\nBeyond simple wrapper functions, the package includes dataclass mixins (BaseModel and BaseFrozenModel) that let you define dataclasses with REQ and OPT defaults in any order, bypassing Python's standard restriction that fields without defaults must come before fields with defaults. This is useful for building configuration objects or data structures where the order of definition matters more than the order of required versus optional fields.","worth_installing":"Yes. The package solves a genuine problem in API wrapper design with zero dependencies, active maintenance, and a permissive license. It is well-suited for anyone building wrapper functions around third-party APIs or defining dataclasses with flexible required/optional field ordering. No known vulnerabilities and straightforward installation make it a low-risk addition."},"id":"func-args","links":{"html":"https://skillfed.io/packages/func-args","md":"https://skillfed.io/packages/func-args.md","pypi":"https://pypi.org/project/func-args/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-04-28","license_spdx":"MIT","license_treatment":"permissive","name":"func_args","python_support":"supports_current","summary":"A lightweight Python library for creating wrapper functions with enhanced argument handling using sentinel values to mark parameters as required or optional."},"popularity":{"monthly_downloads":851788,"position":4901,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.2"}
