Skip to main content

Unofficial Autodesk Forge SDK for Python.

Project description

autodesk-forge-sdk

Unofficial Autodesk Forge SDK for Python (3.*).

Usage

Install the package from PyPI:

pip3 install autodesk-forge-sdk

Authentication

import os
from autodesk_forge_sdk import AuthenticationClient, Scope

client = AuthenticationClient()
auth = client.authenticate(os.environ["FORGE_CLIENT_ID"], os.environ["FORGE_CLIENT_SECRET"], [Scope.VIEWABLES_READ])
print(auth["access_token"])

Data Management

import os
from autodesk_forge_sdk import OSSClient, OAuthTokenProvider

client = OSSClient(OAuthTokenProvider(os.environ["FORGE_CLIENT_ID"], os.environ["FORGE_CLIENT_SECRET"]))
buckets = client.get_all_buckets()
print(buckets)

Or, if you already have an access token:

import os
from autodesk_forge_sdk import OSSClient, SimpleTokenProvider

client = OSSClient(SimpleTokenProvider(os.environ["FORGE_ACCESS_TOKEN"]))
buckets = client.get_all_buckets()
print(buckets)

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

autodesk-forge-sdk-0.1.2.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

autodesk_forge_sdk-0.1.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file autodesk-forge-sdk-0.1.2.tar.gz.

File metadata

  • Download URL: autodesk-forge-sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for autodesk-forge-sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 22e9d6856d3ef46bdd54ec07f875ef5c1a98fdf45dd391a1bacff12ac9f1bb83
MD5 06810544203fecba1dd1a9b70563285e
BLAKE2b-256 10b3e63f3ee9e6e7fe9e3292638f50903f881b22a6318e52982b0524dd542f36

See more details on using hashes here.

File details

Details for the file autodesk_forge_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: autodesk_forge_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for autodesk_forge_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e2ad37d94f51a58179fe638ceea1cca1cf7d43968539fbf0780ea319674d1e
MD5 a3d6ddf2e04d0d25518f9011a3448b5c
BLAKE2b-256 4dc188d159312bc1d4bccb6c39ad542002961c8497b936e2601fd31048f3035c

See more details on using hashes here.

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