{ "info": { "author": "Raphael Amorim", "author_email": "rapha850@gmail", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "Capivara.py (not available for use yet)\r\n=======================================\r\n\r\n\r\nGenerates & Obtain DOM (Document Object Model)\r\n\r\nCapivara is a library that allows your python obtain the DOM from webpages. Being a excelent tool to test client-side behavior.\r\n\r\n.. image:: https://raw.githubusercontent.com/raphamorim/capivara/master/resources/images/capivara.png\r\n :target: #\r\n \r\n\r\nInstallation\r\n============\r\n\r\nCustom Requirement: [Phantomjs binary package installed](http://phantomjs.org/download.html)\r\n\r\nTo install Capivara, simply run:\r\n\r\n.. code-block:: bash\r\n\r\n $ pip install capivara\r\n\r\n\r\nUsage\r\n=====\r\n\r\n.. code-block:: html\r\n\r\n
\r\n You shall not pass!!\r\n
\r\n\r\n\r\n.. code-block:: python\r\n\r\n import capivara\r\n document = capivara.init(port=8012) # default = 8000\r\n\r\n element = document.querySelector('.container')\r\n assert.equal(element.className, \"container main\") # true\r\n assert.equal(element.textContext, \"You shall not pass!!\") # true\r\n\r\n\r\nAvailable Methods\r\n=================\r\n\r\nquerySelector\r\n~~~~~~~~~~~~~\r\n\r\nReturns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.\r\n\r\n.. code-block:: python\r\n\r\n element = document.querySelector('.container')\r\n\r\n\r\nNotes\r\n=====\r\n\r\nThe capivara is unable to deliver all the properties of the element.\r\n\r\nHowever he can deliver the following properties:\r\n\r\n`style`, `classList`, `textContext`, `baseURI`, `className`, `clientHeight`, `clientLeft`, `clientTop`, `clientWidth`, `firstChild`, `title`, `string`, `tagName`, `tabIndex`, `outerHTML`, `localeString`, `localName`, `dir`, `scrollLeft`, `scrollHeight`, `scrollWidth`, `scrollTop`\r\n\r\nRoadmap\r\n=======\r\n\r\n- Read element propeties after a specified event\r\n- Support `addEventListener` method\r\n- Support elements methods (like `element.classList.add`, `element.innerHTML`)\r\n\r\nContributing\r\n============\r\n\r\nWant to contribute? Read the CONTRIBUTING.md.\r\n\r\nLicense\r\n=======\r\n\r\n.. image:: https://i.creativecommons.org/l/by/4.0/88x31.png\r\n :target: http://creativecommons.org/licenses/by/4.0/\r\n\r\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/raphamorim/capivara", "keywords": "dom javascript object model development", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "capivara", "package_url": "https://pypi.org/project/capivara/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/capivara/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/raphamorim/capivara" }, "release_url": "https://pypi.org/project/capivara/1.0.2/", "requires_dist": null, "requires_python": null, "summary": "Generates & Obtain DOM (Document Object Model)", "version": "1.0.2" }, "last_serial": 2087908, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3fd4cfb4635f4edaca1c7e21f2a18ef7", "sha256": "4bdebb9fb3c6068fbb6cba678d12ca0f75fff80dd054e754e5e85b8911d0cf40" }, "downloads": -1, "filename": "capivara-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "3fd4cfb4635f4edaca1c7e21f2a18ef7", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 3870, "upload_time": "2016-04-28T00:05:09", "url": "https://files.pythonhosted.org/packages/b7/26/d49144e7e50a1b3805b9eabc9d36c0e5471889f24d8a1af35903af2ed650/capivara-0.0.1-py2.7.egg" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "59c935da49f2d3c08f1b54042fc8e95e", "sha256": "949abe86552a8502a69d19e1814ab6bfa6c619f8cc073e53c880780ee4755ba1" }, "downloads": -1, "filename": "capivara-1.0.0.tar.gz", "has_sig": false, "md5_digest": "59c935da49f2d3c08f1b54042fc8e95e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1830, "upload_time": "2016-04-28T00:32:26", "url": "https://files.pythonhosted.org/packages/7d/92/d9a5654ac28b568e5dfc3c3f09db16d17f24ea5118d66db1ab4718d36b41/capivara-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "26dee3fc19ea9b919a6eaf5176a99826", "sha256": "7ff88683f031733dbfdf57b70e8af5b022bc083c0c7b4c1ff42876a678d71735" }, "downloads": -1, "filename": "capivara-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "26dee3fc19ea9b919a6eaf5176a99826", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3208, "upload_time": "2016-04-28T00:49:50", "url": "https://files.pythonhosted.org/packages/7a/65/9a82a3a3a748c53e62541fc91c9c5f3d235cf52a95d746267e23544c482b/capivara-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "834e9ffddbdb81d829737656065d7b8a", "sha256": "a3efaf19235f7f00792844ef1d36881467f063cb6f231e20259e67476ee5e550" }, "downloads": -1, "filename": "capivara-1.0.1.tar.gz", "has_sig": false, "md5_digest": "834e9ffddbdb81d829737656065d7b8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2743, "upload_time": "2016-04-28T00:49:38", "url": "https://files.pythonhosted.org/packages/bf/72/f7afc810d0bfe66d5b643eed0a7ae7335542ce5970140193c771a0fe6abe/capivara-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "cb4ad6340afda07512c3d39a9db99bf3", "sha256": "693124d8e9a0eb35432269a1d036e1e3348f226ddbe82525cd5d5a537b287e80" }, "downloads": -1, "filename": "capivara-1.0.2.tar.gz", "has_sig": false, "md5_digest": "cb4ad6340afda07512c3d39a9db99bf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2773, "upload_time": "2016-04-28T02:43:47", "url": "https://files.pythonhosted.org/packages/c1/fc/2e7e03f75019c45de8a32bb4aa0dce271d9a9de8a6f47705510856475657/capivara-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cb4ad6340afda07512c3d39a9db99bf3", "sha256": "693124d8e9a0eb35432269a1d036e1e3348f226ddbe82525cd5d5a537b287e80" }, "downloads": -1, "filename": "capivara-1.0.2.tar.gz", "has_sig": false, "md5_digest": "cb4ad6340afda07512c3d39a9db99bf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2773, "upload_time": "2016-04-28T02:43:47", "url": "https://files.pythonhosted.org/packages/c1/fc/2e7e03f75019c45de8a32bb4aa0dce271d9a9de8a6f47705510856475657/capivara-1.0.2.tar.gz" } ] }