Skip to content

Commit

Permalink
[FIX] rename RecastAI class to Client
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRenvoise committed Mar 30, 2017
1 parent dc12623 commit 8751340
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Using the entire SDK:
```python
import recastai

client = recastai.RecastAI('YOUR_TOKEN')
client = recastai.Client('YOUR_TOKEN')
```

Extracting one single API:
Expand Down
4 changes: 2 additions & 2 deletions recastai/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding: utf-8

from .recastai import RecastAI
from .client import Client
from .apis import Connect, Request

__all__ = ['RecastAI', 'Connect', 'Request']
__all__ = ['Client', 'Connect', 'Request']
2 changes: 1 addition & 1 deletion recastai/recastai.py → recastai/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .apis import Connect, Request


class RecastAI():
class Client():
def __init__(self, token=None, language=None, proxy=None):
for api in [Connect, Request]:
setattr(self, api.__name__.lower(), api(token=token, language=language, proxy=proxy))

0 comments on commit 8751340

Please sign in to comment.