# nodemon-py-simple
## Nodemon like for python, very simple and without dependencies
This script watches a directory for file changes and executes a process when a file is modified or added. The process can also be killed if necessary. Additionally, the script can be configured to only watch files with specific extensions and to clear the console before executing the process.
And why this package when nodemon exists? Because I no longer want to install node, npm... just for nodemon on my docker images and I haven't found an alternative in python without dependencies.
# Installation
```
pip install nodemon-py-simple
```
# Usage
To use this script, use the following command line:
```
python script.py directory [options] command
```
The available options are as follows:
- `-e`, `--extensions`: a list of file extensions to watch, separated by commas
- `-k`, `--kill`: the process name of the process to kill when a file is modified or added
- `-m`, `--modified-time`: update modified time of the file (like modd)
- `-c`, `--clear`: clear the console before executing the command
# Contributing
Thank you for considering contributing to this project!
To contribute, please follow these steps:
1. Fork the repository
2. Create a new branch for your changes
3. Make your changes and commit them to your branch
4. Push your branch to your forked repository
5. Create a pull request to the original repository
Note: Before creating a pull request, please make sure that your changes are consistent with the overall code style and structure of the project. Thank you for your contribution!
Raw data
{
"_id": null,
"home_page": "https://github.com/thomasync/nodemon-py-simple",
"name": "nodemon-py-simple",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,nodemon,simple,watch,file,change,execute,command",
"author": "thomasync",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/81/2e/2c39763ab18e99f148bdee532404bb50250f7468a36ffe5b312a090531ec/nodemon-py-simple-0.0.7.tar.gz",
"platform": null,
"description": "# nodemon-py-simple\n\n## Nodemon like for python, very simple and without dependencies\n\nThis script watches a directory for file changes and executes a process when a file is modified or added. The process can also be killed if necessary. Additionally, the script can be configured to only watch files with specific extensions and to clear the console before executing the process.\n\nAnd why this package when nodemon exists? Because I no longer want to install node, npm... just for nodemon on my docker images and I haven't found an alternative in python without dependencies.\n\n# Installation\n\n```\npip install nodemon-py-simple\n```\n\n# Usage\n\nTo use this script, use the following command line:\n\n```\npython script.py directory [options] command\n```\n\n\nThe available options are as follows:\n\n- `-e`, `--extensions`: a list of file extensions to watch, separated by commas\n- `-k`, `--kill`: the process name of the process to kill when a file is modified or added\n- `-m`, `--modified-time`: update modified time of the file (like modd)\n- `-c`, `--clear`: clear the console before executing the command\n\n# Contributing\n\nThank you for considering contributing to this project!\n\nTo contribute, please follow these steps:\n\n1. Fork the repository\n2. Create a new branch for your changes\n3. Make your changes and commit them to your branch\n4. Push your branch to your forked repository\n5. Create a pull request to the original repository\n\nNote: Before creating a pull request, please make sure that your changes are consistent with the overall code style and structure of the project. Thank you for your contribution!\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Nodemon like for python, very simple and without dependencies",
"version": "0.0.7",
"split_keywords": [
"python",
"nodemon",
"simple",
"watch",
"file",
"change",
"execute",
"command"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "6de278c33ee92c8ce1c1bad54b494111",
"sha256": "3f4222574b9b14ada4f3ca01f5f4b2210126104c06d715f0007b74874e04b677"
},
"downloads": -1,
"filename": "nodemon-py-simple-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "6de278c33ee92c8ce1c1bad54b494111",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 15292,
"upload_time": "2022-12-11T02:07:57",
"upload_time_iso_8601": "2022-12-11T02:07:57.621783Z",
"url": "https://files.pythonhosted.org/packages/81/2e/2c39763ab18e99f148bdee532404bb50250f7468a36ffe5b312a090531ec/nodemon-py-simple-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-11 02:07:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "thomasync",
"github_project": "nodemon-py-simple",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "nodemon-py-simple"
}