Skip to content

Commit

Permalink
Add docs for ConanAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Abril Rincón Blanco committed Jan 27, 2025
1 parent c1b4db5 commit 3e4ca59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conan/api/conan_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@


class ConanAPI:
"""
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.
"""
def __init__(self, cache_folder=None):

version = sys.version_info
Expand Down Expand Up @@ -61,6 +66,9 @@ def __init__(self, cache_folder=None):
_check_conan_version(self)

def reinit(self):
"""
Reinitialize the Conan API. This is useful when the configuration changes.
"""
self.config.reinit()
self.remotes.reinit()
self.local.reinit()
Expand Down

0 comments on commit 3e4ca59

Please sign in to comment.