{ "info": { "author": "Michael Blatherwick", "author_email": "michael.blatherwick@exeter.oxon.org", "bugtrack_url": null, "classifiers": [], "description": "=============\ndjango_grepdb\n=============\n\ndjango_grepdb is a simple command-line app to provide basic grep-like searching of\nDjango model fields using the ORM. Written to facilitate searching for a tag,\nfilter, named url etc in templates in the database, but can also be used to quickly\nfind model instances from the command line.\n\n\nQuick start\n-----------\n\n1. Add \"django_grepdb\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = (\n ...\n 'django_grepdb',\n )\n\n or, if you have a separate settings file for development in which you\n extend your global settings, like this::\n\n INSTALLED_APPS = INSTALLED_APPS + ('django_grepdb',) \n\n2. Run::\n\n $ python manage.py grepdb \n\n\nUsage\n-----\n\nFind instances of ``{% custom_template_tag.*%}`` in all text fields on the\nmodel ``EmailAction`` from app ``sprinkle``, show lines containing matches,\nand generate admin links (if ``django.contrib.admin`` is installed)::\n\n $ python manage.py grepdb \"{% custom_template_tag.*%}\" sprinkle.EmailAction\n text_field\n\n User registered (pk=13)\n localhost:8000/admin/sprinkle/emailaction/13/\n

Hi {% custom_template_tag user.get_full_name %},

\n\n Password reset request (pk=24)\n localhost:8000/admin/sprinkle/emailaction/24/\n

Hi, {% custom_template_tag user.get_full_name %}

\n\n\nOptions\n-------\n\nOptions are listed using ``$ python manage.py grepdb --help`` but here are some of the things\nyou can do with ``django_grepdb``.\n\nSearch multiple models::\n\n $ python manage.py grepdb sprinkle.EmailAction cms.MarkdownNode\n\nSpecify fields instead of finding all text fields::\n\n $ python manage.py grepdb sprinkle.EmailAction.body sprinkle.EmailAction.subject\n\nFind all instances of CharField instead of TextField::\n\n $ python manage.py grepdb sprinkle.EmailAction -c\n\nShow the whole field of a match rather than just the line::\n\n $ python manage.py grepdb sprinkle.EmailAction -sa\n\nChange the hostname of the admin links::\n\n $ python manage.py grepdb sprinkle.EmailAction -l https://dev.example.com\n\nSpecify hostname key-value pairs in settings::\n\n DJANGO_GREPDB_SITES = {\n 'default': 'https://staging.example.com'\n 'dev': 'https://dev.example.com',\n }\n\n $ python manage.py grepdb sprinkle.EmailAction -l dev\n\nSpecify preset configurations in settings::\n\n DJANGO_GREPDB_PRESETS = {\n 'users': dict(identifiers=['auth.user', 'projects.userprofile'],\n field_type=['CharField', 'TextField'],\n ignore_case=True),\n 'templates': dict(identifiers=['sprinkle.EmailAction', 'cms.HTMLNode', 'cms.TextNode', 'cms.MarkdownNode'])\n\n $ python manage.py grepdb -p templates", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/exonian/django-grep-db", "keywords": "django search grep cli", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-grep-db", "package_url": "https://pypi.org/project/django-grep-db/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-grep-db/", "project_urls": { "Homepage": "https://github.com/exonian/django-grep-db" }, "release_url": "https://pypi.org/project/django-grep-db/1.1.2/", "requires_dist": [ "colorama (>=0.3.3)", "django (>=1.8)", "termcolor (>=1.1.0)" ], "requires_python": "", "summary": "A simple Django app for command-line searching via the ORM", "version": "1.1.2" }, "last_serial": 1806723, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "83f967a7e25917dd3257073f8dec4abf", "sha256": "4b3a0412715894b039b0416c2724efbcb1a2806ce48fe14e4a4b672bf8e8c12d" }, "downloads": -1, "filename": "django-grep-db-0.1.1.tar.gz", "has_sig": false, "md5_digest": "83f967a7e25917dd3257073f8dec4abf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2436, "upload_time": "2015-10-27T18:41:40", "url": "https://files.pythonhosted.org/packages/96/be/81211e3f69595af28711e4eb27c24d1a8daee741aee001b4cde6e5094b02/django-grep-db-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "29549c0c945a14a1cd0bcf5c7c0dff9d", "sha256": "f0996b3714b3fd7904dc6415be377e88be0694af33ffce959ff1b7f8ce2cc830" }, "downloads": -1, "filename": "django-grep-db-0.1.2.tar.gz", "has_sig": false, "md5_digest": "29549c0c945a14a1cd0bcf5c7c0dff9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3304, "upload_time": "2015-10-27T18:41:45", "url": "https://files.pythonhosted.org/packages/68/d3/f78f1c5728cbcb6c72d63814e3add8dd872f2764c3335438a51b5ecf4fe6/django-grep-db-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "8b076d21d356a810eab340d37340a951", "sha256": "6470d69c2f51c152b89461609fc115a0e0b7fe8bf5097b7bdcb0d7742632a1f3" }, "downloads": -1, "filename": "django_grep_db-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b076d21d356a810eab340d37340a951", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4439, "upload_time": "2015-10-27T18:41:34", "url": "https://files.pythonhosted.org/packages/50/ac/ea12076cbdcb10b73c2705781e72ccda064f8f725d6108025ebfcfab2115/django_grep_db-0.1.4-py2.py3-none-any.whl" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "2406fab886e953ac713015dd29b38450", "sha256": "1688c6ae2d20117473050df7b1c5b04d0a87c0647ab444efc5ad8ddb2e3b6d31" }, "downloads": -1, "filename": "django_grep_db-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2406fab886e953ac713015dd29b38450", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5093, "upload_time": "2015-10-29T22:15:29", "url": "https://files.pythonhosted.org/packages/3f/ec/e16f89c8bc06433e76d58cbc97ce3e6d32a4e190bedc26cf22a3f3089711/django_grep_db-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1668603234a53536ec3ee779e72f56de", "sha256": "0c5571728b64425e8229950233f5a08cdfea9c5a4e26a73cfd1bc76aa68b0291" }, "downloads": -1, "filename": "django-grep-db-0.1.5.tar.gz", "has_sig": false, "md5_digest": "1668603234a53536ec3ee779e72f56de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4151, "upload_time": "2015-10-29T22:15:37", "url": "https://files.pythonhosted.org/packages/50/75/a8c49b66f6cba82edf8063a74f2d7caa139b060e60a2c7db4ddb34e0381e/django-grep-db-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "e8d0c3f261754fb912ef971ea68a3971", "sha256": "6469c8581642be68213e1c6df45c54247f5d9b090ae5532ea519b0f7a3613974" }, "downloads": -1, "filename": "django_grep_db-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8d0c3f261754fb912ef971ea68a3971", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5913, "upload_time": "2015-10-31T02:25:28", "url": "https://files.pythonhosted.org/packages/b7/23/dcc58826de6066b93214053761fccfc2f14432fd8ff705307f788b9c1c07/django_grep_db-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "21c940467f48b9e8be3862b31b89cbd5", "sha256": "1a77e569545aa4d23eecde20b45398f11ae378d47940d89ff250efe30b872cd7" }, "downloads": -1, "filename": "django-grep-db-0.1.6.tar.gz", "has_sig": false, "md5_digest": "21c940467f48b9e8be3862b31b89cbd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4995, "upload_time": "2015-10-31T02:25:32", "url": "https://files.pythonhosted.org/packages/f4/8d/4026a5ce183accc186ba121260587f912f4e8d00c475dbde640db136a31d/django-grep-db-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "130f50d4cf84204e8c86367461134c12", "sha256": "faae05f23d2efd8a92d77a7808e25c5c18be0093375d7f59c07d47ce1000f592" }, "downloads": -1, "filename": "django_grep_db-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "130f50d4cf84204e8c86367461134c12", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6301, "upload_time": "2015-10-31T11:55:01", "url": "https://files.pythonhosted.org/packages/f0/9b/7d291498dc8773276838cfa5b735a0d48a24f7f0fa7bc915b90dcdfe1638/django_grep_db-0.1.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f47bab8d4dbda48ba0bf6a239a4fb76a", "sha256": "9f3ed8dd19cf1687a5166e8d137656f8f31d193e8d1c76e88213d6f5828209ae" }, "downloads": -1, "filename": "django-grep-db-0.1.7.tar.gz", "has_sig": false, "md5_digest": "f47bab8d4dbda48ba0bf6a239a4fb76a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5388, "upload_time": "2015-10-31T11:55:11", "url": "https://files.pythonhosted.org/packages/2d/d0/3dd8d132b515dad5aff452a7f686ad1b902cc06c4f5cb4314c71fad8887c/django-grep-db-0.1.7.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "cf34b82a72e4aa2e2a46db5f3c195805", "sha256": "59dbac48c59f3e6296aa8043168bb30d818a308f5502cef150e7611cfc2c6723" }, "downloads": -1, "filename": "django_grep_db-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cf34b82a72e4aa2e2a46db5f3c195805", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14787, "upload_time": "2015-11-05T00:07:46", "url": "https://files.pythonhosted.org/packages/78/fe/8815f242c2e0a05b4b3e3e302ec51963d932150f9b241f61eb296fdc681e/django_grep_db-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "08852d4f1818b712a725fa5546f77a14", "sha256": "43d5a34ce759b60cd20b3d986559428befae6047dc281db79adc05b370e47969" }, "downloads": -1, "filename": "django-grep-db-1.0.0.tar.gz", "has_sig": false, "md5_digest": "08852d4f1818b712a725fa5546f77a14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9968, "upload_time": "2015-11-05T00:07:54", "url": "https://files.pythonhosted.org/packages/99/dd/08f61f813eed44eddd32cd5562743ec5154fc286eb10333ea3973b87bc7e/django-grep-db-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "929b492f1514882da4b2fc6ebece5b12", "sha256": "4f906e5d8e3f1aca22ae69673f4e6c344ce842d13d819e8b0b097db81e004c11" }, "downloads": -1, "filename": "django_grep_db-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "929b492f1514882da4b2fc6ebece5b12", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14904, "upload_time": "2015-11-07T19:02:13", "url": "https://files.pythonhosted.org/packages/9b/80/b39af503d890d13ad2ebf54719723e53ac0c39d504fb7e6e06d05d299943/django_grep_db-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "290212dd4592d1db677cffb50b328716", "sha256": "e3d8803b4b47d02ed1b25c320c8e6dd54246e85aa7515c765dd169f370f227ad" }, "downloads": -1, "filename": "django-grep-db-1.1.0.tar.gz", "has_sig": false, "md5_digest": "290212dd4592d1db677cffb50b328716", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10081, "upload_time": "2015-11-07T19:02:31", "url": "https://files.pythonhosted.org/packages/73/7b/5b2ab1091627ef866a1bce5ce3cc8273c7cefca41f13a93dc04bcf0c05a2/django-grep-db-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "d9976cecfbc504541b69661b00d41e38", "sha256": "13edfbacf013e73a8e75e8e33fa1fb53246ed114d275986ae240683535e45c4b" }, "downloads": -1, "filename": "django_grep_db-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d9976cecfbc504541b69661b00d41e38", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16533, "upload_time": "2015-11-08T16:06:33", "url": "https://files.pythonhosted.org/packages/81/50/693e7f0f74855afacc744c7df60b469f8c7f85b989618f8b853aa9420b02/django_grep_db-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4dbb801e19087660afbf92277ce99120", "sha256": "ef17163096096b0fff6a9ebd636b6d040c94189e5179724775bfddbbd02fa50a" }, "downloads": -1, "filename": "django-grep-db-1.1.1.tar.gz", "has_sig": false, "md5_digest": "4dbb801e19087660afbf92277ce99120", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11033, "upload_time": "2015-11-08T16:06:40", "url": "https://files.pythonhosted.org/packages/e2/e8/77f6d62c2eee8d3a3b139f502a5fcf4d16581435f88595c05fd5c8f25e17/django-grep-db-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "7ccf9d5dd4af7c91d509ddbf6b06cc0a", "sha256": "1ac666b697df6ce2848de72f3655fb5be1023d5b26bc726bd9bbe527cf92aa1e" }, "downloads": -1, "filename": "django_grep_db-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7ccf9d5dd4af7c91d509ddbf6b06cc0a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16537, "upload_time": "2015-11-08T17:39:21", "url": "https://files.pythonhosted.org/packages/0d/ad/1d63e0d1281bc9ccb67e3bb65bc0110afdc2c45f72daecb1d64bdc2fd918/django_grep_db-1.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6bab93933c3f904654c589591c114f15", "sha256": "6047bdb45f41dc1804ad64261927df0139bc28f61505681a920a36c4122309d9" }, "downloads": -1, "filename": "django-grep-db-1.1.2.tar.gz", "has_sig": false, "md5_digest": "6bab93933c3f904654c589591c114f15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11024, "upload_time": "2015-11-08T17:39:27", "url": "https://files.pythonhosted.org/packages/fd/66/0f02da6f25e0818939904d19f9c0ff9bd322416ed1b53ac3efc5dc4ee3f6/django-grep-db-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7ccf9d5dd4af7c91d509ddbf6b06cc0a", "sha256": "1ac666b697df6ce2848de72f3655fb5be1023d5b26bc726bd9bbe527cf92aa1e" }, "downloads": -1, "filename": "django_grep_db-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7ccf9d5dd4af7c91d509ddbf6b06cc0a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16537, "upload_time": "2015-11-08T17:39:21", "url": "https://files.pythonhosted.org/packages/0d/ad/1d63e0d1281bc9ccb67e3bb65bc0110afdc2c45f72daecb1d64bdc2fd918/django_grep_db-1.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6bab93933c3f904654c589591c114f15", "sha256": "6047bdb45f41dc1804ad64261927df0139bc28f61505681a920a36c4122309d9" }, "downloads": -1, "filename": "django-grep-db-1.1.2.tar.gz", "has_sig": false, "md5_digest": "6bab93933c3f904654c589591c114f15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11024, "upload_time": "2015-11-08T17:39:27", "url": "https://files.pythonhosted.org/packages/fd/66/0f02da6f25e0818939904d19f9c0ff9bd322416ed1b53ac3efc5dc4ee3f6/django-grep-db-1.1.2.tar.gz" } ] }