Skip to content

Commit 7e6211d

Browse files
authored
Merge pull request #4 from TransposeData/dev
1.0.0 final
2 parents 0e24dfa + 59602f7 commit 7e6211d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

docs/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ This will return an object on which you can call the following methods:
148148
"x_axis": "Time", // OPTIONAL: The name of the x-axis
149149
}
150150
```
151-
- ``type`` -> The method used to render the data to the plot. Can be either ``line`` or ``bar``.
151+
- ``type`` -> OPTIONAL: The method used to render the data to the plot. Can be either ``line`` or ``bar``.
152152
- ``smoothing`` -> OPTIONAL: The number of points to smooth the data with.
153153
- For ``line``, this will calculate a moving average of the data with a period of ``smoothing``.
154154
- For ``bar``, this will group and average the data over ``smoothing`` points.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
'requests',
4545
'plotly',
4646
'pandas',
47-
'kaleido'
47+
'python-dotenv',
48+
'kaleido',
4849
],
4950
)
5051

transpose/src/base.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ def __init__(self, api_key: str, verbose: bool=False) -> None:
2525
self.nft = NFT(self)
2626
self.block = Block(self)
2727
self.token = Token(self)
28+
29+
# deprecated in favor of the new API
30+
self.ENS = self.ens
31+
self.NFT = self.nft
32+
self.Block = self.block
33+
self.Token = self.token
2834

2935
def next(self) -> str:
3036
return self.perform_authorized_request(self._next_class_name, self._next)
3137

3238
# this can be renamed later. Pagination helper function to get many
33-
def bulk_request(self, endpoint_response: List, requests_per_second: int=None, results_to_fetch: int=999999999999):
39+
def bulk_request(self, endpoint_response: List, requests_per_second: int=None, results_to_fetch: int=999999999999) -> List:
3440
api_response_data = endpoint_response
3541

3642
while len(api_response_data) < results_to_fetch and self._next is not None:

0 commit comments

Comments
 (0)