Skip to main content

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.

Project description

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:

pip install scriptman

Usage

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:

from scriptman import Settings

Settings.init(
    app_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.

Example

# 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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scriptman-0.0.0.35.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scriptman-0.0.0.35-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file scriptman-0.0.0.35.tar.gz.

File metadata

  • Download URL: scriptman-0.0.0.35.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for scriptman-0.0.0.35.tar.gz
Algorithm Hash digest
SHA256 00ad8e786a5c79768fa692d3cf4d5507df9e322ae39fc9688e99c4ea9956be0b
MD5 897becf975523483bc4bd3a49e8cf940
BLAKE2b-256 db5d184455b9fbfabd7f9fcf0ea3e32f3ef10a38889cb51be5d8b97438dc74ff

See more details on using hashes here.

File details

Details for the file scriptman-0.0.0.35-py3-none-any.whl.

File metadata

  • Download URL: scriptman-0.0.0.35-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for scriptman-0.0.0.35-py3-none-any.whl
Algorithm Hash digest
SHA256 6e5b43cd306590a5bdf60aeac84b88a96a7f8a2052d145d0c178964ebe1ab420
MD5 d97ca09de8825cbe0bee67d36eb1f8ad
BLAKE2b-256 aba76177e1349bb5ad7228cdb69b732e273ecc32439ed37a5cd505f3fed0a4a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page