txampext
is a collection of third-party extensions and tools for Twisted's
implementation of AMP.
Mutlifactory support for proxying multiplexed connections. Previously you could only do that with one factory; now you can do it with an arbitrary number. (The example still only proxies one thing; but the obvious way to make it proxy more than one thing now works.)
Improvements:
respondertests
: The error message raised when a locator does not have the appropriate responder is now better.commandtests
: Added support forrequiresAnswer
respondertests
no longer relies on gross implementation details.
Bugfix release for 0.0.7; due to the wrong thing being tagged, the new responder tests were actually fatally broken. Everyone should update.
Features:
- Added
txampext.jsondialect
, a JSON AMP dialect, intended for browsers. - Added
txampext.respondertests
, tests for verifying that responder locators actually have registered responders for given commands.
The version is now available as both txampext.__version__
as well as
txampext.version
.
Bugfixes:
- ExposedProtocol has been renamed to ExposedResponderLocator, because it's actually always the responder locator (which sometimes happens to be the protocol) due to an implementation detail of AMP in Twisted.
Features:
- A new iteration of the protocol multiplexing logic. Assumes that
you're using
AMP
subclasses, so that the responder locator is also the protocol. There's a hook you can override in case there's a different way to get to the protocol class from the responder locator. The examples do the latter. - The documentation now has an example that listens locally for TCP connections and then forwards them over an AMP connection using a multiplexed AMP connection.
For the next release, I hope to clean up the example, and add it to
the multiplexing
module.
Features:
- Command testing tools require explicit specification of all attributes. This takes care of a few silent failure cases. When some of the attributes aren't specified, an exception is raised detailing the missing attributes (and only the missing attributes).
constrained
has been renamedconstraints
.- Preliminary work on protocol multiplexing. This feature will require work in Twisted itself to complete.
Bugfixes:
- One of the command testing tool docstrings pointed to the wrong classattr.
Miscellaneous:
- Refactoring.
- Test cases use
SynchronousTestCase
where possible.
- Composed responder locators, which merge multiple responder locators into one.
First public release.
- Nested AMP box implementation.
These were internal versions. Includes stuff like CI setup, packaging metadata, et cetera.