{"id":13652252,"url":"https://jdp.github.io/jarg/","last_synced_at":"2025-04-23T03:30:37.429Z","repository":{"id":23479191,"uuid":"26844112","full_name":"jdp/jarg","owner":"jdp","description":"shorthand JSON and form encoding syntax in the shell","archived":false,"fork":false,"pushed_at":"2014-12-06T05:51:20.000Z","size":218,"stargazers_count":54,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T05:03:52.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://jdp.github.io/jarg/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdp.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-19T04:18:00.000Z","updated_at":"2024-11-28T16:30:18.000Z","dependencies_parsed_at":"2022-08-22T00:10:21.669Z","dependency_job_id":null,"html_url":"https://github.com/jdp/jarg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdp%2Fjarg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdp%2Fjarg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdp%2Fjarg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdp%2Fjarg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdp","download_url":"https://codeload.github.com/jdp/jarg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250365230,"owners_count":21418651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T02:00:57.635Z","updated_at":"2025-04-23T03:30:37.102Z","avatar_url":"https://github.com/jdp.png","language":"Python","funding_links":[],"categories":["Command-line tools"],"sub_categories":[],"readme":"====\njarg\n====\n\n.. image:: https://travis-ci.org/jdp/jarg.svg?branch=master\n    :target: https://travis-ci.org/jdp/jarg\n\n**jarg** is an encoding shorthand for your shell.\nIt is a command-line utility that makes generating data in formats like JSON, YAML, and form encoding easier in the shell.\n\nInstallation\n------------\n\nInstall from PyPI_::\n\n    $ pip install jarg\n\nUsage\n-----\n\nEach argument to **jarg** should be in the format of `name=value`.\nValues are interpreted as their closest native encoding value, and the default dialect is JSON.\nThe most common case is probably string names and values::\n\n    $ jarg foo=bar baz=quux\n    {\"foo\": \"bar\", \"baz\": \"quux\"}\n\nFloats and integers will work too::\n\n    $ jarg foo=10 bar=4.2\n    {\"foo\": 10, \"bar\": 4.2}\n\nThe value is optional.\nIf you leave it out, it is interpreted as ``null``::\n\n    $ jarg foo\n    {\"foo\": null}\n\nThe `name` portions have the same syntax and semantics as `HTML JSON`_ names::\n\n    $ jarg foo[]=bar foo[]=baz bar[baz]=quux\n    {\"foo\": [\"bar\", \"baz\"], \"bar\": {\"baz\": \"quux\"}}\n\nYou can also write literal values directly, using the `name:=value` syntax.\nThat lets you write things like booleans, lists, and explicit strings::\n\n    $ jarg foo:=true bar:=\\\"123\\\"\n    {\"foo\": true, \"bar\": \"123\"}\n    $ jarg foo:=[1,2,3]\n    {\"foo\": [1, 2, 3]}\n\n\nDialects\n--------\n\nThe default dialect is JSON, and includes support for YAML and form encoding.\n\nTo use the YAML dialect, use the ``-y``/``--yaml`` switch::\n\n    $ jarg -y name=jarg type=\"cli tool\" traits[]=dope traits[]=rad\n    ---\n    name: jarg\n    traits: [dope, rad]\n    type: cli tool\n\nYou can switch to the form encoding dialect with the ``-f``/``--form`` switch::\n\n    $ jarg -f foo=bar baz=\"jarg is dope\"\n    foo=bar\u0026baz=jarg+is+dope\n\n.. _PyPI: http://pypi.python.org/\n.. _`HTML JSON`: http://www.w3.org/TR/html-json-forms/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/jdp.github.io%2Fjarg%2F","html_url":"https://awesome.ecosyste.ms/projects/jdp.github.io%2Fjarg%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/jdp.github.io%2Fjarg%2F/lists"}