Documentation Index Fetch the complete documentation index at: https://www.truefoundry.com/llms.txt
Use this file to discover all available pages before exploring further.
Methods
Get an artifact by its ID. Parameters Returns Usage from truefoundry import TrueFoundry
client = TrueFoundry(
api_key = "YOUR_API_KEY" ,
base_url = "https://yourhost.com/path/to/api" ,
)
client.artifacts.get(
id = "id_value" ,
)
Delete an artifact by its ID. Parameters Returns Usage from truefoundry import TrueFoundry
client = TrueFoundry(
api_key = "YOUR_API_KEY" ,
base_url = "https://yourhost.com/path/to/api" ,
)
client.artifacts.delete(
id = "id_value" ,
)
List artifacts with optional filtering by FQN, ML Repo, name, or run ID. Parameters Fully qualified name to filter artifacts by (format: ’://’)
ID of the ML Repo to filter artifacts by
Name of the artifact to filter by
Number of artifacts to skip for pagination
Maximum number of artifacts to return
ID of the run to filter artifacts by
Whether to include artifacts that have no versions
Returns Usage from truefoundry import TrueFoundry
client = TrueFoundry(
api_key = "YOUR_API_KEY" ,
base_url = "https://yourhost.com/path/to/api" ,
)
client.artifacts.list(
fqn = "value" ,
ml_repo_id = "value" ,
name = "value" ,
offset = 10 ,
limit = 10 ,
run_id = "value" ,
include_empty_artifacts = "value" ,
)
# Iterate through results
for item in response:
print (item.name)
# Or paginate page by page
for page in response.iter_pages():
for item in page:
print (item.name)
Create or update an artifact version. Parameters Returns GetArtifactVersionResponse
GetArtifactVersionResponse
Usage from truefoundry import TrueFoundry
client = TrueFoundry(
api_key = "YOUR_API_KEY" ,
base_url = "https://yourhost.com/path/to/api" ,
)
client.artifacts.create_or_update(
manifest ={ "key" : "value" },
)
Get Artifact by FQN. Parameters Returns Usage from truefoundry import TrueFoundry
client = TrueFoundry(
api_key = "YOUR_API_KEY" ,
base_url = "https://yourhost.com/path/to/api" ,
)
client.artifacts.get_by_fqn(
fqn = "value" ,
)