Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

replutil

A collection of utilities for running services on repl.it.

Includes utilities for getting attributes of the container, as well as keeping the container alive using the UptimeRobot API.

KeepAlive Example

You can obtain a token on the the UptimeRobot dashboard.

from replutil import *
from time import sleep
import logging

logging.basicConfig(level=logging.INFO)

with ReplKeepAlive("token"):
    # Do your long running operations here...
    sleep(40)

Registering servers, ports, and watchers are abstracted away from the end user.

When used as a context manager, the library will automatically handle registering and deregistering watchers as well as staring and keeping open webservers.

Yes, all you need to have your repl container run forever is a single line and an indent. No hacker plan, freedom!

If this is used in a larger project, like, say, a Discord bot, you should do any asyncio event loop logic (including Client.run) in the context manager scoping block as it creates processes.

Install

You can install this package via pip:

pip install replutil

Metadata

Release files for replutil 0.1.1

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

Source distribution (sdist)

Source distribution for replutil 0.1.1
File Size Uploaded
replutil-0.1.1.tar.gz 15.7 kB Details

Built distribution (wheel)

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

Total release size: 31.8 kB

Release files / replutil-0.1.1.tar.gz

Download URL replutil-0.1.1.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
33de2140cdf67973e77c6942d18d3d03b779accdab839cdebf65db728ba0abd1
BLAKE2b-256 checksum
How to use checksums
e7ebb9c685737a7eed695cce9829be631e61b3662bfba7136a246a69029c7c3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.12 Linux/5.11.0-1026-gcp

Release files / replutil-0.1.1-py3-none-any.whl

Download URL replutil-0.1.1-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d95f17e17f2cc1bfc81717f2221871ece24893b417eb2f50295629fb3fb5409c
BLAKE2b-256 checksum
How to use checksums
9e8571877894e8215396e63097192ac43fb974e0f090057f759541da24e9b9c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.8.12 Linux/5.11.0-1026-gcp

Release history Release notifications | RSS feed

This release

0.1.1 This release

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