scriptman


Namescriptman JSON
Version 0.0.0.55 PyPI version JSON
download
home_page
SummaryScriptMan is a versatile Python package that simplifies script management tasks, offering a wide range of utilities for various scripting needs. Whether you're dealing with data, databases, command-line interfaces, web automation, or just aiming for better script organization, ScriptMan has you covered. With features like cleanup handling, database interaction, file management, logging, and more, ScriptMan is your go-to tool for efficient and well-organized scripting in Python.
upload_time2024-02-19 13:29:07
maintainer
docs_urlNone
authorNelson Ombuya
requires_python
license
keywords python scripts etl selenium
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ScriptMan - A Python Package for Script Management

ScriptMan is a Python package that provides a comprehensive set of tools and utilities for managing Python scripts. Whether you're working with data, databases, command-line interfaces, web automation, or just need better script organization, ScriptMan has you covered.

## Installation

You can install ScriptMan using pip:

```bash
pip install scriptman
```

## Usage

```python
import scriptman

# Example: Run a script
scriptman.ScriptsHandler().run_script('my_script.py')
```

## Features

### CleanUpHandler

- Provides cleanup functionalities for scripts.

### CLIHandler

- Handles command-line interface interactions.

### CSVHandler

- Offers utilities for working with CSV files.

### DatabaseHandler

- Provides database interaction capabilities.

### DirectoryHandler

- Manages directories and file operations.

### ETLHandler

- Offers tools for Extract, Transform, Load (ETL) processes.

### LogHandler

- Handles logging with different log levels.

### LogLevel

- Enum for different log levels.

### ScriptsHandler

- Manages the execution of scripts.

### SeleniumHandler

- Provides tools for web automation using Selenium.

### SeleniumInteraction

- Enum for Selenium-based interactions.

### Settings

- Accesses and manages package settings.

## Initialization

To set up ScriptMan for your project, you should call the following method from the `Settings` class upon start:

```python
from scriptman import Settings

Settings.init(
    root_dir='your_project_directory',
    logging=True,  # Enable logging (default is True)
    debugging=False,  # Enable debugging mode (default is False)
)
```

Calling this method will set up ScriptMan's app files in your project directory under the app folder. It will create various folders:

- `downloads`: Used for downloads (e.g., Downloads made by Selenium).
- `helpers`: Used for any extra modules you want to reuse in your code (e.g., API Classes).
- `scripts`: Where your scripts should reside.
- `Logs`: Where the log files will be saved.

## Documentation

