{"id":25411711,"url":"https://github.com/koho/ez_deploy","last_synced_at":"2025-04-14T08:29:23.177Z","repository":{"id":57427868,"uuid":"216990420","full_name":"koho/ez_deploy","owner":"koho","description":"Easy Deployment Tool","archived":false,"fork":false,"pushed_at":"2020-06-03T08:32:59.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T10:20:58.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/koho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-23T07:04:53.000Z","updated_at":"2020-06-03T08:33:02.000Z","dependencies_parsed_at":"2022-09-09T05:00:48.698Z","dependency_job_id":null,"html_url":"https://github.com/koho/ez_deploy","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/koho%2Fez_deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koho%2Fez_deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koho%2Fez_deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koho%2Fez_deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koho","download_url":"https://codeload.github.com/koho/ez_deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248845384,"owners_count":21170757,"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":[],"created_at":"2025-02-16T10:19:19.921Z","updated_at":"2025-04-14T08:29:23.152Z","avatar_url":"https://github.com/koho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy Deployment\n\nEasy deployment tool for Python application. It can manage virtual environment and create service.\n\n## Install\nDownload and install the `ez-deploy` package for python.\n```\npip install ez-deploy\n```\n## Usage:\nUse the `ez-deploy` command to manage deployment.\n```\nusage: ez_deploy.py [-h] [-c CONFIG] [--env ENV] [--requirements REQUIREMENTS]\n                    [--dir DIR] [--service-name SERVICE_NAME]\n                    [--service-start SERVICE_START]\n                    [--service-program SERVICE_PROGRAM]\n                    [--service-arguments SERVICE_ARGUMENTS [SERVICE_ARGUMENTS ...]]\n                    [--service-display SERVICE_DISPLAY]\n                    [--service-description SERVICE_DESCRIPTION]\n                    [--service-depend SERVICE_DEPEND]\n                    [--service-obj SERVICE_OBJ]\n                    [--service-password SERVICE_PASSWORD]\n                    [--service-file SERVICE_FILE]\n                    [--service-convert-path SERVICE_CONVERT_PATH]\n                    command\n\nEasy Deployment Tool\n\npositional arguments:\n  command               Command \u003cenv|deploy|install|uninstall|start|stop\u003e\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -c CONFIG, --config CONFIG\n                        use config file (JSON format, default=deployment.json)\n  --env ENV             virtual environment path\n  --requirements REQUIREMENTS\n                        package requirements file (default=requirements.txt)\n  --dir DIR             package lookup directory\n  --service-name SERVICE_NAME\n                        service name\n  --service-start SERVICE_START\n                        service start mode \u003cauto|manual\u003e (default=manual)\n\nOptions for Windows:\n  Service options for Windows\n\n  --service-program SERVICE_PROGRAM\n                        service bin path\n  --service-arguments SERVICE_ARGUMENTS [SERVICE_ARGUMENTS ...]\n                        service arguments\n  --service-display SERVICE_DISPLAY\n                        service display name\n  --service-description SERVICE_DESCRIPTION\n                        service description\n  --service-depend SERVICE_DEPEND\n                        service dependencies\n  --service-obj SERVICE_OBJ\n                        service login account\n  --service-password SERVICE_PASSWORD\n                        service login password\n  --service-restart     restart service after service failure\n  --service-restart-delay SERVICE_RESTART_DELAY\n                        restart delay(in seconds) after service failure\n\nOptions for Linux:\n  Service options for Linux\n\n  --service-file SERVICE_FILE\n                        service file to install (default=SERVICE_NAME.service)\n  --service-convert-path SERVICE_CONVERT_PATH\n                        convert service path to absolute path\n```\nAlso, you can create a `deployment.json` file in a directory and run `ez-deploy` to load it.\n```json\n{\n  \"env\": \"venv\",\n  \"requirements\": \"requirements.txt\",\n  \"dir\": \"packages\",\n  \"service\": {\n    \"name\": \"example\",\n    \"program\": \"python\",\n    \"arguments\": [\"main.py\"],\n    \"display\": \"Example Service\",\n    \"description\": \"A service\",\n    \"start\": \"auto\",\n    \"file\": \"example.service\",\n    \"restart\": true,\n    \"restart_delay\": 30\n  }\n}\n```\n\n## Examples\n1. Create a virtual environment named `venv`:\n```cmd\nez-deploy env --env=venv\n```\n\n2. Install packages in the virtual environment:\n```cmd\nez-deploy deploy --env=venv --requirements=requirements.txt\n```\n\n3. Run a python script as service:\n```cmd\nez-deploy install --service-name=python-service --service-program=/usr/bin/python --service-arguments main.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoho%2Fez_deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoho%2Fez_deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoho%2Fez_deploy/lists"}