Registry / devops / args

args

JSON →
library0.1.0pypiunverified

The 'args' library (version 0.1.0) by Kenneth Reitz is a minimalistic command-line argument parser designed to simplify access to arguments, flags, and assignments. Released in 2012, it provides a very basic interface for parsing command-line inputs. The library is considered abandoned, with its GitHub repository marked as an archive, and is no longer actively maintained. [2, 5]

devops
Install & Compatibility
Where this runs
tested against v0.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.2MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.4s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The library primarily exposes functionality through the top-level 'args' module, not individual classes or functions.

import args

This quickstart demonstrates how to import and use the 'args' library to access various categories of command-line inputs such as all arguments, flags (prefixed with '--'), file-like arguments, and key-value assignments.

import args import sys # Example usage for a script run as: python your_script.py arg1 --flag file.txt key=value # Simulate command-line arguments for demonstration if run without actual CLI args if len(sys.argv) == 1: # Only if the script is run without arguments, use a simulated set sys.argv.extend(['arg1', '--flag', 'file.txt', 'key=value']) print(f'Arguments passed in: {args.all}') print(f'Flags detected: {args.flags}') print(f'Files detected: {args.files}') print(f'NOT files detected: {args.not_files}') print(f'Grouped Arguments: {args.grouped}') print(f'Assignments detected: {args.assignments}')
Debug
Known footguns
breakingThe `args` library (v0.1.0) uses Python 2 `print` statements in its examples and internal logic. Running it directly on Python 3 will result in `SyntaxError` or other compatibility issues due to the `print` function change. The project is effectively Python 2 only.
deprecatedThe `args` library is an archived project by Kenneth Reitz and has not been updated since 2012 (PyPI release) / 2018 (last GitHub activity). It is considered unmaintained and should not be used for new projects. [2, 5]
gotchaThe `args` library offers a very simplistic parsing model, unlike `argparse`. It does not support explicit argument definitions, types, default values, or subcommands. It categorizes arguments based on simple patterns (e.g., `--` for flags, `=` for assignments, `.txt` for files by default). [2]
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
10 hits · last 30 days
gptbot
4
ahrefsbot
3
script
1
bingbot
1
Resources

No resource links recorded.