Skip to main content

LimitlessLumos

LimitlessLumos is a powerful Python package designed to ensure that your Telegram bots or other long-running scripts stay alive indefinitely. By integrating a lightweight Flask web server, LimitlessLumos guarantees that your scripts remain active and free from timeouts.

Features

  • Persistent Uptime: Keeps your script or bot running indefinitely by utilizing a Flask-based server to prevent timeouts.
  • Flexible Configuration: Easily customize the server's host and port settings according to your needs.
  • Concurrent Execution: The Flask server runs in a separate thread, allowing your main script to execute without interruptions.
  • Effortless Integration: Seamlessly integrates into existing Python scripts or Telegram bots with minimal code changes.

Installation

To install LimitlessLumos, ensure you have Python 3.6 or higher, then install it via pip:

pip install LimitlessLumos

Usage

Here’s how to use LimitlessLumos to ensure your script or bot runs indefinitely, with different configurations available for your convenience:

Basic Example: Default Flask Server

  1. Create Your Script (e.g., my_bot.py):

    from LimitlessLumos import lumosServer
    from my_telegram_bot import start_bot  # Replace with your bot’s start function
    
    # Start your bot or main script
    start_bot()
    
    # Run the default Flask server to keep the script alive
    lumosServer()
    

    This will run the Flask server with the default settings (localhost on port 5000).

  2. Run Your Script:

    python my_bot.py
    

Advanced Usage: Customizing the Flask Server

  • Run on All Interfaces with an Auto-Assigned Port:

    lumosServer("All")
    

    This command configures the Flask server to listen on 0.0.0.0 (all available interfaces) with an auto-assigned port, allowing access from any IP address.

  • Specify Host and Port Manually:

    lumosServer(host="0.0.0.0", port="8080")
    

    This configuration allows you to define both the host and port manually. For example, setting host="0.0.0.0" and port="8080" makes the server accessible on all network interfaces at port 8080.

Example Script with Custom Configuration:

from LimitlessLumos import lumosServer
from my_telegram_bot import start_bot

# Start your bot or main script
start_bot()

# Example: Custom host and port configuration
lumosServer(host="0.0.0.0", port="8080")

Configuration

LimitlessLumos provides flexible configuration options for the underlying Flask server. By adjusting the lumosServer parameters, you can control how and where your server runs:

  • Default Settings: lumosServer() starts a Flask server on localhost at port 5000.
  • All Interfaces: lumosServer("All") makes the server accessible from any IP address, with an automatically assigned port.
  • Custom Host and Port: lumosServer(host="", port="") allows you to specify the host and port according to your needs.

Contributing

Contributions to LimitlessLumos are highly encouraged! Whether you have suggestions, bug fixes, or new features, your input is valuable. To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Submit a Pull Request for review.

License

LimitlessLumos is distributed under the CC-BY-SA 4.0 license. You are free to share and adapt the software as long as appropriate credit is given and any derivatives are licensed under the same terms.

Support

For questions, issues, or support, feel free to reach out to TraxDinosaur. We are here to assist with any challenges you may encounter while using LimitlessLumos.


By using LimitlessLumos, you can confidently keep your scripts and bots running indefinitely, ensuring maximum uptime and reliability.

Metadata

Release files for LimitlessLumos 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LimitlessLumos 1.1.3
File Size Uploaded
limitlesslumos-1.1.3.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for LimitlessLumos 1.1.3
File Interpreter ABI Platform
LimitlessLumos-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / limitlesslumos-1.1.3.tar.gz

Download URL limitlesslumos-1.1.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
76c32bdfd8152d4a841e30e771cf82968172def658acd8c69a11856ecd3e5ba0
BLAKE2b-256 checksum
How to use checksums
acaf8d9ef34e9c77be24f8144d2f97d5a50fc2d7d0ab606b4ae27a1a6861ab73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release files / LimitlessLumos-1.1.3-py3-none-any.whl

Download URL LimitlessLumos-1.1.3-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17ae22cbfbd7c3f9b9bc693d22553d32ab32619c0b91edb4b0514744fde592dc
BLAKE2b-256 checksum
How to use checksums
5c60e1dcc52ffda311ffe227eec6908be0bae982c7488ba570f6cff3c9a2147d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.1

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page