dhisana 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
dhisana/__init__.py ADDED
@@ -0,0 +1 @@
1
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)
@@ -0,0 +1 @@
1
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)
dhisana/cli/cli.py ADDED
@@ -0,0 +1,20 @@
1
+ import click
2
+ from .models import model_cli
3
+ from .datasets import dataset_cli
4
+ from .predictions import prediction_cli
5
+
6
+ @click.group()
7
+ def cli():
8
+ """Dhisana AI SDK CLI."""
9
+ pass
10
+
11
+ # Add command groups from the respective CLI files
12
+ cli.add_command(model_cli)
13
+ cli.add_command(dataset_cli)
14
+ cli.add_command(prediction_cli)
15
+
16
+ def main():
17
+ cli()
18
+
19
+ if __name__ == '__main__':
20
+ main()
@@ -0,0 +1,27 @@
1
+ import click
2
+
3
+ @click.group()
4
+ def dataset_cli():
5
+ """Commands for managing datasets."""
6
+ pass
7
+
8
+ @dataset_cli.command()
9
+ def list():
10
+ """List all datasets."""
11
+ # Example placeholder logic for listing datasets
12
+ click.echo("Datasets: dataset1, dataset2, dataset3")
13
+
14
+ @dataset_cli.command()
15
+ @click.argument('dataset_name')
16
+ @click.option('--file-path', required=True, help='Path to the dataset file')
17
+ def add(dataset_name, file_path):
18
+ """Add a new dataset."""
19
+ # Example placeholder logic for adding a dataset
20
+ click.echo(f"Dataset '{dataset_name}' has been added from '{file_path}'.")
21
+
22
+ @dataset_cli.command()
23
+ @click.argument('dataset_name')
24
+ def delete(dataset_name):
25
+ """Delete an existing dataset."""
26
+ # Example placeholder logic for deleting a dataset
27
+ click.echo(f"Dataset '{dataset_name}' has been deleted.")
dhisana/cli/models.py ADDED
@@ -0,0 +1,26 @@
1
+ import click
2
+
3
+ @click.group()
4
+ def model_cli():
5
+ """Commands for managing models."""
6
+ pass
7
+
8
+ @model_cli.command()
9
+ def list():
10
+ """List all available models."""
11
+ # Example placeholder logic for listing models
12
+ click.echo("Available models: model1, model2, model3")
13
+
14
+ @model_cli.command()
15
+ @click.argument('model_name')
16
+ def add(model_name):
17
+ """Add a new model."""
18
+ # Example placeholder logic for adding a model
19
+ click.echo(f"Model '{model_name}' has been added.")
20
+
21
+ @model_cli.command()
22
+ @click.argument('model_name')
23
+ def delete(model_name):
24
+ """Delete an existing model."""
25
+ # Example placeholder logic for deleting a model
26
+ click.echo(f"Model '{model_name}' has been deleted.")
@@ -0,0 +1,20 @@
1
+ import click
2
+
3
+ @click.group()
4
+ def prediction_cli():
5
+ """Commands for running predictions."""
6
+ pass
7
+
8
+ @prediction_cli.command()
9
+ @click.argument('model_name')
10
+ @click.argument('dataset_name')
11
+ def run(model_name, dataset_name):
12
+ """Run predictions using the specified model on the given dataset."""
13
+ # Example placeholder logic for running predictions
14
+ click.echo(f"Running predictions on '{dataset_name}' using model '{model_name}'.")
15
+
16
+ @prediction_cli.command()
17
+ def list():
18
+ """List all previous predictions."""
19
+ # Example placeholder logic for listing previous predictions
20
+ click.echo("Predictions: prediction1, prediction2")
@@ -0,0 +1 @@
1
+ __path__ = __import__('pkgutil').extend_path(__path__, __name__)