Skip to main content

Library allowing for endurance macro software to be configured and created.

Project description

TwineW

Python Version PyPI GitHub

Overview

(Replace this section with a concise description of what TwineW does. What problem does it solve? What are its main features?)

TwineW is a Python package designed to simplify macroing endurance. It provides super easy building blocks to construct a working macro, with the ability to make changes easily.

Installation

This guide explains how to install and get started with the TwineW Python package.

Prerequisites

  • Python 3.8+: Ensure you have Python version 3.8 or newer installed on your system. You can check your Python version by running:
    python --version
    # or
    python3 --version
    
    If you don't have Python installed, please download it from python.org.

Installing TwineW

TwineW can be installed directly from the Python Package Index (PyPI) using pip.

  1. Open your terminal or command prompt.

  2. Install TwineW using pip:

    pip install TwineW
    
    • Note: If you have multiple Python versions installed, you might need to use pip3 instead of pip:
      pip3 install TwineW
      
  3. (Optional but Recommended) Using a Virtual Environment: It's highly recommended to install Python packages within a virtual environment to avoid conflicts with other projects and system-wide packages.

    # 1. Create a virtual environment (e.g., named 'venv')
    python -m venv venv
    
    # 2. Activate the virtual environment
    # On macOS/Linux:
    source venv/bin/activate
    # On Windows:
    .\venv\Scripts\activate
    
    # 3. Install TwineW inside the activated environment
    pip install TwineW
    
    # To deactivate the environment later:
    deactivate
    

Basic Usage

After installation, you can import and use TwineW in your Python scripts or interactive sessions.

from TwineW import TwineW as macro

try:        # Use 'try' to be able to get out of the infinite loop
    while True:         # Infinite Loop begins here.
        macro.main_screen.begin()
        macro.main_screen.main_screen_actions()
        macro.main_screen.launch_and_load()
        macro.in_game.move_to_console()
        macro.in_game.endurance_wait_reset()
except KeyboardInterrupt:
    print("Ctrl + C will end the macro here!")

print("TwineW package imported successfully! Start building with it.")

If you would like to run the macro a specific amount of times, utilize range.

from TwineW import TwineW as macro

try:        # Use 'try' to be able to get out of the infinite loop
    for i in range(10)        # Will loop the macro ten times.
        macro.main_screen.begin()
        macro.main_screen.main_screen_actions()
        macro.main_screen.launch_and_load()
        macro.in_game.move_to_console()
        macro.in_game.endurance_wait_reset()
except KeyboardInterrupt:
    print("Ctrl + C will end the macro here!")

To edit specific data inside of each macro, do so inside the parentheses.

ex.)

macro.main_screen.begin(begin_time=5, name='Joeballz')

Which wil return with the intended values.

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

twinew-1.0.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

twinew-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file twinew-1.0.0.tar.gz.

File metadata

  • Download URL: twinew-1.0.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for twinew-1.0.0.tar.gz
Algorithm Hash digest
SHA256 85ab9177f2b003319f72ac834a3937585af8c5ded908c2d26882476a899ea488
MD5 1825cd0669976751a2f8ddb2d3966f7c
BLAKE2b-256 0c1e1aa2876a2442c30db7349c35f5de8b8a5950f1402664494e90dc0a3ce082

See more details on using hashes here.

File details

Details for the file twinew-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: twinew-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for twinew-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48c3c1116372ed1f4c2845c283ddf92a4d783b725eabcf78e60fff4a2d2da886
MD5 4a171fde321a9835342ef2bb55cce7fe
BLAKE2b-256 51e61250e1414cf413e0b1b75dac0f2dc8d56550a210b117b1acc8f43440a567

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