{ "info": { "author": "S. Andrew Sheppard", "author_email": "andrew@wq.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: JavaScript", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Pre-processors" ], "description": "python-requirejs\n================\n\nRun RequireJS (r.js) from Python without requiring Node or Rhino.\nLeverages `PyMiniRacer `__ plus a\nminimal `JS\nenvironment `__\nto make r.js think it's running in node.\n\n|Latest PyPI Release| |Release Notes| |License| |GitHub Stars| |GitHub\nForks| |GitHub Issues|\n\n|Travis Build Status| |Python Support|\n\nUsage\n-----\n\n``python-requirejs`` is available via PyPI:\n\n.. code:: bash\n\n pip install requirejs\n\nAPI\n~~~\n\n.. code:: python\n\n import requirejs\n\n requirejs.optimize(\n appDir=\".\",\n baseUrl=\"js/\",\n modules=[{\n \"name\": \"main\",\n }]\n dir=\"../build\",\n )\n\nHopefully, all of the `available build options for\nr.js `__ will Just\nWork. If you find any discrepancies, please `open a\nticket `__ to let us\nknow.\n\nThis library is meant to be a drop-in replacement for\n``node r.js -o app.build.json``, and is tested by comparing its output\nwith that command. However, since the optimize API is being called as a\nfunction, you may need to set the working directory explicitly to avoid\nany unexpected differences in how relative paths are computed:\n\n.. code:: python\n\n import requirejs\n import json\n\n with open('app/app.build.json') as f:\n config = json.load(f)\n\n requirejs.optimize(\n config,\n working_directory=\"app/\" # Unique to python-requirejs\n )\n\n.. |Latest PyPI Release| image:: https://img.shields.io/pypi/v/requirejs.svg\n :target: https://pypi.org/project/requirejs/\n.. |Release Notes| image:: https://img.shields.io/github/release/wq/python-requirejs.svg\n :target: https://github.com/wq/python-requirejs/releases\n.. |License| image:: https://img.shields.io/pypi/l/requirejs.svg\n :target: https://github.com/wq/python-requirejs/blob/master/LICENSE\n.. |GitHub Stars| image:: https://img.shields.io/github/stars/wq/python-requirejs.svg\n :target: https://github.com/wq/python-requirejs/stargazers\n.. |GitHub Forks| image:: https://img.shields.io/github/forks/wq/python-requirejs.svg\n :target: https://github.com/wq/python-requirejs/network\n.. |GitHub Issues| image:: https://img.shields.io/github/issues/wq/python-requirejs.svg\n :target: https://github.com/wq/python-requirejs/issues\n.. |Travis Build Status| image:: https://img.shields.io/travis/wq/python-requirejs/master.svg\n :target: https://travis-ci.org/wq/python-requirejs\n.. |Python Support| image:: https://img.shields.io/pypi/pyversions/requirejs.svg\n :target: https://pypi.org/project/requirejs/\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wq/python-requirejs", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "requirejs", "package_url": "https://pypi.org/project/requirejs/", "platform": "", "project_url": "https://pypi.org/project/requirejs/", "project_urls": { "Homepage": "https://github.com/wq/python-requirejs" }, "release_url": "https://pypi.org/project/requirejs/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Run RequireJS (r.js) without node.", "version": "0.2.1" }, "last_serial": 4683735, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bff4e11c97944a5f1c6bca74e7e17944", "sha256": "1d9496ac09b0e3359acb1334bb7e9a81148126ff8bd6862ad508749f4777303b" }, "downloads": -1, "filename": "requirejs-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bff4e11c97944a5f1c6bca74e7e17944", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 236807, "upload_time": "2017-11-14T16:21:38", "url": "https://files.pythonhosted.org/packages/1c/b3/022fe1b622680b754d7479d6a297f4ca34ff42bcb341e0ec0d5ffe55f215/requirejs-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "4f721014c18a412664ef8eb018ff395a", "sha256": "b6857934505ddfd15af02f736dcc592f5c94b4712a21faa00db0cef5072df227" }, "downloads": -1, "filename": "requirejs-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4f721014c18a412664ef8eb018ff395a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 236812, "upload_time": "2018-04-06T15:10:56", "url": "https://files.pythonhosted.org/packages/14/e9/b674624e36a959b536ec4082b052aac67da1df3c8095c620b9a2c38bef7d/requirejs-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "6aa40951e694d08b42e88a304f51c2d8", "sha256": "074441213830df4890405f79ac61f57bbb83cfb9dd6485ff7b2d792a9f5a1dd5" }, "downloads": -1, "filename": "requirejs-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6aa40951e694d08b42e88a304f51c2d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 237062, "upload_time": "2019-01-11T04:03:09", "url": "https://files.pythonhosted.org/packages/07/8f/e6488d4ffef2b24b3b5cab88f04cf1603b9171b7c42a82b64946f5596207/requirejs-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6aa40951e694d08b42e88a304f51c2d8", "sha256": "074441213830df4890405f79ac61f57bbb83cfb9dd6485ff7b2d792a9f5a1dd5" }, "downloads": -1, "filename": "requirejs-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6aa40951e694d08b42e88a304f51c2d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 237062, "upload_time": "2019-01-11T04:03:09", "url": "https://files.pythonhosted.org/packages/07/8f/e6488d4ffef2b24b3b5cab88f04cf1603b9171b7c42a82b64946f5596207/requirejs-0.2.1.tar.gz" } ] }