Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ import os
os.environ["DATAMINT_API_KEY"] = "my_api_key"
```

### Method 3: APIHandler constructor
### Method 3: Api constructor

Specify API key in the |APIHandlerClass| constructor:
Specify API key in the Api constructor:

```python
from datamint import APIHandler
api = APIHandler(api_key='my_api_key')
from datamint import Api
api = Api(api_key='my_api_key')
```

## Tutorials
Expand All @@ -64,8 +64,9 @@ You can find example notebooks in the `notebooks` folder:

and example scripts in [examples](examples) folder:

- [Running an experiment for classification](examples/experiment_traintest_classifier.py)
- [Running an experiment for segmentation](examples/experiment_traintest_segmentation.py)
- [API usage examples](examples/api_usage.ipynb)
- [Project and entity usage](examples/project_entity_usage.ipynb)
- [Channels example](examples/channels_example.ipynb)

## Full documentation

Expand Down
2 changes: 2 additions & 0 deletions datamint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .dataset.dataset import DatamintDataset as Dataset
from .apihandler.api_handler import APIHandler
from .experiment import Experiment
from .api.client import Api
else:
import lazy_loader as lazy

Expand All @@ -19,6 +20,7 @@
"dataset": ['Dataset'],
"apihandler.api_handler": ["APIHandler"],
"experiment": ["Experiment"],
"api.client": ["Api"],
},
)

Expand Down
3 changes: 3 additions & 0 deletions datamint/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .client import Api

__all__ = ['Api']
Loading
Loading