apptools.naming.pyfs_context module

A Python File System context.

class apptools.naming.pyfs_context.PyFSContext(**traits)[source]

Bases: DirContext, Referenceable

A Python File System context.

This context represents a directory on a local file system.

ATTRIBUTES_FILE = '__attributes__'
FILTERS = 'apptools.naming.pyfs.filters'
OBJECT_SERIALIZERS = 'apptools.naming.pyfs.object.serializers'
get_unique_name(name)[source]

Returns a name that is unique within the context.

The name returned will start with the specified prefix.

refresh()[source]

Refresh the context to reflect changes in the file system.