Skip to main content

Useful tool to terminate any Python script just using file path and name

Project description

Scripterminator

Useful tool to terminate any Python script just using file path and name

This package provides a small utility function callled terminate_script(file,delay)

This function takes two parameters - file and delay (optional).

file -> file path + file name delay -> after how much time you want to terminate the process

terminate_script(file,delay) returns True if the script is in running state and terminated successfully. Otherwise it returns False

Usage:

Suppose your python script name is bar.py and located in /projects/pythonprojects/bar/ folder -

import scripterminator

file = '/projects/pythonprojects/bar/bar.py'
terminated = scripterminator.terminate_script(file, 3)

if terminated:
    print('script terminated') 
else:
    print('script termination failed') 

This project is licensed under the terms of the MIT license.

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

scripterminator-1.0.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

scripterminator-1.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file scripterminator-1.0.2.tar.gz.

File metadata

  • Download URL: scripterminator-1.0.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for scripterminator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a32d2f74b510998ea026ebb93f71dab7b9bf8cd9874d7c9e7d6b7450286104e6
MD5 fac373118c48eb3f9f7cf69e57a477b8
BLAKE2b-256 ebf883ed63a9d0e853e6e8c77a485d42819e99c42fce6565de523bd7e87e3fb9

See more details on using hashes here.

File details

Details for the file scripterminator-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: scripterminator-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for scripterminator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2915fbf0696e02188e05c2a35e5bff2df46689ca3c48b19bbdbe05736acf91bd
MD5 84a18b3b43cef86626ad7dd3096628e4
BLAKE2b-256 d20ef81b43cb25961e45c16f2d67f35df8359f31217515efe8af71968c7282ea

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