biplist

`biplist`是Python的二进制plist解析器/生成器。这个项目现在存在于BitBucket上。(`biplist` is a binary plist parser/generator for Python. This project now lives on BitBucket.)

  • 所有者: wooster/biplist
  • 平台: iOS, Mac
  • 許可證: BSD 3-Clause "New" or "Revised" License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

biplist

biplist is a binary plist parser/generator for Python.

About

Binary Property List (plist) files provide a faster and smaller serialization
format for property lists on OS X. This is a library for generating binary
plists which can be read by OS X, iOS, or other clients.

API

The API models the plistlib API, and will call through to plistlib when
XML serialization or deserialization is required.

To generate plists with UID values, wrap the values with the Uid object. The
value must be an int.

To generate plists with NSData/CFData values, wrap the values with the
Data object. The value must be a string.

Date values can only be datetime.datetime objects.

The exceptions InvalidPlistException and NotBinaryPlistException may be
thrown to indicate that the data cannot be serialized or deserialized as
a binary plist.

Installation

To install the latest release version:

sudo easy_install biplist

Examples

Plist generation example:

from biplist import *
from datetime import datetime
plist = {'aKey':'aValue',
         '0':1.322,
         'now':datetime.now(),
         'list':[1,2,3],
         'tuple':('a','b','c')
         }
try:
    writePlist(plist, "example.plist")
except (InvalidPlistException, NotBinaryPlistException), e:
    print "Something bad happened:", e

Plist parsing example:

from biplist import *
try:
    plist = readPlist("example.plist")
    print plist
except (InvalidPlistException, NotBinaryPlistException), e:
    print "Not a plist:", e

主要指標

概覽
名稱與所有者wooster/biplist
主編程語言Python
編程語言Python (語言數: 1)
平台iOS, Mac
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2010-08-19 02:08:41
推送於2018-02-25 01:12:12
最后一次提交2018-02-24 17:11:18
發布數9
最新版本名稱v1.0.2 (發布於 )
第一版名稱v0.5 (發布於 )
用户参与
星數161
關注者數14
派生數35
提交數104
已啟用問題?
問題數9
打開的問題數3
拉請求數4
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?