dpu.vpd.vpd module
Wrapper for dpu_vpd.h
Do not modify this file.
- class dpu.vpd.vpd.DarwinLibraryLoader
Bases:
LibraryLoaderLibrary loader for MacOS
- class Lookup(path)
Bases:
LookupLooking up library files for this platform (Darwin aka MacOS)
- mode = 256
- static getdirs(libname)
Implements the dylib search as specified in Apple documentation:
- http://developer.apple.com/documentation/DeveloperTools/Conceptual/
DynamicLibraries/Articles/DynamicLibraryUsageGuidelines.html
Before commencing the standard search, the method first checks the bundle’s
Frameworksdirectory if the application is running within a bundle (OS X .app).
- getplatformpaths(libname)
Return all the library paths available in this platform
- name_formats = ['lib%s.dylib', 'lib%s.so', 'lib%s.bundle', '%s.dylib', '%s.so', '%s.bundle', '%s']
- class dpu.vpd.vpd.LibraryLoader
Bases:
objectA base class For loading of libraries ;-) Subclasses load libraries for specific platforms.
- class Lookup(path)
Bases:
objectLooking up calling conventions for a platform
- get(name, calling_convention='cdecl')
Return the given name according to the selected calling convention
- has(name, calling_convention='cdecl')
Return True if this given calling convention finds the given ‘name’
- mode = 0
- getpaths(libname)
Return a list of paths where the library might be found.
- getplatformpaths(_libname)
Return all the library paths available in this platform
- name_formats = ['%s']
- class dpu.vpd.vpd.MutableString(string='')
Bases:
UserStringmutable string objects
Python strings are immutable objects. This has the advantage, that strings may be used as dictionary keys. If this property isn’t needed and you insist on changing string values in place instead, you may cheat and use MutableString.
But the purpose of this class is an educational one: to prevent people from inventing their own mutable string class derived from UserString and than forget thereby to remove (override) the __hash__ method inherited from UserString. This would lead to errors that would be very hard to track down.
A faster and better solution is to rewrite your program using lists.
- immutable()
- class dpu.vpd.vpd.PosixLibraryLoader
Bases:
LibraryLoaderLibrary loader for POSIX-like systems (including Linux)
- getplatformpaths(libname)
Return all the library paths available in this platform
- name_formats = ['lib%s.so', '%s.so', '%s']
- dpu.vpd.vpd.ReturnString(obj, func=None, arguments=None)
- class dpu.vpd.vpd.String(obj=b'')
Bases:
MutableString,Union- data
Structure/Union member
- classmethod from_param(obj)
Convert a Python object into a function call parameter.
- raw
Structure/Union member
- dpu.vpd.vpd.UNCHECKED(type)
- class dpu.vpd.vpd.UserString(seq)
Bases:
object- capitalize()
- center(width, *args)
- count(sub, start=0, end=9223372036854775807)
- decode(encoding=None, errors=None)
- encode(encoding=None, errors=None)
- endswith(suffix, start=0, end=9223372036854775807)
- expandtabs(tabsize=8)
- find(sub, start=0, end=9223372036854775807)
- index(sub, start=0, end=9223372036854775807)
- isalnum()
- isalpha()
- isdecimal()
- isdigit()
- islower()
- isnumeric()
- isspace()
- istitle()
- isupper()
- join(seq)
- ljust(width, *args)
- lower()
- lstrip(chars=None)
- partition(sep)
- replace(old, new, maxsplit=-1)
- rfind(sub, start=0, end=9223372036854775807)
- rindex(sub, start=0, end=9223372036854775807)
- rjust(width, *args)
- rpartition(sep)
- rsplit(sep=None, maxsplit=-1)
- rstrip(chars=None)
- split(sep=None, maxsplit=-1)
- splitlines(keepends=0)
- startswith(prefix, start=0, end=9223372036854775807)
- strip(chars=None)
- swapcase()
- title()
- translate(*args)
- upper()
- zfill(width)
- class dpu.vpd.vpd.WindowsLibraryLoader
Bases:
LibraryLoaderLibrary loader for Microsoft Windows
- name_formats = ['%s.dll', 'lib%s.dll', '%slib.dll', '%s']
- dpu.vpd.vpd.add_library_search_dirs(other_dirs)
Add libraries to search paths. If library paths are relative, convert them to absolute with respect to this file’s directory
- dpu.vpd.vpd.dpu_vpd
alias of
struct_dpu_vpd
- dpu.vpd.vpd.dpu_vpd_database
alias of
struct_dpu_vpd_database
- dpu.vpd.vpd.dpu_vpd_header
alias of
struct_dpu_vpd_header
- dpu.vpd.vpd.dpu_vpd_rank_data
alias of
struct_dpu_vpd_rank_data
- dpu.vpd.vpd.dpu_vpd_repair_entry
alias of
struct_dpu_vpd_repair_entry
- dpu.vpd.vpd.dpu_vpd_string_pair
alias of
struct_dpu_vpd_string_pair
- dpu.vpd.vpd.ord_if_char(value)
Simple helper used for casts to simple builtin types: if the argument is a string type, it will be converted to it’s ordinal value.
This function will raise an exception if the argument is string with more than one characters.
- class dpu.vpd.vpd.struct_dpu_vpd_header
Bases:
Structure- rank_count
- ranks
- repair_count
- struct_id
- struct_size
- struct_ver
- class dpu.vpd.vpd.struct_dpu_vpd_rank_data
Bases:
Structure- dpu_disabled
- iram_repair
- wram_repair