Skip to main content

Simple Failover Resolver

Project description


Simple failover resolver for Python

this is experimental version.
yet, you should not use in large-scale service.


pip install sfor


from sfor.sfor_simple import SforSimple, SforNodeInfo
import time
import logging

node_list = [
SforNodeInfo("hoge1", 80, "/status.html"),
SforNodeInfo("hoge2", 80, "/status.html"),

logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')

sfor = SforSimple(node_list)

for n in range(60):

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-sfor, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size python-sfor-0.1.3.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page