Python Package made by Mhadhbi Issam .
Project description
pydefold-api
Getting started
Install :
pip install pydefoldapi
Usage :
- Example 1:
from PyDefoldApi import DefoldApi
c =DefoldApi.CollectionDesc(name = "main")
c.name = "main"
o =DefoldApi.EmbeddedInstanceDesc(id = "go")
c.embedded_instances.append(o)
print(c.to_dict())
c.update({"name" : "ffffffff"})
print(c)
- Example 2:
from PyDefoldApi import DefoldApi
cam = DefoldApi.CameraDesc()
cam.update({
"aspect_ratio": 0.0,
"fov": 150,
"near_z":15,
"far_z": 0.0,
"auto_aspect_ratio": 0,
"orthographic_projection": 0,
"orthographic_zoom": 1.0
})
print(cam.to_dict())
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 Distribution
pydefoldapi-1.0.9.tar.gz
(18.8 kB
view details)
Built Distribution
File details
Details for the file pydefoldapi-1.0.9.tar.gz
.
File metadata
- Download URL: pydefoldapi-1.0.9.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea5151ff68355a2e1f1bb8adca3ee60e13e56eab1060594f98b2ce8eac9b5e19 |
|
MD5 | 84a817e2b7562b76328958fd99530976 |
|
BLAKE2b-256 | aff668433b2021d50bdd13b91e2d2108f829093668118c040813f76290402548 |
File details
Details for the file pydefoldapi-1.0.9-py3-none-any.whl
.
File metadata
- Download URL: pydefoldapi-1.0.9-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0b5db5fe4260b51cbf5bf5e3a39f0a20e675c3c12965f3008fefed4e25bcbfe |
|
MD5 | 66ea4a2e9cc3ef49338dbe0473b30ade |
|
BLAKE2b-256 | 8943e073304ddc6f403321d7d399e040d13a03d1f7d5465ed17f37dd25b653f9 |