toru / python-kyototycoon

Python client library for Kyoto Tycoon.
Other
29 stars 22 forks source link

Unpacker #3

Open paulokopny opened 13 years ago

paulokopny commented 13 years ago

Please make it avaliable not to use pickle unpacker. Return raw result by default for example.

toru commented 13 years ago

My plan is to provide three pre-coded serializer modes and a custom mode. This should satisfy your needs.

paulokopny commented 13 years ago

Hello, Toru. I think this is a great plan! Can't wait to seen its implementation. Actually, I was going to do some coding on my local version, like making a KyotoTycoon object a dict-style etc. I'll post some issues in near future to your repository if you don't mind.

On Sun, May 22, 2011 at 2:27 PM, tmaesaka < reply@reply.github.com>wrote:

My plan is to provide three pre-coded serializer modes and a custom mode. This should satisfy your needs.

  • Pickle
  • String
  • JSON
  • Load your own pack/unpack code

Reply to this email directly or view it on GitHub: https://github.com/tmaesaka/python-kyototycoon/issues/3#comment_1216864

Paul Okopny

toru commented 13 years ago

For that purpose, I recommend wrapping ProtocolHandler in kt_http.py like I did with the KyotoTycoon class. You could call it something like KyotoTycoonDict or something along that line.

I deliberately separated those two areas (interface and the core logic) so that things like what you mentioned would be easy to do.

paulokopny commented 13 years ago

Ok, I'll do my own class then with blackjack and hookers :)

On Sun, May 22, 2011 at 7:12 PM, tmaesaka < reply@reply.github.com>wrote:

For that purpose, I recommend wrapping ProtocolHandler in kt_http.py like I did with the KyotoTycoon class. You could call it something like KyotoTycoonDict or something along that line.

I deliberately separated those two areas (interface and the core logic) so that things like what you mentioned would be easy to do.

Reply to this email directly or view it on GitHub: https://github.com/tmaesaka/python-kyototycoon/issues/3#comment_1217477

Paul Okopny