Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NDB では、キーの ID はバイナリセーフですか?
ID としてバイナリ文字列を使用したい ^_^ (ビットコイン取引の txid.decode('hex') の例)
キーは、数値IDまたは文字列名のいずれかを使用できます。
あなたの場合、バイナリ文字列を16進数に変換し、名前として文字列として保存できます。
そうかもしれないし、そうでないかもしれない (そうなるようには設計されていない) uuid ライブラリを活用する方が良いかもしれない
import uuid client_id = str(uuid.uuid4()).replace("-",'')