Skip to content

Commit

Permalink
Merge pull request #4 from fxnai/oop
Browse files Browse the repository at this point in the history
Migrate to OOP client
  • Loading branch information
olokobayusuf authored Nov 16, 2023
2 parents 4c0378b + a608c36 commit 2225d0b
Show file tree
Hide file tree
Showing 33 changed files with 1,128 additions and 1,105 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## 0.0.24
+ Added `Function` client class to replace functions on individual API types.
+ Refactored `Value.from_value` method to `fxn.predictions.from_value`.
+ Refactored `Value.to_value` method to `fxn.predictions.to_value`.
+ Changed `Parameter.default_value` field type to `Value`.
+ Removed `CloudPrediction` class. Use `Prediction` class instead.
+ Removed `EdgePrediction` class. Use `Prediction` class instead.

## 0.0.23
+ Added `AccessMode.Protected` enumeration member for working with protected predictors.
Expand Down
10 changes: 2 additions & 8 deletions fxn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
# Copyright © 2023 NatML Inc. All Rights Reserved.
#

from os import environ

# Define API URL and access key
api_url = environ.get("FXN_API_URL", "https://api.fxn.ai")
access_key: str = environ.get("FXN_ACCESS_KEY", None)

# Import everything
from .api import *
from .function import Function
from .types import *
from .version import __version__
40 changes: 0 additions & 40 deletions fxn/api/api.py

This file was deleted.

191 changes: 0 additions & 191 deletions fxn/api/prediction.py

This file was deleted.

Loading

0 comments on commit 2225d0b

Please sign in to comment.