{ "info": { "author": "Dennis Kaarsemaker", "author_email": "dennis@kaarsemaker.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Topic :: Software Development" ], "description": "Copyright (c) 2009-2014 Dennis Kaarsemaker \nA command-line interface to query the Django ORM\n\nInstall:\n - python setup.py install\n - Add cli_query to the INSTALLED_APPLICATIONS setting in your settings.py\n\nUsage: cd your_project_dir; ./manage.py query [options] [filters]\n\nThe django ORM will be queried with the filters on the commandline. Records\nwill be separated with newlines, fields with the specified separator\n(the default is a comma). Alternatively, a template can be specified which\nwill be passed the result of the query as the 'objects' variable\n\nQuery key/value pairs can be prefixed with a '!' or '~' to negate the query.\nThe __in filter works, use a comma separated string of arguments\n\nYou can also update fields using -u field=value. For every changed object, you\nwill be prompted to approve the changes.\n\nExamples:\n - Display name and assettag of all mc01 servers\n %prog query -a servers -m Server name__startswith=mc01 -f name,assettag\n - Get a list of name, ip, mac for all servers where the does not contain .82.\n %prog query -a servers -m Interface !ip_address__contains='.82.' -f server.name,ip_address,mac_address\n - Use a template to get the roles, depending on mac address\n %prog query -a servers -m Server interface__mac_address=00:17:A4:8D:E6:BC -t '{{ objects.0.role_set.all|join:\",\" }}'\n - List all eth0/eth1 network interfaces\n %prog query -a servers -m Interface name__in=eth0,eth1 -f ip_address,mac_address\n - Update the state of all mc2* servers\n $prog query -a servers -m Server name__startswith=mc2 -u status=live\n\nOperators you can filter with are listed on\nhttps://docs.djangoproject.com/en/dev/ref/models/querysets/#field-lookups\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/seveas/django-cli-query", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-cli-query", "package_url": "https://pypi.org/project/django-cli-query/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-cli-query/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/seveas/django-cli-query" }, "release_url": "https://pypi.org/project/django-cli-query/1.3/", "requires_dist": null, "requires_python": null, "summary": "Django management command for commandline querying", "version": "1.3" }, "last_serial": 986516, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "b7dbf73fa7a4d55487ac86d4e0d49cd3", "sha256": "daf5df9b6e111e544b7fe921e5aac7f3557aeab016e68d1043e25883c2c9a70a" }, "downloads": -1, "filename": "django-cli-query-1.0.tar.gz", "has_sig": false, "md5_digest": "b7dbf73fa7a4d55487ac86d4e0d49cd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4171, "upload_time": "2012-03-10T18:36:08", "url": "https://files.pythonhosted.org/packages/9b/ed/458491d3cc2c9e32ae6fe90c8dbfc0b1cd62ab22c07e02b3c53ffd939a6b/django-cli-query-1.0.tar.gz" } ], "1.1": [ { "comment_text": "built for Linux-3.5.0-4-generic-i686-with-glibc2.7", "digests": { "md5": "693e6b6d306897a8d217e002e03265fb", "sha256": "43eda7fc6c9fca6f611795f115b271b5de98e025cb165254a55cddd184756475" }, "downloads": -1, "filename": "django-cli-query-1.1.linux-i686.tar.gz", "has_sig": false, "md5_digest": "693e6b6d306897a8d217e002e03265fb", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 6119, "upload_time": "2012-09-02T12:56:16", "url": "https://files.pythonhosted.org/packages/8b/79/8d5c1bd7ce400af0d9d24f68469b93d6f7628ca36d387e03a094a15d3ee5/django-cli-query-1.1.linux-i686.tar.gz" }, { "comment_text": "", "digests": { "md5": "0fe2718a65b215eab2438e76f167856d", "sha256": "21997841cc1988882f0f821ffc4cee389b8e97ed1c6d0219e68b8e5ba07f2ece" }, "downloads": -1, "filename": "django-cli-query-1.1.tar.gz", "has_sig": false, "md5_digest": "0fe2718a65b215eab2438e76f167856d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4182, "upload_time": "2012-09-02T12:56:15", "url": "https://files.pythonhosted.org/packages/ba/ad/6aaf1343d05f0f0ee6700b635faca11344300211a74f2ed98e586f49671c/django-cli-query-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "6e8b1ca7da2f855f33e9d8e6a67b2e26", "sha256": "71f6cd987fc87f4f825dc9ee6284997daf51dbbb852387f28c0e46067f2ff234" }, "downloads": -1, "filename": "django-cli-query-1.2.tar.gz", "has_sig": false, "md5_digest": "6e8b1ca7da2f855f33e9d8e6a67b2e26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4310, "upload_time": "2013-03-23T12:13:47", "url": "https://files.pythonhosted.org/packages/56/a6/3b2b5293011e0757a3f6a92db5f2eca9b4ad1b287f15f9445d327683c6f3/django-cli-query-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "bc0c8ddb9b9afcdc10178e03cfa6949a", "sha256": "5c949915c66baabb21c1c58639e62abc16e33ced10d09da20680c3f496469d54" }, "downloads": -1, "filename": "django-cli-query-1.3.tar.gz", "has_sig": false, "md5_digest": "bc0c8ddb9b9afcdc10178e03cfa6949a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4766, "upload_time": "2014-01-30T21:55:26", "url": "https://files.pythonhosted.org/packages/7c/55/015d3cf9cba65e3d81e7f6f9a803f6c1029479e4d7b4d93a19fee986b713/django-cli-query-1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bc0c8ddb9b9afcdc10178e03cfa6949a", "sha256": "5c949915c66baabb21c1c58639e62abc16e33ced10d09da20680c3f496469d54" }, "downloads": -1, "filename": "django-cli-query-1.3.tar.gz", "has_sig": false, "md5_digest": "bc0c8ddb9b9afcdc10178e03cfa6949a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4766, "upload_time": "2014-01-30T21:55:26", "url": "https://files.pythonhosted.org/packages/7c/55/015d3cf9cba65e3d81e7f6f9a803f6c1029479e4d7b4d93a19fee986b713/django-cli-query-1.3.tar.gz" } ] }