Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

pydefoldapi-1.0.9-py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page