pyplist

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpXML

func DumpXML(v any) ([]byte, error)

XML plist bytes of v the way plistlib.dump writes them with sorted keys

func Load

func Load(data []byte) (any, error)

Decodes an XML or binary plist like plistlib.load with the default dict type

func Str

func Str(v any) string

Str is Python str() of a decoded plist value

Types

type Date

type Date time.Time

Date is a naive datetime.datetime read from a plist

func (Date) PyRepr

func (d Date) PyRepr() string

func (Date) PyStr

func (d Date) PyStr() string

func (Date) PyTypeName

func (Date) PyTypeName() string

Python class a plist date is read as

type Dict

type Dict struct {
	// contains filtered or unexported fields
}

Dict is a plist dict keeping insertion order and Python key equality

func (*Dict) Get

func (d *Dict) Get(key string) (any, bool)

Value stored under a string key and whether it exists

func (*Dict) Len

func (d *Dict) Len() int

Number of entries

func (*Dict) PyItems

func (d *Dict) PyItems() iter.Seq2[any, any]

type Error

type Error struct {
	Class string
	Msg   string
}

Error is a Python exception raised by plistlib.load, Class naming the exception type

func (*Error) Error

func (e *Error) Error() string

type UID

type UID uint64

UID is a keyed archiver reference from a binary plist

func (UID) PyRepr

func (u UID) PyRepr() string

func (UID) PyStr

func (u UID) PyStr() string

func (UID) PyTypeName

func (UID) PyTypeName() string

Python class of a keyed archiver reference

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL