HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.
2.0.0-chaika
Hierarchical Cluster Engine Python language binding
ftest_pickle_serializer.py
Go to the documentation of this file.
1
#coding: utf-8
2
'''
3
HCE project, Python bindings, DRCE module
4
Event objects functional tests.
5
6
@package: drce
7
@author bgv bgv.hce@gmail.com
8
@link: http://hierarchical-cluster-engine.com/
9
@copyright: Copyright © 2015 IOIX Ukraine
10
@license: http://hierarchical-cluster-engine.com/license/
11
@since: 0.1
12
'''
13
14
15
import
json
16
from
app.Utils
import
PickleSerializer
17
18
19
s =
u"test チューリップで描 Japan test«Facebook»test"
20
print
"original: "
+ s
21
22
p = PickleSerializer().serialize(s)
23
print
"pickled: "
+ p
24
25
j = json.dumps(p)
26
print
"jsoned: "
+ j
27
28
p = json.loads(j)
29
print
"pickled: "
+ p
30
31
s = PickleSerializer().unserialize(p)
32
print
"restored: "
+ s
33
app.Utils
Definition:
Utils.py:1
sources
hce
ftests
ftest_pickle_serializer.py
Generated on Fri Nov 24 2017 18:54:01 for HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings. by
1.8.13