{"id":17001201,"url":"https://github.com/tanbro/cookiecutter-celery-subpackage-service","last_synced_at":"2025-03-22T08:46:51.171Z","repository":{"id":98693035,"uuid":"194229975","full_name":"tanbro/cookiecutter-celery-subpackage-service","owner":"tanbro","description":"Cookiecutter template for a celery application as sub-package inside a namespace","archived":false,"fork":false,"pushed_at":"2019-07-05T08:51:24.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T09:08:58.308Z","etag":null,"topics":["celery","cookiecutter","cookiecutter-python3","cookiecutter-template"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tanbro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-28T07:40:10.000Z","updated_at":"2019-07-05T08:51:26.000Z","dependencies_parsed_at":"2023-04-03T18:32:26.487Z","dependency_job_id":null,"html_url":"https://github.com/tanbro/cookiecutter-celery-subpackage-service","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanbro%2Fcookiecutter-celery-subpackage-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanbro%2Fcookiecutter-celery-subpackage-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanbro%2Fcookiecutter-celery-subpackage-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanbro%2Fcookiecutter-celery-subpackage-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanbro","download_url":"https://codeload.github.com/tanbro/cookiecutter-celery-subpackage-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931587,"owners_count":20534010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celery","cookiecutter","cookiecutter-python3","cookiecutter-template"],"created_at":"2024-10-14T04:24:07.772Z","updated_at":"2025-03-22T08:46:51.143Z","avatar_url":"https://github.com/tanbro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cookiecutter-celery-subpackage-service\n\nThis is a [cookiecutter][] template for a [python][] project that:\n\n\u003e - is a [celery][] worker, with [tasks][] in it.\n\u003e - is a sub-package, and it's parent namespace has multiple other similar [celery][] worker sub-packages.\n\nThe whole projects is like:\n\n```sh\n.\n├── README.md\n├── ...\n│\n├── myproject-services-subpack1\n│   ├── README.md\n│   ├── setup.cfg\n│   ├── setup.py\n│   ├── tests/\n│   └── src\n│       └── myproject\n│           └── services\n│               └── subpack1\n│                   ├── app.py\n│                   ├── __init__.py\n│                   └── tasks.py\n│\n├── myproject-services-subpack2\n│   ├── README.md\n│   ├── setup.cfg\n│   ├── setup.py\n│   ├── tests/\n│   └── src\n│       └── myproject\n│           └── services\n│               └── subpack2\n│                   ├── __init__.py\n│                   ├── app.py\n│                   └── tasks.py\n│\n├── myproject-other-module\n│   ├── README.md\n│   ├── setup.py\n│   └── myproject\n│       └── other\n│           └── module.py\n│\n└── ...\n```\n\n`myproject-services-subpackN` are the sub-packages generated by this template.\n\n## Generate\n\nIn your project's working directory, run:\n\n```bash\ncookiecutter cookiecutter-celery-subpackage-service\n```\n\nWhen generated:\n\n- `Hello world` [celery][] [tasks][] defined in `tasks.py`\n- [celery][] application variable `app` defined in `app.py`\n\n## Requires\n\nThis [cookiecutter][] template can be used on either [Python]`2` or [Python]`3`, with [cookiecutter][]`\u003e=1.5`.\nBut the sub-package generated by the template requires:\n\n- [Python][]`\u003e=3.5`\n- [setuptools][]`\u003e=40.1.0`\n- [Celery][]`\u003e=4.3`\n\n\u003e ❗ **Attention**:\n\u003e\n\u003e Since [setuptools][]`\u003e=40.1.0` required, an update might be necessary on your development environment before any action to the sub-package's [setuptools][]:\n\u003e\n\u003e ```bash\n\u003e pip install -U setuptools\n\u003e ```\n\n## Develop\n\nInstall the sub-package in *develop mode* into your parent project's environment:\n\n```bash\ncd myproject-services-subpack1\npython setup.py develop\n```\n\n[cookiecutter]: https://github.com/audreyr/cookiecutter \"A command-line utility that creates projects from cookiecutters (project templates)\"\n[Python]: https://python.org/\n[celery]: http://www.celeryproject.org/ \"Distributed Task Queue\"\n[tasks]: http://docs.celeryproject.org/en/latest/userguide/tasks.html \"Tasks are the building blocks of Celery applications\"\n[setuptools]: https://packaging.python.org/key_projects/#easy-install \"setuptools (which includes easy_install) is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python distributions, especially ones that have dependencies on other packages.\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanbro%2Fcookiecutter-celery-subpackage-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanbro%2Fcookiecutter-celery-subpackage-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanbro%2Fcookiecutter-celery-subpackage-service/lists"}