For detailed documentation and examples, please refer to the [package documentation](https://github.com/nelsonombuya/scriptman/blob/main/docs/README.md).

## Example

```python
# Import ScriptMan modules
import scriptman

# Create a ScriptsHandler instance
script_handler = scriptman.ScriptsHandler()

# Run a Python script
script_handler.run_script('my_script.py')
```

## Contributing

We welcome contributions! Please feel free to submit issues and pull requests to help improve this package.

## License

This package is distributed under the [MIT License](https://opensource.org/licenses/MIT).


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "scriptman",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,scripts,etl,selenium",
    "author": "Nelson Ombuya",
    "author_email": "nelson.ombuya@zohomail.com",
    "download_url": "https://files.pythonhosted.org/packages/5e/de/58d71a1d51f083a785294b68347841b07e0e2db52f2cc7a3a2d49fd415bb/scriptman-0.0.0.55.tar.gz",
    "platform": null,
    "description": "# ScriptMan - A Python Package for Script Management\r\n\r\nScriptMan is a Python package that provides a comprehensive set of tools and utilities for managing Python scripts. Whether you're working with data, databases, command-line interfaces, web automation, or just need better script organization, ScriptMan has you covered.\r\n\r\n## Installation\r\n\r\nYou can install ScriptMan using pip:\r\n\r\n```bash\r\npip install scriptman\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nimport scriptman\r\n\r\n# Example: Run a script\r\nscriptman.ScriptsHandler().run_script('my_script.py')\r\n```\r\n\r\n## Features\r\n\r\n### CleanUpHandler\r\n\r\n- Provides cleanup functionalities for scripts.\r\n\r\n### CLIHandler\r\n\r\n- Handles command-line interface interactions.\r\n\r\n### CSVHandler\r\n\r\n- Offers utilities for working with CSV files.\r\n\r\n### DatabaseHandler\r\n\r\n- Provides database interaction capabilities.\r\n\r\n### DirectoryHandler\r\n\r\n- Manages directories and file operations.\r\n\r\n### ETLHandler\r\n\r\n- Offers tools for Extract, Transform, Load (ETL) processes.\r\n\r\n### LogHandler\r\n\r\n- Handles logging with different log levels.\r\n\r\n### LogLevel\r\n\r\n- Enum for different log levels.\r\n\r\n### ScriptsHandler\r\n\r\n- Manages the execution of scripts.\r\n\r\n### SeleniumHandler\r\n\r\n- Provides tools for web automation using Selenium.\r\n\r\n### SeleniumInteraction\r\n\r\n- Enum for Selenium-based interactions.\r\n\r\n### Settings\r\n\r\n- Accesses and manages package settings.\r\n\r\n## Initialization\r\n\r\nTo set up ScriptMan for your project, you should call the following method from the `Settings` class upon start:\r\n\r\n```python\r\nfrom scriptman import Settings\r\n\r\nSettings.init(\r\n    root_dir='your_project_directory',\r\n    logging=True,  # Enable logging (default is True)\r\n    debugging=False,  # Enable debugging mode (default is False)\r\n)\r\n```\r\n\r\nCalling this method will set up ScriptMan's app files in your project directory under the app folder. It will create various folders:\r\n\r\n- `downloads`: Used for downloads (e.g., Downloads made by Selenium).\r\n- `helpers`: Used for any extra modules you want to reuse in your code (e.g., API Classes).\r\n- `scripts`: Where your scripts should reside.\r\n- `Logs`: Where the log files will be saved.\r\n\r\n## Documentation\r\n\r\nFor detailed documentation and examples, please refer to the [package documentation](https://github.com/nelsonombuya/scriptman/blob/main/docs/README.md).\r\n\r\n## Example\r\n\r\n```python\r\n# Import ScriptMan modules\r\nimport scriptman\r\n\r\n# Create a ScriptsHandler instance\r\nscript_handler = scriptman.ScriptsHandler()\r\n\r\n# Run a Python script\r\nscript_handler.run_script('my_script.py')\r\n```\r\n\r\n## Contributing\r\n\r\nWe welcome contributions! Please feel free to submit issues and pull requests to help improve this package.\r\n\r\n## License\r\n\r\nThis package is distributed under the [MIT License](https://opensource.org/licenses/MIT).\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "ScriptMan is a versatile Python package that simplifies script  management tasks, offering a wide range of utilities for various scripting needs. Whether you're dealing with data, databases, command-line interfaces, web automation, or just aiming for better script organization, ScriptMan has you covered. With features like cleanup handling, database interaction, file management, logging, and more, ScriptMan is your go-to tool for efficient and well-organized scripting in Python.",
    "version": "0.0.0.55",
    "project_urls": null,
    "split_keywords": [
        "python",
        "scripts",
        "etl",
        "selenium"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "99d39549c55962896a70995315920ea46249ae28089aa9a8622f02acfaca3037",
                "md5": "0dc9934cfd91575f8dd7656fcd0cafe3",
                "sha256": "efc5e3007653564700b90559af321db3ee9331774ce70acf150a8e9387d389f4"
            },
            "downloads": -1,
            "filename": "scriptman-0.0.0.55-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0dc9934cfd91575f8dd7656fcd0cafe3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 43832,
            "upload_time": "2024-02-19T13:29:05",
            "upload_time_iso_8601": "2024-02-19T13:29:05.322326Z",
            "url": "https://files.pythonhosted.org/packages/99/d3/9549c55962896a70995315920ea46249ae28089aa9a8622f02acfaca3037/scriptman-0.0.0.55-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ede58d71a1d51f083a785294b68347841b07e0e2db52f2cc7a3a2d49fd415bb",
                "md5": "79438cb608b6b8753f3398fc2e79778d",
                "sha256": "51524446bf6ac5dd4fca908fefce4c0484cc9d3b79ae08cfa8df505e65b5bf18"
            },
            "downloads": -1,
            "filename": "scriptman-0.0.0.55.tar.gz",
            "has_sig": false,
            "md5_digest": "79438cb608b6b8753f3398fc2e79778d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 41976,
            "upload_time": "2024-02-19T13:29:07",
            "upload_time_iso_8601": "2024-02-19T13:29:07.240097Z",
            "url": "https://files.pythonhosted.org/packages/5e/de/58d71a1d51f083a785294b68347841b07e0e2db52f2cc7a3a2d49fd415bb/scriptman-0.0.0.55.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-19 13:29:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "scriptman"
}
        
Elapsed time: 0.23806s