Just keep this repo as a souvenir, there's a lot of legacy code here, not worth using as a reference
current not suppot My Colony 2
- Description: this module use
configparser
that in stdlib to provide config function - Path:
mcfp.config.config
- Sections
network
- Options
timeout
(int, default=3): timeout of all the network related function
- Options
- Description: provide generic method
- Path:
mcfp.base.CommonBase
- Method
__delattr__
: disabledel object.attr
__str__
: returnself.name
- Description: provide method of
dict
object - Path:
mcfp.base.DictBase
- Inherit: CommonBase
- Description: provide method of
list
object - Path:
mcfp.base.ListBase
- Inherit: CommonBase
- Description: basically same as
dict
object - Path:
mcfp.filebase.FileBase
- Inherit: DictBase
- Attributes
name
: file namedict
: file data
- Method
categories
: alias offile.keys()
- Description: represents files like strings.js
- Path:
mcfp.file.Strings
- Inherit: FileBase
- Path:
mcfp.categorybase.CategoryBase
- Common attributes
file
: instance of subclass of FileBase which this category belongname
: category namedata
: category data
- Common method
units
: Implemented by subclass
- Description: basically same as
dict
object - Path:
mcfp.category.DictCategory
- Inherit: DictBase, CategoryBase
- Attributes
dict
: alias ofself.data
- Method
units
: alias ofself.keys
- Description: basically same as
list
object - Path:
mcfp.category.ListCategory
- Inherit: ListBase, CategoryBase
- Attributes
list
: alias ofself.data
- Method
units
: similar withself.__iter__
but return str object
- Path:
mcfp.unitbase.UnitBase
- Common attributes
file
: instance of subclass of FileBase which this unit belong, same ascategory.file
category
: instance of subclass of CategoryBase which this unit belongdata
: unit data
Base exception of MCFP
- Inherit: Exception
File related error
- Inherit: MCFPerror
Invalid file channel
- Inherit: FileError
Invalid file version
- Inherit: FileError
Invalid file name
- Inherit: FileError
Category related error
- Inherit: MCFPError
Invalid category name
- Inherit: CategoryError
Unit related error
- Inherit: MCFPError
Invalid unit name
- Inherit: UnitError