Simple Failover Resolver
Project description
Sfor
====
Simple failover resolver for Python
this is experimental version.
yet, you should not use in large-scale service.
Install
===
pip install sfor
Example
===
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):
logging.info(sfor.resolv())
time.sleep(1)
====
Simple failover resolver for Python
this is experimental version.
yet, you should not use in large-scale service.
Install
===
pip install sfor
Example
===
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):
logging.info(sfor.resolv())
time.sleep(1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-sfor-0.1.3.tar.gz
(1.8 kB
view details)
File details
Details for the file python-sfor-0.1.3.tar.gz.
File metadata
- Download URL: python-sfor-0.1.3.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
747106fd8c39708cfa76de387d520fa40163c67c4f5ab3459ec8414e1683c433
|
|
| MD5 |
0870574825b6ad9f601903f74ecd2752
|
|
| BLAKE2b-256 |
35e0fa041488a964acc97eac432eb887ec1d957f64f14f2b87836294714531c5
|