mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
* Add numpy accessor to python flatbuffers scalar vectors * Update python tests to test numpy vector accessor * Update appveyor CI to run Python tests, save generated code as artifact * Update example generated python code * Add numpy info to python usage docs * Update test schema and python tests w/ multi-byte vector * did not mean to push profiling code * adding float64 numpy tests
78 lines
1.2 KiB
JSON
Executable File
78 lines
1.2 KiB
JSON
Executable File
{
|
|
pos: {
|
|
x: 1,
|
|
y: "2",
|
|
z: 3,
|
|
test1: 3,
|
|
test2: Green,
|
|
test3: {
|
|
a: 5,
|
|
b: 6
|
|
}
|
|
},
|
|
hp: 80,
|
|
name: "MyMonster",
|
|
inventory: [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
vector_of_longs: [
|
|
1,
|
|
100,
|
|
10000,
|
|
1000000,
|
|
100000000
|
|
],
|
|
vector_of_doubles: [
|
|
-1.7976931348623157e+308,
|
|
0,
|
|
1.7976931348623157e+308
|
|
],
|
|
test_type: Monster,
|
|
test: {
|
|
name: "Fred",
|
|
pos: null
|
|
},
|
|
test4: [
|
|
{
|
|
a: 10,
|
|
b: 20
|
|
},
|
|
{
|
|
b: "40",
|
|
a: 30
|
|
}
|
|
],
|
|
test5: [
|
|
{
|
|
a: 10,
|
|
b: 20
|
|
},
|
|
{
|
|
b: "40",
|
|
a: 30
|
|
}
|
|
],
|
|
testarrayofstring: [
|
|
"test1",
|
|
"test2"
|
|
],
|
|
enemy: {
|
|
name: "Fred"
|
|
},
|
|
testarrayofbools:[
|
|
true, false, true
|
|
],
|
|
testhashs32_fnv1: "This string is being hashed!",
|
|
testhashu32_fnv1: "This string is being hashed!",
|
|
testhashs64_fnv1: "This string is being hashed!",
|
|
testhashu64_fnv1: "This string is being hashed!",
|
|
testhashs32_fnv1a: "This string is being hashed!",
|
|
testhashu32_fnv1a: "This string is being hashed!",
|
|
testhashs64_fnv1a: "This string is being hashed!",
|
|
testhashu64_fnv1a: "This string is being hashed!",
|
|
}
|