Python Package made by Mhadhbi Issam.
Project description
pydefoldsdk
defold protobuffers messages ported to python
install :
pip install pydefoldsdk
usage :
from pydefoldsdk import sdk
from google.protobuf.json_format import MessageToJson
from google.protobuf.text_format import MessageToString, Parse
print(sdk)
content = '''
name: "menu"
scale_along_z: 0
embedded_instances {
id: "go"
data: "components {\\n"
" id: \\"menu\\"\\n"
" component: \\"/examples/collection/proxy/menu.gui\\"\\n"
" position {\\n"
" x: 0.0\\n"
" y: 0.0\\n"
" z: 0.0\\n"
" }\\n"
" rotation {\\n"
" x: 0.0\\n"
" y: 0.0\\n"
" z: 0.0\\n"
" w: 1.0\\n"
" }\\n"
"}\\n"
""
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.0
y: 0.0
z: 0.0
w: 1.0
}
scale3 {
x: 1.0
y: 1.0
z: 1.0
}
}
'''
collection = sdk.CollectionDesc()
Parse(content.encode('utf-8'), collection)
print(MessageToString(collection))
print(MessageToJson(collection,preserving_proto_field_name=True))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydefoldsdk_1_12_2-1.12.2-py3-none-any.whl.
File metadata
- Download URL: pydefoldsdk_1_12_2-1.12.2-py3-none-any.whl
- Upload date:
- Size: 54.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a06c86e7d2dbcfe5f780107f1ae773a81a50258f8e01c63980eb890d1fb0234c
|
|
| MD5 |
481aa3fa90de1e2a657c109e774169a1
|
|
| BLAKE2b-256 |
deb7ebac511d1a6f5d28510a2eabcb67515971df3c44fa1b4be9f0b994f47e28
|