$npx skillfedfor your agent

dargs

Process arguments for the deep modeling project.

With conditionsPyPI Software DevelopmentReleased Feb 2026134.7K downloads / mocopyleft licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — dargs-0.5.0.post0-py3-none-any.whl
v0.5.0.post0 · released 2026-02-24 · Python >=3.7 · 2 runtime deps: typeguard, typing_extensions

Yes, if you need declarative argument validation with built-in documentation. The package is actively maintained, has low install friction, and solves a real problem for projects with complex nested configuration. The LGPLv3 license requires careful review if you're building proprietary software, but the library itself is stable and dependency-light.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a pure-Python wheel and only two lightweight runtime dependencies (typeguard, typing_extensions).
  • Repository is active with recent commits and no archived status.

License · maintenance · safety

copyleft license (copyleft) — LGPLv3 copyleft license requires that derivative works and modifications be distributed under the same license; proprietary applications using this as a library may need to comply with linking and disclosure obligations.

last release 2026-02-24 (171 days) · last repo commit 2026-08-10 · 7 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 134,661 downloads/mo, #11,467 on PyPI

Verify before relying

pip install dargs

from dargs import Argument

arg_def = Argument('config', dict, [Argument('key', str)])
arg_def.check({'key': 'value'})
  • Whether JSON schema generation integrates with external JSON editors as claimed in the description
  • Scope and maturity of Sphinx and Jupyter Notebook integration features
  • Performance characteristics when validating deeply nested or large argument structures
Same gist for agents: .md · .json

What it is and what it does

dargs is a Python argument validation and documentation library that examines input dictionaries against a schema you define using the Argument class. It checks types, validates nested keys and sub-argument types, and supports a special variant mode where dictionary contents can be determined by the value of a flag key. The library provides three main methods: check (validates structure), normalize (adds defaults and resolves aliases), and gendoc (outputs documentation with optional HTML anchors for cross-reference).

The package integrates with PEP 484 type annotations and offers native support for Sphinx, Jupyter Notebook, and DP-GUI. It can generate JSON schema from an Argument definition for use with JSON editors, and supports loading dictionary values from external JSON or YAML files via a $ref key. It's designed for projects that need declarative, reusable argument schemas with built-in documentation generation.

Use it for

  • Define and validate configuration dictionaries for scientific computing or deep learning pipelines with nested parameters and type safety
  • Generate documentation and JSON schemas from argument definitions for use in web UIs or IDE integrations
  • Normalize user input by applying default values and resolving aliases before passing to downstream functions
  • Handle variant argument structures where the allowed keys depend on the value of a discriminator flag
  • Integrate argument validation into Sphinx-based documentation or Jupyter notebooks for interactive parameter exploration

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need declarative argument validation with built-in documentation.

The package is actively maintained, has low install friction, and solves a real problem for projects with complex nested configuration. The LGPLv3 license requires careful review if you're building proprietary software, but the library itself is stable and dependency-light.

Install

dargs on PyPI

Before you install

Low install friction with a pure-Python wheel and only two lightweight runtime dependencies (typeguard, typing_extensions). Repository is active with recent commits and no archived status.

License in practice

LGPLv3 copyleft license requires that derivative works and modifications be distributed under the same license; proprietary applications using this as a library may need to comply with linking and disclosure obligations.

Quickstart

pip install dargs

from dargs import Argument

arg_def = Argument('config', dict, [Argument('key', str)])
arg_def.check({'key': 'value'})

Verify before relying

  • Whether JSON schema generation integrates with external JSON editors as claimed in the description
  • Scope and maturity of Sphinx and Jupyter Notebook integration features
  • Performance characteristics when validating deeply nested or large argument structures

Package facts

Licensecopyleft license copyleft
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
typeguardtyping_extensions
MaintenanceActively maintained 171 days since the last release
Last repo commit
First released
Downloads134,661 / month, #11,467 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Programming Language :: Python :: 3.7

Evidence: dargs-0.5.0.post0-py3-none-any.whl

Tags

Capabilities
argument validation pythondict type checkingargument schema definitioninput validation frameworkargument documentation generatorvariant argument handlingparameter validation library
Topics
validationconfigurationschema

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “argument validation python”

  • dargsValidates, normalizes, and documents structured argument dictionaries…
  • pydantic-argparseGenerates command-line argument parsers from Pydantic models,…
  • argparseProvides command-line argument parsing for Python programs,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also dpgui · typeguard · sphinx-argparse · marshmallow-jsonschema · jschon · lxml-stubs · json-ref-dict · parse-type · flake8-annotations · darglint