django-autodisco


Namedjango-autodisco JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/etchegom/django-fsm-admin-lite
SummaryDjango autodiscover modules utils
upload_time2022-12-09 15:52:41
maintainerMatthieu Etchegoyen
docs_urlNone
authorMatthieu Etchegoyen
requires_python>=3.8,<4.0
licenseMIT
keywords django fsm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-autodisco

Micro django lib that helps auto-loading app modules.

**Why this lib?**

I am used to grouping signal connectors and receivers in a module called `receivers.py`. I didn't want add the module import in the `ready` method of all the apps anymore.

---

## Installation

```
pip install django-autodisco
```
Or, for the latest git version
```bash
python -m pip install 'django-autodisco @ git+https://github.com/etchegom/django-autodisco.git'
```

---

## Usage

Add the `autodisco` django app:

```python
INSTALLED_APPS = [
    ...
    "autodisco",
]
```

Define the modules to auto-load in settings:

```python

AUTODISCO_MODULES = [
    "receivers",
    ...
]

```

---

## Run example

```bash
make example
```

---

## Run tests

```bash
make tests
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/etchegom/django-fsm-admin-lite",
    "name": "django-autodisco",
    "maintainer": "Matthieu Etchegoyen",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "etchegom@gmail.com",
    "keywords": "django,fsm",
    "author": "Matthieu Etchegoyen",
    "author_email": "etchegom@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/82/3f/30d017bd8b81cdbb3f8222f16d0a0d69dc56ce817fc66102e89576f1cd52/django_autodisco-0.1.1.tar.gz",
    "platform": null,
    "description": "# django-autodisco\n\nMicro django lib that helps auto-loading app modules.\n\n**Why this lib?**\n\nI am used to grouping signal connectors and receivers in a module called `receivers.py`. I didn't want add the module import in the `ready` method of all the apps anymore.\n\n---\n\n## Installation\n\n```\npip install django-autodisco\n```\nOr, for the latest git version\n```bash\npython -m pip install 'django-autodisco @ git+https://github.com/etchegom/django-autodisco.git'\n```\n\n---\n\n## Usage\n\nAdd the `autodisco` django app:\n\n```python\nINSTALLED_APPS = [\n    ...\n    \"autodisco\",\n]\n```\n\nDefine the modules to auto-load in settings:\n\n```python\n\nAUTODISCO_MODULES = [\n    \"receivers\",\n    ...\n]\n\n```\n\n---\n\n## Run example\n\n```bash\nmake example\n```\n\n---\n\n## Run tests\n\n```bash\nmake tests\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Django autodiscover modules utils",
    "version": "0.1.1",
    "split_keywords": [
        "django",
        "fsm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "101d701a56f0ae742691f219e2bfd3a7",
                "sha256": "f06ba896dcf828a5cedd0719b05cc8ab0575e9066caf9d890ff7cf654ad9198d"
            },
            "downloads": -1,
            "filename": "django_autodisco-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "101d701a56f0ae742691f219e2bfd3a7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 3321,
            "upload_time": "2022-12-09T15:52:39",
            "upload_time_iso_8601": "2022-12-09T15:52:39.686847Z",
            "url": "https://files.pythonhosted.org/packages/bf/a8/dba4d9ecf7cdaba4d36a0deda1126c315d9f14f90bf405d766d3027062d3/django_autodisco-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "989602ded611521e11d4684327006f3a",
                "sha256": "3e5819fc74da1cf9e61a0e99123e2e97cb724c673f4a401e7193017b95e76d1e"
            },
            "downloads": -1,
            "filename": "django_autodisco-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "989602ded611521e11d4684327006f3a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 3451,
            "upload_time": "2022-12-09T15:52:41",
            "upload_time_iso_8601": "2022-12-09T15:52:41.252095Z",
            "url": "https://files.pythonhosted.org/packages/82/3f/30d017bd8b81cdbb3f8222f16d0a0d69dc56ce817fc66102e89576f1cd52/django_autodisco-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-09 15:52:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "etchegom",
    "github_project": "django-fsm-admin-lite",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "django-autodisco"
}
        
Elapsed time: 0.05007s