Daphene is a containerized script management tool designed for running isolated scripts using virtual environments. This README explains its usage and provides a detailed guide to its features and configuration.
- Initialize containers with metadata and scripts.
- Run scripts inside isolated environments.
- Support for Python and NodeJS virtual environments.
- Clean up temporary directories created during execution.
- Customizable container metadata with JSON configuration.
- CLI arguments for flexibility.
- Python 3.8 or later.
colorama
package for colored output.flask
package for static file serving.
Install dependencies with:
pip install -r requirements.txt
Run Daphene using the following command (assuming you are currently in the Daphene's root directory):
python src/daphene.py [OPTIONS]
--run, -r
: Specify the container to run.- Example:
--run mycontainer
- Example:
--init, -i
: Initialize a new container.--defaults, -d
: Use default values when initializing a container.--list, -l
: List all available containers.
python daphene.py --init
Follow the prompts to provide container details. Use --defaults
to skip the prompts and initialize with default values.
python daphene.py --run mycontainer
python daphene.py --list
Cause: Attempting to run Daphene on an unsupported platform.
Solution: Ensure that your platform is either Windows or Linux. MacOS support may require additional configuration.
Cause: Missing or incorrectly installed runtimes.
Solution: Reinstall the runtimes from the GitHub repository.
Cause: The specified script does not exist in the container metadata.
Solution: Verify the script name in the container's .daphene/meta.json
file and ensure the file path is correct.
Contributions to Daphene are welcome! Follow these steps to get started:
-
Fork the repository and clone it to your local machine.
-
Create a new branch for your feature or bug fix:
git checkout -b feature-or-bugfix-name
-
Make your changes and test thoroughly.
-
Commit your changes with a descriptive message:
git commit -m "Description of the changes made"
-
Push your changes to your forked repository:
git push origin feature-or-bugfix-name
-
Open a pull request and provide a detailed description of your changes.
- Follow PEP 8 for Python code style.
- Include unit tests for new features or bug fixes.
- Keep commits focused and avoid unrelated changes.
Daphene is licensed under the MIT License. See LICENSE
for details.