Skip to main content

Mock package that auto-closes the League client

Project description

Auto League Closer

Tired of procrastinating on homework all day while still being hardstuck Bronze? Suffering from a bad case of League withdrawal?

Well, I've got a solution for you! Install the Auto League Closer!

This handy program will automatically close the League of Legends client whenever it's running, so you can get back to binging YouTube videos - uh, I mean doing homework :)

This is a mock application to demonstrate a clean project structure, along with steps to distribute Python modules and end user application installers.

Installation

Run the installer here.

How It Works

  1. Repeatedly checks if League is open using psutil.
  2. Closes League in a ~fancy~ way using SikuliX.

Using the Python Module

$ pip install leaguecloser

View the PyPi page.

Example usage (also what the installable app does):

import leaguecloser
import time

print("Searching for League...")
while True:
    if leaguecloser.is_league_running():
        print("\nNO LEAGUE ALLOWED!")
        if leaguecloser.close_league():
            print("\nThat's right... now get back to work!")
    time.sleep(3)

Packaging and Building Methods

The Makefile contains good practice methods for the common tasks below:

$ make run  # Runs the file
$ make test  # Runs all tests
$ make package_create  # Creates (or updates) the leaguecloser package
$ make package_upload  # Uploads the leaguecloser package to PyPi
$ make build_app  # Builds the app into a standalone folder with an executable

Development Setup

First, setup a virtual environment. Then run:

> & '.\misc\Dev Setup.ps1'

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

leaguecloser-1.0.3.tar.gz (29.9 kB view hashes)

Uploaded Source

Built Distribution

leaguecloser-1.0.3-py3-none-any.whl (28.0 kB view hashes)

Uploaded Python 3

Supported by

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