Home | Trees | Indices | Help |
|
---|
|
PyAMF provides Action Message Format (AMF) support for Python that is compatible with the Flash Player.
Copyright: Copyright (c) 2007-2009 The PyAMF Project. All Rights Reserved.
Contact: dev@pyamf.org
See Also: http://pyamf.org
Since: October 2007
Version: 0.4
Status: Production/Stable
|
|||
|
|
|||
ClientTypes Typecodes used to identify AMF clients and servers. |
|||
UndefinedType | |||
BaseError Base AMF Error. |
|||
DecodeError Raised if there is an error in decoding an AMF data stream. |
|||
EOStream Raised if the data stream has come to a natural end. |
|||
ReferenceError Raised if an AMF data stream refers to a non-existent object or string reference. |
|||
EncodeError Raised if the element could not be encoded to the stream. |
|||
UnknownClassAlias Raised if the AMF stream specifies a class that does not have an alias. |
|||
BaseContext I hold the AMF context for en/decoding streams. |
|||
ASObject This class represents a Flash Actionscript Object (typed or untyped). |
|||
MixedArray Used to be able to specify the mixedarray type.
|
|||
ClassMetaData I hold a list of tags relating to the class. |
|||
ClassAlias Class alias. |
|||
TypedObject This class is used when a strongly typed object is decoded but there is no registered class to apply it to. |
|||
TypedObjectClassAlias | |||
BaseDecoder Base AMF decoder. |
|||
CustomTypeFunc Custom type mappings. |
|||
BaseEncoder Base AMF encoder. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
ClassAlias |
|
||
bool
|
|
||
|
|||
StringIO
|
|
||
|
|||
amf0.Decoder or amf3.Decoder |
|
||
|
|||
amf0.Encoder or amf3.Encoder |
|
||
|
|||
amf0.Context or amf3.Context |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__version__ =
PyAMF version number. |
|||
CLASS_CACHE =
Class mapping support. |
|||
CLASS_LOADERS = [] Class loaders. |
|||
TYPE_MAP = {} Custom type map. |
|||
ERROR_CLASS_MAP =
Maps error classes to string codes. |
|||
ALIAS_TYPES =
Alias mapping support |
|||
AMF0 = 0 Specifies that objects are serialized using AMF for ActionScript 1.0 and 2.0. |
|||
AMF3 = 3 Specifies that objects are serialized using AMF for ActionScript 3.0. |
|||
ENCODING_TYPES =
Supported AMF encoding types. |
|||
CLIENT_TYPES =
List of AMF client typecodes. |
|||
Undefined = pyamf.Undefined Represents the undefined value in a Flash client.
|
Imports: types, util, register_adapters, adapters
|
Registers a class to be used in the data streaming.
|
Deletes a class from the cache. If
|
Registers a loader that is called to provide the The
|
Unregisters a class loader.
|
Load a module based on
|
Finds the class registered to the alias. The search is done in order:
|
Finds the alias registered to the class.
|
|
A generator function to decode a datastream.
|
A helper function to encode an element.
|
Get compatible decoder.
|
Get compatible encoder.
|
Gets a compatible context class.
|
Loader for Flex framework compatibility classes.
|
Adds a custom type to TYPE_MAP. A custom type allows fine grain control of what to encode to an AMF data stream.
|
Gets the declaration for the corresponding custom type.
|
Removes the custom type declaration.
|
Maps an exception class to a string code. Used to map remoting
class AuthenticationError(Exception): pass An example:
|
Removes a class from
|
This function allows you to map subclasses of ClassAlias to classes listed in
When an object is read/written from/to the AMF stream, a paired ClassAlias instance is created (or reused), based on the Python class of that object. ClassAlias provides important metadata for the class and can also control how the equivalent Python object is created, how the attributes are applied etc. Use this function if you need to do something non-standard. See Also: pyamf.adapters._google_appengine_ext_db.DataStoreClassAlias for a good example. Since: 0.4 |
|
CLASS_CACHEClass mapping support.
|
ERROR_CLASS_MAPMaps error classes to string codes.
|
ALIAS_TYPESAlias mapping support
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jan 18 18:12:08 2009 | http://epydoc.sourceforge.net |