Home | Trees | Indices | Help |
|
---|
|
PyAMF provides Action Message Format (AMF) support for Python that is compatible with the Adobe Flash Player.
Copyright: Copyright (c) 2007-2009 The PyAMF Project. All Rights Reserved.
Contact: users@pyamf.org
See Also: http://pyamf.org
Since: October 2007
Version: 0.5.1
Status: Production/Stable
|
|||
|
|
|||
ASObject This class represents a Flash Actionscript Object (typed or untyped). |
|||
BaseContext I hold the AMF context for en/decoding streams. |
|||
BaseDecoder Base AMF decoder. |
|||
BaseEncoder Base AMF encoder. |
|||
BaseError Base AMF Error. |
|||
ClassAlias Class alias. |
|||
ClassAliasError Generic error for anything class alias related. |
|||
ClientTypes Typecodes used to identify AMF clients and servers. |
|||
CustomTypeFunc Custom type mappings. |
|||
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. |
|||
EncodeError Raised if the element could not be encoded to the stream. |
|||
ErrorAlias Adapts Python exception objects to Adobe Flash Player error objects. |
|||
MixedArray Used to be able to specify the mixedarray type.
|
|||
ReferenceError Raised if an AMF data stream refers to a non-existent object or string reference. |
|||
TypedObject This class is used when a strongly typed object is decoded but there is no registered class to apply it to. |
|||
TypedObjectClassAlias | |||
UndefinedType | |||
UnknownClassAlias Raised if the AMF stream specifies an Actionscript class that does not have a Python class alias. |
|
|||
amf0.Context or amf3.Context |
|
||
amf0.Decoder or amf3.Decoder |
|
||
amf0.Encoder or amf3.Encoder |
|
||
|
|||
|
|||
|
|||
|
|||
StringIO
|
|
||
|
|||
ClassAlias |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
ALIAS_TYPES =
Alias mapping support |
|||
AMF0 = 0 Specifies that objects are serialized using AMF for ActionScript 1.0 and 2.0 that were introduced in the Adobe Flash Player 6. |
|||
AMF3 = 3 Specifies that objects are serialized using AMF for ActionScript 3.0 that was introduced in the Adobe Flash Player 9. |
|||
CLASS_CACHE =
Class mapping support. |
|||
CLASS_LOADERS = [] Class loaders. |
|||
CLIENT_TYPES =
List of AMF client typecodes. |
|||
DEFAULT_ENCODING = 0 Default encoding |
|||
ENCODING_TYPES =
Supported AMF encoding types. |
|||
ERROR_CLASS_MAP =
Maps error classes to string codes. |
|||
TYPE_MAP = {} Custom type map. |
|||
Undefined = pyamf.Undefined Represents the undefined value in a Adobe Flash Player
client.
|
|||
__version__ =
PyAMF version number. |
Imports: util, adapters, inspect, register_adapters, set, types
|
Gets a compatible context class.
|
Get compatible decoder.
|
Get compatible encoder.
|
Maps an exception class to a string code. Used to map remoting
class AuthenticationError(Exception): pass An example:
|
Adds a custom type to TYPE_MAP. A custom type allows fine grain control of what to encode to an AMF data stream.
|
Loader for BlazeDS framework compatibility classes, specifically
implementing See Also: BlazeDS (external) Since: 0.5 |
A generator function to decode a datastream.
|
A helper function to encode an element.
|
Loader for Flex framework compatibility classes.
|
Finds the alias registered to the class.
|
Load a module based on
|
Gets the declaration for the corresponding custom type.
|
Finds the class registered to the alias. The search is done in order:
|
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 |
Registers a class to be used in the data streaming.
|
Registers a loader that is called to provide the The
|
This is a helper function that takes the concept of Actionscript
packages and registers all the classes in the supplied Python module
under that package. It auto-aliased all classes in e.g. class User(object): pass class Permission(object): pass >>> import mymodule >>> pyamf.register_package(mymodule, 'com.example.app') Now all instances of This function respects the This function provides the ability to register the module it is being called in, an example: >>> class Foo: ... pass ... >>> class Bar: ... pass ... >>> import pyamf >>> pyamf.register_package('foo') You can also supply a list of classes to register. An example, taking the above classes: >>> import pyamf >>> pyamf.register_package([Foo, Bar], 'foo')
Since: 0.5 |
Removes a class from
|
Removes the custom type declaration.
|
Deletes a class from the cache. If
|
Unregisters a class loader.
|
|
ALIAS_TYPESAlias mapping support
|
CLASS_CACHEClass mapping support.
|
ERROR_CLASS_MAPMaps error classes to string codes.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Sep 19 14:56:30 2009 | http://epydoc.sourceforge.net |