Conan API Referenceο
Warning
This feature is experimental and subject to breaking changes. See the Conan stability section for more information.
- class ConanAPI(cache_folder=None)ο
This is the main object to interact with the Conan API. It provides all the subapis to work with recipes, packages, remotes, etc., which are exposed as attributes of this class, and should not be created directly.
- Parameters:
cache_folder β Conan cache/home folder. It will have less priority than the
"home_folder"defined in a Workspace.
- remotes: RemotesAPIο
Used to interact with remotes
- command: CommandAPIο
Used to call other commands
- profiles: ProfilesAPIο
Used to process and load Conan profiles
- install: InstallAPIο
Used to install binaries, sources, deploy packages and more
- download: DownloadAPIο
Used to download recipes and packages from remotes
- lockfile: LockfileAPIο
Used to read and manage lockfile files
- local: LocalAPIο
Local flow helpers for developer βsourceβ, βbuildβ, βeditableβ commands
- workspace: WorkspaceAPIο
Used to manage workspaces
- property home_folder: strο
Where the Conan user home is located. Read only. Can be modified by the
CONAN_HOMEenvironment variable or by the.conanrcfile in the current directory or any parent directory when Conan is called.
- reinit()ο
Reinitialize the Conan API. This is useful when the configuration changes.
See also