python-kyototycoon icon indicating copy to clipboard operation
python-kyototycoon copied to clipboard

Unpacker

Open paulokopny opened this issue 14 years ago • 4 comments

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

paulokopny avatar May 20 '11 13:05 paulokopny

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

toru avatar May 22 '11 10:05 toru

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 < [email protected]>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

paulokopny avatar May 22 '11 11:05 paulokopny

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.

toru avatar May 22 '11 15:05 toru

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

On Sun, May 22, 2011 at 7:12 PM, tmaesaka < [email protected]>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

paulokopny avatar May 22 '11 16:05 paulokopny