{ "info": { "author": "hirokiky", "author_email": "hirokiky@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI" ], "description": "Django Yet Another Class Based View\n===================================\n\ndjango-yacbv (YetAnotherClassBasedView) is replacement of django's CBV\n(django.views.generic.View).\n\n* Django's View can only dispatch corresponds to request.method.\n but in many cases, it should consider more things, such as request parameter.\n* Django's ClassBasedGenericView is inflexible, hard to remember it's API\n and hard to understand succession inheritances.\n* Django's View can't remove decorators, this is necessary for testing.\n it forces us to test views with decorators, always it obstructs to\n pure unit testing.\n\nAs these solution, django-yacbv is released.\n\nYACBV is simple\n===============\n\ndjango-yacbv provide simple class based view, allowing user to create more flexible\ndispatching, like this:\n\n.. code-block:: python\n\n from yacbv import View, view_config\n\n\n class TopView(View):\n @view_config(method='get',\n param='flip',\n template_name='top2.html')\n def flipped(self, request):\n return {'word': request.GET['flip']}\n\n @view_config(method='get',\n template_name='top.html')\n def get(self, request):\n return {'word': 'world'}\n\nNotice about them:\n\n* The `flip` method will be dispatched only case that Request object contains `flip` parameter.\n* The template for each views can be specified as `template_name` argument of `view_config`.\n* These returned dictionary will be used as context for Template.\n\nNow, django-yacbv is just pre-alpha library, not for production.\nIf you like this package, check out it from `Github `_!", "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/hirokiky/django-yacbv", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-yacbv", "package_url": "https://pypi.org/project/django-yacbv/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-yacbv/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/hirokiky/django-yacbv" }, "release_url": "https://pypi.org/project/django-yacbv/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Replacement for Django's ClassBasedView.", "version": "0.0.1" }, "last_serial": 912525, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "7473ab8c63c8c061f055319eef2ea5d4", "sha256": "01a03f9a9a71330398d77dc6756a2776b77fcac1ca79d04177eb41c69cc23b0e" }, "downloads": -1, "filename": "django-yacbv-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7473ab8c63c8c061f055319eef2ea5d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4053, "upload_time": "2013-11-06T13:25:04", "url": "https://files.pythonhosted.org/packages/0a/b3/6cd5f5bb4150ba56b1c5883b6c0f6a3e835d42ad3b759b82f3f73a59e5e8/django-yacbv-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7473ab8c63c8c061f055319eef2ea5d4", "sha256": "01a03f9a9a71330398d77dc6756a2776b77fcac1ca79d04177eb41c69cc23b0e" }, "downloads": -1, "filename": "django-yacbv-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7473ab8c63c8c061f055319eef2ea5d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4053, "upload_time": "2013-11-06T13:25:04", "url": "https://files.pythonhosted.org/packages/0a/b3/6cd5f5bb4150ba56b1c5883b6c0f6a3e835d42ad3b759b82f3f73a59e5e8/django-yacbv-0.0.1.tar.gz" } ] }