scriptman


Namescriptman JSON
Version 0.0.0.73 PyPI version JSON
download
home_pageNone
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-08-01 14:33:28
maintainerNone
docs_urlNone
authorNelson Ombuya
requires_pythonNone
licenseNone
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": null,
    "name": "scriptman",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, scripts, etl, selenium",
    "author": "Nelson Ombuya",
    "author_email": "nelson.ombuya@zohomail.com",
    "download_url": "https://files.pythonhosted.org/packages/ca/42/3786528e74d7a158b751f5208c7fc2081fe67a4af14306d490bf2644cb59/scriptman-0.0.0.73.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": null,
    "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.73",
    "project_urls": null,
    "split_keywords": [
        "python",
        " scripts",
        " etl",
        " selenium"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "606dd0f4b60315dc22623a85c854b9f87ad8a8de7ff042f0c6df338286c89bfd",
                "md5": "cab1ea4de1a7defea0dfa88d49f03faa",
                "sha256": "322804fa29bb3aa3aef76cf9f8f1050be168730d546ad9a1c5f168291824ef66"
            },
            "downloads": -1,
            "filename": "scriptman-0.0.0.73-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cab1ea4de1a7defea0dfa88d49f03faa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 44889,
            "upload_time": "2024-08-01T14:33:26",
            "upload_time_iso_8601": "2024-08-01T14:33:26.072761Z",
            "url": "https://files.pythonhosted.org/packages/60/6d/d0f4b60315dc22623a85c854b9f87ad8a8de7ff042f0c6df338286c89bfd/scriptman-0.0.0.73-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca423786528e74d7a158b751f5208c7fc2081fe67a4af14306d490bf2644cb59",
                "md5": "d4dae1a1fa79ba79d6769627477703a6",
                "sha256": "e080c298146d51dd70844da4c925b2a9df8d0c3c8cf92459c4cb901a73697b75"
            },
            "downloads": -1,
            "filename": "scriptman-0.0.0.73.tar.gz",
            "has_sig": false,
            "md5_digest": "d4dae1a1fa79ba79d6769627477703a6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 43066,
            "upload_time": "2024-08-01T14:33:28",
            "upload_time_iso_8601": "2024-08-01T14:33:28.756109Z",
            "url": "https://files.pythonhosted.org/packages/ca/42/3786528e74d7a158b751f5208c7fc2081fe67a4af14306d490bf2644cb59/scriptman-0.0.0.73.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-01 14:33:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "scriptman"
}
        
Elapsed time: 0.32708s