SDK
Get up and running with Gretel's Python SDK.
Last updated
Was this helpful?
Get up and running with Gretel's Python SDK.
Last updated
Was this helpful?
Gretel's Python SDK is made available through both (most common) and .
We require using Python 3.11+ when using the SDK. You can download Python 3.11 (or newer) and install manually, or you may wish to install Python 3.11+ . If you are working with a new Python installation or environment you should also .
To get started, you will need to setup your environment and install the appropriate packages.
The most straightforward way to install the gretel-client
SDK is with pip:
The -U
flag will ensure the most recent version is installed. Occasionally we will ship a Release Candidate (RC) version of the package. These are generally safe to install, you may optionally include this with the inclusion of the --pre
flag.
If you wish to have the most recent development features, you may also choose to install directly from GitHub with the following command. This may be suggested from our Customer Success team if you are testing new features that have not been fully released yet.
Your Gretel session is configured upon instantiation of a Gretel
object.
The default is to create or reuse a project called default-sdk-project
. If you instead want to specify an existing project to use, you can reference it by its Project ID, available below the name on the Projects list view. Here is an example:
If Gretel cannot find a project for the ID you specified, Gretel will create a new project for you. The new project's name will be the value you put in the ID. For example, the below code generates a project named example-project
with an ID similar to that shown in the screenshot above.