Skip to main content

A simple tool to automate the installation and integration of external tools.

Project description

autokit version 0.12.1

A framework for effortlessly integrating external tools into your Python projects.

Installation

pip install autokit 

Basic Usage

from autokit import ToolConfig, PlatformData, ExternalTool
from pathlib import Path

class TestTool(ExternalTool):
    def __init__(self, base_dir: str = "./third-party", progress_bar: bool = True, lazy_setup: bool = False):
        super().__init__(base_dir, progress_bar, lazy_setup)

    @property
    def config(self) -> ToolConfig:
        return ToolConfig(
            tool_name="tests-tool",
            platform_data={
                "windows": PlatformData(
                    url="https://github.com/IRSS-UBC/MediaTools/releases/download/latest/win-x64.zip",
                    subdir=Path(""),
                    executable=Path("IRSSMediaTools.exe")
                ),
            },
            python=False,
        )

    def help(self):
        self.run_command("help")


if __name__ == "__main__":
    test = TestTool()
    test.help()

Features

  • Automatic download and configuration of external tools on first use.
  • Define tools and their commands in a configuration file.
  • Streamlined execution of tool commands from within your Python code.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Contact: olson@student.ubc.ca

Project details


Download files

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

Source Distribution

autokit-0.12.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

autokit-0.12.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file autokit-0.12.1.tar.gz.

File metadata

  • Download URL: autokit-0.12.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for autokit-0.12.1.tar.gz
Algorithm Hash digest
SHA256 0c7501e04a6851233000f9ef84f2cb9df99d8470433f079bfd4a5d1f5a679699
MD5 1cc0b92a10e2789fd06a652f76b2375b
BLAKE2b-256 ea5fd050dce87a90dd532ff6d0be2f1c797ac943b45aa61f6c3ecba14da0b441

See more details on using hashes here.

File details

Details for the file autokit-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: autokit-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for autokit-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c02888b3efd0c6cef0115762040c5989d610718bc9c0cccee67e405b26a9cccf
MD5 a459b4041ec49c55128aafc05fa352e7
BLAKE2b-256 96ee2a4f5ddb4ff6b6263f973cbaad45ba6c2ef29e43bfd7988c71e2f28426e1

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