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]
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
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.2MB
glibcpy 3.10–3.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}')
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.
Resources
No resource links recorded.