{ "info": { "author": "Victor Rocha", "author_email": "victor@rochapps.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Django CSV Exports\n========================\n\nAn admin action that allows you to export your models as CSV files without\nhaving to write a single line of code --besides installation, of course.\n\nFeatures\n-----------------------------------\n\n- Easy installation\n- High level of customizability\n- Created with permissions in mind\n- Sane defaults\n\nInstallation\n----------------------------------\n\n- Python 2.7, 3.3+\n- `Django `_ >= 1.5\n\nTo install::\n\n pip install django-csv-exports\n\nNext add `django_exports` to your `INSTALLED_APPS` to include the related css/js::\n\n INSTALLED_APPS = (\n # Other apps here\n 'django_csv_exports',\n )\n\n\nConfiguration\n-----------------------------------\nThere are two django settings that you can use to configure who can use the export action::\n\n # Use if you want to check user level permissions only users with the can_csv_\n # will be able to download csv files.\n DJANGO_EXPORTS_REQUIRE_PERM = True\n # Use if you want to disable the global django admin action. This setting is set to True by default.\n DJANGO_CSV_GLOBAL_EXPORTS_ENABLED = False\n\n\nFields to export\n---------------------------------\nBy default, all of the fields available in a model ar ordered and exported. You can override this behavior\nat the admin model level. Define the following attribute in your AdminModel::\n\n class ClientAdmin(CSVExportAdmin):\n csv_fields = ['first_name', 'last_name', 'email', 'phone_number',]\n\n\nPermission\n--------------------------------\nThere are two ways to limit who can export data as CSV files.\n\nModel level permissions: create a new model permission and assign it only to\nuser who should have access to the export action in the admin.\n\n class Client(models.Model):\n class Meta:\n permissions = ((\"can_csv_client\", \"Can export list of clients as CSV file\"),)\n\nAdminModel Level permissions: define a `has_csv_permission` and return True if a user should have access::\n\n class ClientAdmin(admin.AdminModel):\n search_fields = ('name', 'id', 'email')\n csv_fields = ['name', 'id']\n\n def has_csv_permission(self, request):\n \"\"\"Only super users can export as CSV\"\"\"\n if request.user.is_superuser:\n return True\n\n\nSelective Installation\n-------------------------\nSometimes, you don't want to allow all of your admin models to be exported. For this, you will need to\nset `DJANGO_CSV_GLOBAL_EXPORTS_ENABLED` to False, and have your AdminModels extend our `CSVExportAdmin`\nadmin class::\n\n from django_csv_exports.admin import CSVExportAdmin\n\n class ClientAdmin(CSVExportAdmin):\n pass\n\n\nRunning the Tests\n------------------------------------\n\nYou can run the tests with via::\n\n python setup.py test\n\nor::\n\n python runtests.py", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/victor-rocha/django-csv-exports", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-csv-exports", "package_url": "https://pypi.org/project/django-csv-exports/", "platform": "", "project_url": "https://pypi.org/project/django-csv-exports/", "project_urls": { "Homepage": "https://github.com/victor-rocha/django-csv-exports" }, "release_url": "https://pypi.org/project/django-csv-exports/1.0.5/", "requires_dist": null, "requires_python": "", "summary": "", "version": "1.0.5" }, "last_serial": 3222568, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b9aa6c05d77bcf3ba02b15d0c3160621", "sha256": "11149799964a655a84b8a4392b1941e037066d2bd42730a4ff0fc23aa5c57a7c" }, "downloads": -1, "filename": "django-csv-exports-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b9aa6c05d77bcf3ba02b15d0c3160621", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4824, "upload_time": "2015-07-10T14:59:03", "url": "https://files.pythonhosted.org/packages/b9/79/15db3e4583028e17cadcf61551ead7d772b5e6bf22267ca4c0e06fb12f46/django-csv-exports-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "92b9fb20ff40bbbf7d0b4f2060a91437", "sha256": "d9314a1a2914fc40a715f37667ebf83e693b0377bd3d55416a7dd3d576a9f6ad" }, "downloads": -1, "filename": "django-csv-exports-1.0.1.tar.gz", "has_sig": false, "md5_digest": "92b9fb20ff40bbbf7d0b4f2060a91437", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4823, "upload_time": "2015-07-10T15:08:11", "url": "https://files.pythonhosted.org/packages/2b/a5/406b0a9af1b33f9361baa1ab7e2297996c513c7fd1a7f4fd9fd95117a1cf/django-csv-exports-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "8d07e5c32141ba3d9a0d47a3d147e3ab", "sha256": "267711cd9d943bc3fa5779eee894b9ce7ddb90ea4f52d60e41a4fca592940286" }, "downloads": -1, "filename": "django-csv-exports-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8d07e5c32141ba3d9a0d47a3d147e3ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4834, "upload_time": "2015-07-10T15:13:56", "url": "https://files.pythonhosted.org/packages/ae/e0/d2d226b66f193b0d2a4d729e7554644a55fc6b6cbdceec2d153c26decf4b/django-csv-exports-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "9d96fea6165131140cdfc9e464ec0a9e", "sha256": "97e3fbb105c0d5cf9fd3576a7c31133194c5d81c6133b7e3d95887f3e5fe0eef" }, "downloads": -1, "filename": "django-csv-exports-1.0.3.tar.gz", "has_sig": false, "md5_digest": "9d96fea6165131140cdfc9e464ec0a9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4882, "upload_time": "2015-10-28T01:54:55", "url": "https://files.pythonhosted.org/packages/e9/03/0f4ece522430cdd5e77bd2e80c408e3e5a573a5e11db1fdcc4f44ba9f166/django-csv-exports-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "ded8812caba3f200395e83845ea4888a", "sha256": "d8ea5919274999d767fa0d8030f667d25d0765879e148c2628e15d5148dad067" }, "downloads": -1, "filename": "django-csv-exports-1.0.4.tar.gz", "has_sig": false, "md5_digest": "ded8812caba3f200395e83845ea4888a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4975, "upload_time": "2017-10-03T15:47:34", "url": "https://files.pythonhosted.org/packages/e0/ee/436bc75a1d3bf88aea5c77e518385bb0fd2d706e594adfd867d5ecd1214a/django-csv-exports-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "d33c9154e350ca2f296f13569330373a", "sha256": "0630896a83ac7b27d09f88e191a662751866739482db0ef04ac328d061ff07e5" }, "downloads": -1, "filename": "django-csv-exports-1.0.5.tar.gz", "has_sig": false, "md5_digest": "d33c9154e350ca2f296f13569330373a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4996, "upload_time": "2017-10-03T15:55:31", "url": "https://files.pythonhosted.org/packages/1b/b9/9467abe28a9fdf7d60832620670aaea635aa42727a1fbda5587110cb53f3/django-csv-exports-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d33c9154e350ca2f296f13569330373a", "sha256": "0630896a83ac7b27d09f88e191a662751866739482db0ef04ac328d061ff07e5" }, "downloads": -1, "filename": "django-csv-exports-1.0.5.tar.gz", "has_sig": false, "md5_digest": "d33c9154e350ca2f296f13569330373a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4996, "upload_time": "2017-10-03T15:55:31", "url": "https://files.pythonhosted.org/packages/1b/b9/9467abe28a9fdf7d60832620670aaea635aa42727a1fbda5587110cb53f3/django-csv-exports-1.0.5.tar.gz" } ] }