Skip to main content

A package providing a Flask-based server to keep Telegram bots and other scripts running indefinitely.

Project description

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.

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

limitlesslumos-1.1.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

LimitlessLumos-1.1.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file limitlesslumos-1.1.3.tar.gz.

File metadata

  • Download URL: limitlesslumos-1.1.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for limitlesslumos-1.1.3.tar.gz
Algorithm Hash digest
SHA256 76c32bdfd8152d4a841e30e771cf82968172def658acd8c69a11856ecd3e5ba0
MD5 14d09482aaef77fd6b97625a0e30844b
BLAKE2b-256 acaf8d9ef34e9c77be24f8144d2f97d5a50fc2d7d0ab606b4ae27a1a6861ab73

See more details on using hashes here.

File details

Details for the file LimitlessLumos-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: LimitlessLumos-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for LimitlessLumos-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 17ae22cbfbd7c3f9b9bc693d22553d32ab32619c0b91edb4b0514744fde592dc
MD5 d68bad32135261311c9771b7824c6627
BLAKE2b-256 5c60e1dcc52ffda311ffe227eec6908be0bae982c7488ba570f6cff3c9a2147d

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