{ "info": { "author": "Ageu Matheus", "author_email": "ageumatheus1@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "djangotables\n===============\n\nDjangotables is a simple library for generating html\ntables with [Django Framework](https://www.djangoproject.com/) using\nmodel data like django forms.\n\n----------------------------------------------------------------------------------\n\nDjangotables is a simple yet powerful library. A library based on forms\ngenerated by Django, if you are already familiar with django forms it will\nbe very easy to use django tables, otherwise it will be easy anyway :wink:\n\nI had the idea of developing when I was developing a Dashboard and always had\nto write the tables several times in html :sleeping:\n\n## Installation\n\n\nSimple **djangotables** can be installed with pip::\n\n pip install djangotables\n\nRequirements\n----------------\n\n* Python ``3.6; 3.7``\n* Django ``2.0; 2.1; 2.2``\n\nThese are the officially supported python and package versions. Other versions\nwill probably work\n\nUsage\n----------------\n\nIt's very simple to use, you just have to import ``djangotables.tables`` on\nyour ``tables.py`` file and create your subclass like below.\n\n```python\n\nfrom djangotables import tables\n\nclass UserTable(tables.Table):\n first_name = tables.TextField(label=\"First Name\")\n last_name = tables.TextField(label=\"Last Name\")\n\n```\n\nSo, in your ``vews.py`` file, just import your table class and instantiate it\nby passing the queryset\n\n```python\n\nfrom .tables import UserTable\nfrom django.contrib.auth.models import User\n\nfrom django.shortcuts import render\n\ndef index(request):\n\n table = UserTable( User.objects.all() )\n\n return render( request, \"index.html\", {\n \"table\": table\n })\n\n```\n\nTo finish, on your ``index.html`` template file you just have to do this\n\n```html\n\n\n\n ... \n \n \n {{ table | safe }}\n
\n \n\n\n```\n\nOkay, this is how simple you can use djangotables to improve\nyour daily development, feel free to contribute and help me\nmake this little library bigger\n\n----------------------------------------------------------------------------------\n\nOkay\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AgeuMatheus/djangotables", "keywords": "django,tables,djangotables", "license": "MIT License", "maintainer": "Ageu Matheus", "maintainer_email": "ageumatheus1@gmail.com", "name": "djangotables", "package_url": "https://pypi.org/project/djangotables/", "platform": "", "project_url": "https://pypi.org/project/djangotables/", "project_urls": { "Changelog": "https://github.com/AgeuMatheus/djangotables/blob/master/HISTORY.md", "Homepage": "https://github.com/AgeuMatheus/djangotables" }, "release_url": "https://pypi.org/project/djangotables/0.0.3/", "requires_dist": [ "Django (>=2)" ], "requires_python": ">=3.6", "summary": "Djangotables is a simple library for generating html tables with Django Framework using model data like django forms.", "version": "0.0.3" }, "last_serial": 5892627, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "1db1d9b748a708fdb92b319054003119", "sha256": "187c39da851d80098abb9c44c027815631b01eb0c38a7670d746d0b4031d1b0c" }, "downloads": -1, "filename": "djangotables-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1db1d9b748a708fdb92b319054003119", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6029, "upload_time": "2019-09-26T20:07:47", "url": "https://files.pythonhosted.org/packages/54/d0/bbadfe4846f7272e92c73add9e4ce061b8f55f4564ae675d7b202e7bca7c/djangotables-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9a50f71c05b93741e60350d5c77ed062", "sha256": "4c6826f734b4b2b69336b3ad95896d9092597b84f6601ac68188a99d2265e0ce" }, "downloads": -1, "filename": "djangotables-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9a50f71c05b93741e60350d5c77ed062", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4160, "upload_time": "2019-09-26T20:07:49", "url": "https://files.pythonhosted.org/packages/55/f7/88970fd42ec313fa4d59cbe2a556cc6799ac54681c91b95944e6e9bcf045/djangotables-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8f4d5549547dae5ee22410780ed6298e", "sha256": "0b32634447a84bb54b98a559c3aadd62cb6f8247932df64d3fed09de12a28abb" }, "downloads": -1, "filename": "djangotables-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "8f4d5549547dae5ee22410780ed6298e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6796, "upload_time": "2019-09-26T20:26:20", "url": "https://files.pythonhosted.org/packages/87/24/c4a1c2530b5d0b31dc4c4884f3efd609b81df6a1404840b3cbd03abefd82/djangotables-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bcf16c57c965c9d5741c52312bd257d6", "sha256": "3368bf315c41643d7b7fef4185fa31a16837ff9a83a11d2abcf00931554bcbfc" }, "downloads": -1, "filename": "djangotables-0.0.2.tar.gz", "has_sig": false, "md5_digest": "bcf16c57c965c9d5741c52312bd257d6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5179, "upload_time": "2019-09-26T20:26:21", "url": "https://files.pythonhosted.org/packages/fc/aa/9c7aca577f42587eea26f9c3ad5f31b2a4d21a94217dd27f13e1cbda060d/djangotables-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "ab4a485f260664f03a78ab9e36919a8c", "sha256": "a000dd9cab680a65633b2c5b2fb25551f87b2a1387340d7cc52a3232ba0b328f" }, "downloads": -1, "filename": "djangotables-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "ab4a485f260664f03a78ab9e36919a8c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6792, "upload_time": "2019-09-26T20:34:05", "url": "https://files.pythonhosted.org/packages/9d/a5/e235a7a8c7eb659ec4c17d339fa936c1ffa24417b0c7837a3193f7ddd769/djangotables-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a253b875eaa349a170855a87f68cf495", "sha256": "d61c43a1a275d911fa4ec7fb5a013d76c66c704d19cce82d2b58bbd13c063898" }, "downloads": -1, "filename": "djangotables-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a253b875eaa349a170855a87f68cf495", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5157, "upload_time": "2019-09-26T20:34:06", "url": "https://files.pythonhosted.org/packages/22/95/b6d7067cfa5470614d122e2cda2c06e4771e519481b10c848b25545064fe/djangotables-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ab4a485f260664f03a78ab9e36919a8c", "sha256": "a000dd9cab680a65633b2c5b2fb25551f87b2a1387340d7cc52a3232ba0b328f" }, "downloads": -1, "filename": "djangotables-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "ab4a485f260664f03a78ab9e36919a8c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6792, "upload_time": "2019-09-26T20:34:05", "url": "https://files.pythonhosted.org/packages/9d/a5/e235a7a8c7eb659ec4c17d339fa936c1ffa24417b0c7837a3193f7ddd769/djangotables-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a253b875eaa349a170855a87f68cf495", "sha256": "d61c43a1a275d911fa4ec7fb5a013d76c66c704d19cce82d2b58bbd13c063898" }, "downloads": -1, "filename": "djangotables-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a253b875eaa349a170855a87f68cf495", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5157, "upload_time": "2019-09-26T20:34:06", "url": "https://files.pythonhosted.org/packages/22/95/b6d7067cfa5470614d122e2cda2c06e4771e519481b10c848b25545064fe/djangotables-0.0.3.tar.gz" } ] }