{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "License :: Public Domain", "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" ], "description": "\n\n[![](https://img.shields.io/pypi/pyversions/django-launchd.svg?longCache=True)](https://pypi.org/project/django-launchd/)\n\n#### Installation\n```bash\n$ [sudo] pip install django-launchd\n```\n\n#### `settings.py`\n```python\nINSTALLED_APPS = [\n \"django_launchd\",\n]\n```\n\n#### Models\nmodel|`__doc__`\n-|-\n`django_launchd.models.Plist` |launchd.plist model. fields: `path`\n`django_launchd.models.Lock` |launchd.plist Lock class. fields: `plist` (ForeignKey), `key`\n\n#### Examples\ninit\n```python\nimport django_launchd\nfrom django_launchd.models import Plist\n\nfiles = django_launchd.files(\"~/Library/LaunchAgents\")\nfor f in files:\n Plist.objects.get_or_create(path=f)\nPlist.objects.exclude(path__in=files).delete()\n```\n\nlocks\n```python\nfor agent in filter(lambda a: a.exists, Plist.objects.all()):\n if :\n agent.lock(\"key\")\n else:\n agent.unlock(\"key\")\n```\n\nload/unload\n```python\nfor agent in filter(lambda a: a.exists, Plist.objects.all()):\n if agent.locks:\n agent.unload()\n else:\n agent.load()\n```\n\n

\n django-readme-generator\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/looking-for-a-job/django-launchd.py", "keywords": "launchd", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-launchd", "package_url": "https://pypi.org/project/django-launchd/", "platform": "", "project_url": "https://pypi.org/project/django-launchd/", "project_urls": { "Homepage": "https://github.com/looking-for-a-job/django-launchd.py" }, "release_url": "https://pypi.org/project/django-launchd/2019.4.13/", "requires_dist": null, "requires_python": "", "summary": "launchd.plist model", "version": "2019.4.13" }, "last_serial": 5587735, "releases": { "2019.3.22": [ { "comment_text": "", "digests": { "md5": "2941321bf8d7602f34c0c2790dfb49e1", "sha256": "07de677fc553acd77a287efe4cf22f7f05f2cf96b9235b912a53ca3bc11c8ba3" }, "downloads": -1, "filename": "django_launchd-2019.3.22-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2941321bf8d7602f34c0c2790dfb49e1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 31751, "upload_time": "2019-03-24T10:58:38", "url": "https://files.pythonhosted.org/packages/53/5c/54cee2dd19865a5b0fe91ce94d9a3a4f16f7a2a2fcfb663e9b519cbd57f3/django_launchd-2019.3.22-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "28160c19cc7eb85f38a9b3af6ea76baa", "sha256": "1b25c8fdb9aa414800558bec52004521c939714aa2cd6970db0c4fb53a83cd2e" }, "downloads": -1, "filename": "django-launchd-2019.3.22.tar.gz", "has_sig": false, "md5_digest": "28160c19cc7eb85f38a9b3af6ea76baa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2836, "upload_time": "2019-03-24T10:58:39", "url": "https://files.pythonhosted.org/packages/29/78/dee04d7403ed0fd05b4b0bbf6e5af6ff02cdabcc6799a61ceeec64bf7485/django-launchd-2019.3.22.tar.gz" } ], "2019.3.4": [ { "comment_text": "", "digests": { "md5": "ce494f0d6ca94717190448b589df9765", "sha256": "3e2af7a0f53a15b1ca58af0e2bfaaf7410861e31c6ca1aba9a216ec8570c8fbe" }, "downloads": -1, "filename": "django_launchd-2019.3.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ce494f0d6ca94717190448b589df9765", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5122, "upload_time": "2019-03-03T14:45:24", "url": "https://files.pythonhosted.org/packages/2b/23/507fcee2fe27c9ad695f994c7f47dd05d4f4162666577534788040fd9dbf/django_launchd-2019.3.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5ad8a1e9aacbc22e13a4a82ebe7e9e2", "sha256": "8e9b9c5335f389c53ee6ffe5024a2d0dda67f40a3dae0897fbdc42116f5b2fec" }, "downloads": -1, "filename": "django-launchd-2019.3.4.tar.gz", "has_sig": false, "md5_digest": "e5ad8a1e9aacbc22e13a4a82ebe7e9e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2663, "upload_time": "2019-03-03T14:45:25", "url": "https://files.pythonhosted.org/packages/39/9c/3a2df2639ca0f516f124d37f6a5e6ec835e7c84e8d13faa1423d651fc24c/django-launchd-2019.3.4.tar.gz" } ], "2019.4.13": [ { "comment_text": "", "digests": { "md5": "d26cb9db8e1f0a6da5be03046a427012", "sha256": "83f1c34d3e38cd114eb98d649dd0bdb4aa41ef32f2a5ef12e2f7ecd4d698b5a6" }, "downloads": -1, "filename": "django-launchd-2019.4.13.tar.gz", "has_sig": false, "md5_digest": "d26cb9db8e1f0a6da5be03046a427012", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2937, "upload_time": "2019-04-13T07:41:26", "url": "https://files.pythonhosted.org/packages/29/4f/a25f93fbdfa63b0fb8e6b5138d3cf5acd4241447361a4773787b5cb4f88e/django-launchd-2019.4.13.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d26cb9db8e1f0a6da5be03046a427012", "sha256": "83f1c34d3e38cd114eb98d649dd0bdb4aa41ef32f2a5ef12e2f7ecd4d698b5a6" }, "downloads": -1, "filename": "django-launchd-2019.4.13.tar.gz", "has_sig": false, "md5_digest": "d26cb9db8e1f0a6da5be03046a427012", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2937, "upload_time": "2019-04-13T07:41:26", "url": "https://files.pythonhosted.org/packages/29/4f/a25f93fbdfa63b0fb8e6b5138d3cf5acd4241447361a4773787b5cb4f88e/django-launchd-2019.4.13.tar.gz" } ] }