{ "info": { "author": "Ben Webber", "author_email": "benjamin.webber@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "curlrc\n======\n\nTreat curl configuration files as ``curlrc`` subcommands.\n\nUsage\n-----\n\ncurl can read arguments from a `configuration file`_. You can use this mechanism to specify default arguments (as ``~/.curlrc``), or tell curl to read arguments from a specific file::\n\n curl -K @/path/to/config.rc\n\nCreate a few config files and drop them in ``~/.curl`` (or ``$CURL_HOME`` if set)::\n\n ~/.curl\n \u2514\u2500\u2500 example.rc\n\n``curlrc`` exposes configuration files as subcommands::\n\n $ curlrc example\n\nIf the configuration file includes an `output template`_, you can reformat the data\nas CSV, tab-separated columns, or JSON::\n\n $ curlrc example -f csv https://example.org\n $ curlrc example -f table https://example.org\n $ curlrc example -f json https://example.org\n\nAny options you pass to ``curlrc`` after ``--`` will be passed to curl::\n\n $ curlrc example -- -fsSL https://example.org\n\nExample\n-------\n\nConsider the following configuration file::\n\n # output timing data\n -s\n -S\n -o = /dev/null\n -w = \"url_effective: %{url_effective}\\ntime_namelookup: %{time_namelookup}\\ntime_connect: %{time_connect}\\ntime_appconnect: %{time_appconnect}\\ntime_pretransfer: %{time_pretransfer}\\ntime_redirect: %{time_redirect}\\ntime_starttransfer: %{time_starttransfer}\\ntime_total: %{time_total}\\n\"\n\nIf you drop this in ``~/.curl/time.rc`` (or ``$CURL_HOME/time.rc``), you can use it by calling ``curlrc time``::\n\n $ curlrc time https://example.org\n url_effective: https://example.org/\n time_namelookup: 0.001\n time_connect: 0.026\n time_appconnect: 0.180\n time_pretransfer: 0.180\n time_redirect: 0.000\n time_starttransfer: 0.210\n time_total: 0.210\n\nDon't like the default format? Try CSV::\n\n $ curlrc time -f csv https://example.org\n url_effective,time_namelookup,time_connect,time_appconnect,time_pretransfer,time_redirect,time_starttransfer,time_total\n https://example.org/,0.001,0.030,0.194,0.194,0.000,0.228,0.228\n\nor tab-separated columns::\n\n $ curlrc time -f table https://example.org\n url_effective\thttps://example.org/\n time_namelookup\t0.002\n time_connect\t0.028\n time_appconnect\t0.177\n time_pretransfer\t0.177\n time_redirect\t0.000\n time_starttransfer\t0.205\n time_total\t0.206\n\nor even JSON::\n\n $ curlrc time -f json https://example.org\n {\n \"url_effective\": \"https://example.org/\", \n \"time_namelookup\": \"0.001\", \n \"time_connect\": \"0.028\", \n \"time_appconnect\": \"0.182\", \n \"time_pretransfer\": \"0.182\", \n \"time_redirect\": \"0.000\", \n \"time_starttransfer\": \"0.213\", \n \"time_total\": \"0.213\"\n }\n\nInstallation\n------------\n\n``curlrc`` requires Python 2.7 or later. It only depends on the standard library.\n\nDownload the `latest release`_ or install with pip:\n\n.. code-block:: bash\n\n pip install curlrc\n\nLicence\n-------\n\nMIT\n\n.. _configuration file: http://curl.haxx.se/docs/manpage.html#-K\n.. _output template: http://curl.haxx.se/docs/manpage.html#-w\n.. _latest release: https://github.com/benwebber/curlrc/releases/latest", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/benwebber/curlrc/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "curlrc", "package_url": "https://pypi.org/project/curlrc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/curlrc/", "project_urls": { "Homepage": "https://github.com/benwebber/curlrc/" }, "release_url": "https://pypi.org/project/curlrc/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Treat curl configuration files as curlrc subcommands.", "version": "0.2.0" }, "last_serial": 1886691, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6a0194a8c246b84c4a83ee99c2a7388e", "sha256": "e62334f70ff2eb792541cccdcdcb9aea33c27996f214cb6106d4fb311932e220" }, "downloads": -1, "filename": "curlrc-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6a0194a8c246b84c4a83ee99c2a7388e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4264, "upload_time": "2015-12-26T04:44:36", "url": "https://files.pythonhosted.org/packages/3f/2a/f77c00eb7091e0b9091685234479cbeb643dd587adb398628c52a801c29b/curlrc-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "56ab104d2a6895d28552fcf70d503995", "sha256": "4b84d18be4481864a7f5c33d6539af8c39bcc3a90945e597bdeeecc6ce2b2884" }, "downloads": -1, "filename": "curlrc-0.1.0.tar.gz", "has_sig": false, "md5_digest": "56ab104d2a6895d28552fcf70d503995", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2480, "upload_time": "2015-12-26T04:44:41", "url": "https://files.pythonhosted.org/packages/7a/46/2c173823ca6ee7f12fe6ad627d47e7821a27f40be81c8026db5f0063499a/curlrc-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4d7f2ad815491c60ae0efcdf1da3b811", "sha256": "0250ecde087a8791fc0b8fb2268f8cc6d423ec3b77e4251c32f42eea1384170c" }, "downloads": -1, "filename": "curlrc-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4d7f2ad815491c60ae0efcdf1da3b811", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6824, "upload_time": "2016-01-03T23:07:27", "url": "https://files.pythonhosted.org/packages/0f/48/69ec13165428c3659f2aec13506c60ee742332138b42a3a8f6d1577950b0/curlrc-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c8233c4e57709825409a63430e17b098", "sha256": "041b5b70995f70e49aa51b532ecda3d9f032c48925cd362e3f707a9a2b874c1a" }, "downloads": -1, "filename": "curlrc-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c8233c4e57709825409a63430e17b098", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4844, "upload_time": "2016-01-03T23:07:33", "url": "https://files.pythonhosted.org/packages/13/0d/d700fcf883709f4e83be37f673940ea3cb3d2de90928da793d81102600cc/curlrc-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3882e8d5cc27659586c97f9ad9af77c1", "sha256": "af2bf3424a9ecc87cdb225ad6582ce4bba30268750044b6d54cb674b33b8bc75" }, "downloads": -1, "filename": "curlrc-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3882e8d5cc27659586c97f9ad9af77c1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6819, "upload_time": "2016-01-03T23:36:32", "url": "https://files.pythonhosted.org/packages/7b/fb/ce880de78402bcb38dd2f9d9600e9901c0eb8df2c949ed676f130f90f8dd/curlrc-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7fc444536910b50ec549b24374688030", "sha256": "fc5b202e3c1b637f9d9bc88a4047d27cda1a27f560b1afe2c465f186d1a903c7" }, "downloads": -1, "filename": "curlrc-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7fc444536910b50ec549b24374688030", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4843, "upload_time": "2016-01-03T23:36:38", "url": "https://files.pythonhosted.org/packages/e7/26/c9bf9e2feef0992ca1f9e7c13a19f2b4398039c860484ba93a81f917d189/curlrc-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3882e8d5cc27659586c97f9ad9af77c1", "sha256": "af2bf3424a9ecc87cdb225ad6582ce4bba30268750044b6d54cb674b33b8bc75" }, "downloads": -1, "filename": "curlrc-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3882e8d5cc27659586c97f9ad9af77c1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6819, "upload_time": "2016-01-03T23:36:32", "url": "https://files.pythonhosted.org/packages/7b/fb/ce880de78402bcb38dd2f9d9600e9901c0eb8df2c949ed676f130f90f8dd/curlrc-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7fc444536910b50ec549b24374688030", "sha256": "fc5b202e3c1b637f9d9bc88a4047d27cda1a27f560b1afe2c465f186d1a903c7" }, "downloads": -1, "filename": "curlrc-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7fc444536910b50ec549b24374688030", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4843, "upload_time": "2016-01-03T23:36:38", "url": "https://files.pythonhosted.org/packages/e7/26/c9bf9e2feef0992ca1f9e7c13a19f2b4398039c860484ba93a81f917d189/curlrc-0.2.0.tar.gz" } ] }