Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 547369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:57:57+00:00 2026-05-13T10:57:57+00:00

I’ve downloaded the Python PalmDB lib, but can’t find any info on how to

  • 0

I’ve downloaded the Python PalmDB lib, but can’t find any info on how to use it. I’ve tried reading docstrings and so far I’ve been able to come up with the following code:

from pprint import pprint
from PalmDB.PalmDatabase import PalmDatabase

pdb = PalmDatabase()

with open('testdb.pdb','rb') as data:
    pdb.fromByteArray(data.read())

pprint(dir(pdb))
pprint(pdb.attributes)
print pdb.__doc__

#print pdb.records

print pdb.records[10].toXML()

which gives me the xml representation of a record (?) with some nasty long payload attribute, which doesn’t resemble any kind of human-readable text to me. I just want to read the contents of the pdb file. Is there a guide/tutorial for this library? What would you do to figure out the proper way to make things done in my situation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:57:57+00:00Added an answer on May 13, 2026 at 10:57 am

    There are two problems with the PalmDB module. The first is that it comes with almost no documentation. The other is that in order to do anything useful with the records in the database you need to figure out the binary structure for the particular record type you’re dealing with (it’s different for each type) and unpack it yourself. I believe the package author did some work with the ToDo format, but none of the others as far as I know. What I needed was something to unpack Palm address records, so I rolled my own module. I posted it [1] so you can take a look get an idea of what’s involved. If it’s the address book records you’re interested in, you’re in luck. I created it several years ago, so I don’t remember all the details of what I had to do, but I did update it to work with the current version [2] of PalmDB, which completely broke all code using older versions. Hope it’s useful!

    [1] http://pastebin.com/f75a93f48
    [2] 1.8.1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 380k
  • Answers 380k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The simple answer is because that is the way the… May 14, 2026 at 9:53 pm
  • Editorial Team
    Editorial Team added an answer There's imageftbbox and imagettfbbox for that. May 14, 2026 at 9:53 pm
  • Editorial Team
    Editorial Team added an answer Just do it without backslash: ${pageContext.request.serverName eq 'localhost'} A JSP… May 14, 2026 at 9:53 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.