{
  "id": "jython",
  "name": "Jython",
  "homepage": "https://www.jython.org",
  "description": "Python implementation written in Java.",
  "executables": [
    "jython"
  ],
  "dotfiles": {
    "paths": [
      "~/.jython"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Run Python with Jython",
    "description": "Run a script, a one-line program or a library module. -D properties, -jar, -Q, -W and -3 are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "posix",
      "long_equals": false,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://github.com/jython/jython/blob/master/src/org/python/util/jython.java",
        "revision": "master 2026-10-27",
        "evidence": "usage: jython [option] ... [-c cmd | -m mod | file | -] [arg] ...\n-B       : don't write bytecode files on import;\n-c cmd   : program passed in as string (terminates option list)\n-E       : ignore environment variables (such as JYTHONPATH)\n-i       : inspect interactively after running script; forces a prompt even\n-m mod   : run library module as a script (terminates option list)\n-s       : don't add user site directory to sys.path;\n-S       : don't imply 'import site' on initialization\n-u       : unbuffered binary stdout and stderr\n-v       : verbose (emit more \"org.python\" log messages)\nfile     : program read from script file\narg ...  : arguments passed to program in sys.argv[1:]\n"
      }
    ],
    "field": [
      {
        "id": "command",
        "label": "Program string",
        "description": "Runs this code instead of a file.",
        "type": "string",
        "option": [
          "-c"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "module",
        "label": "Library module",
        "type": "string",
        "option": [
          "-m"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "interactive",
        "label": "Inspect interactively afterwards",
        "type": "boolean",
        "option": [
          "-i"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "unbuffered",
        "label": "Unbuffered stdout and stderr",
        "type": "boolean",
        "option": [
          "-u"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_bytecode",
        "label": "Do not write bytecode files",
        "type": "boolean",
        "option": [
          "-B"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "ignore_env",
        "label": "Ignore environment variables",
        "type": "boolean",
        "option": [
          "-E"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_site",
        "label": "Skip import site",
        "type": "boolean",
        "option": [
          "-S"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "no_user_site",
        "label": "No user site directory",
        "type": "boolean",
        "option": [
          "-s"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbosity",
        "type": "count",
        "option": [
          "-v"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "script",
        "label": "Script file",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "help"
        ]
      },
      {
        "id": "args",
        "label": "Script arguments",
        "type": "string",
        "position": 1,
        "multiple": true,
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "run-script",
        "label": "Run a script",
        "fields": [
          "script",
          "args",
          "interactive",
          "unbuffered",
          "verbose"
        ],
        "required": [
          "script"
        ]
      },
      {
        "id": "run-module",
        "label": "Run a module",
        "fields": [
          "module",
          "args",
          "unbuffered"
        ],
        "required": [
          "module"
        ]
      },
      {
        "id": "run-string",
        "label": "Run a one-liner",
        "fields": [
          "command",
          "interactive"
        ],
        "required": [
          "command"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "script",
          "args",
          "module",
          "command",
          "interactive"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "unbuffered",
          "no_bytecode",
          "ignore_env",
          "no_site",
          "no_user_site",
          "verbose"
        ]
      }
    ]
  }
}
