- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
def iterctr(items, n): | |
ctr = 0 | |
for item in items: | |
ctr += 1 | |
if ctr % n == 0: | |
print(ctr) | |
yield item |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
# you can make a text file of request times (in ms, one number per line) and import it here, or you can use a probability distribution to simulate request times (see below where setting req_durations_in_ms) | |
# rq = read.table("~/Downloads/request_times.txt", header=FALSE)$V1 | |
# argument notes: | |
# parallel_router_count is only relevant if router_mode is set to "intelligent" | |
# choice_of_two, power_of_two, and unicorn_workers_per_dyno are only relevant if router_mode is set to "naive" | |
# you can only select one of choice_of_two, power_of_two, and unicorn_workers_per_dyno | |
run_simulation = function(router_mode = "naive", | |
reqs_per_minute = 9000, |
"""Proof of concept tornado/tulip integration. | |
Works with the current development branch of both projects as of | |
Jan 20. Current status: The tornado test suite passes cleanly | |
on a tulip-backed IOLoop. The tornado-backed event loop for tulip | |
supports the core call_later and add_reader method families, but not | |
the higher-level networking methods. | |
To run the tornado test suite on tulip, make sure both projects | |
and this file are on your python path and run: |
import struct | |
import SocketServer | |
from base64 import b64encode | |
from hashlib import sha1 | |
from mimetools import Message | |
from StringIO import StringIO | |
class WebSocketsHandler(SocketServer.StreamRequestHandler): | |
magic = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11' |