Skip to content

Commit 15dc21e

Browse files
committed
📦 deps: remove pillow
1 parent 2726335 commit 15dc21e

File tree

6 files changed

+5
-13
lines changed

6 files changed

+5
-13
lines changed

‎docs/block.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The **Block Model** represents a single block. The **Block Model** follows the f
8686
| SDK Method | Endpoint URL | Returns |
8787
| ---------------------------------------------------------------------------------------------------------- | --------------------------------------- | ------------------- |
8888
| `block.transactions_by_hash(transaction_hashes)` | `GET /v0/block/transactions-by-hash` | `List[Transaction]` |
89-
| `block.transactions_by_account(account_address, occurred_after, occurred_before, direction, order, limit)` | `GET /v0/block/transactions-by-account` | `List[Transaction]` |
89+
| `block.transactions_by_account(account_address, direction, order, limit)` | `GET /v0/block/transactions-by-account` | `List[Transaction]` |
9090
| `block.transactions_by_block(block_number_above, block_number_below, order, limit)` | `GET /v0/block/transactions-by-block` | `List[Transaction]` |
9191
| `block.transactions_by_date(occurred_after, occurred_before, order, limit)` | `GET /v0/block/transactions-by-date` | `List[Transaction]` |
9292

‎requirements.txt‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
requests
2-
python-dotenv
3-
pillow
2+
python-dotenv

‎setup.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# version compliant with PEP440
1010
# https://peps.python.org/pep-0440/
11-
version='3.1.1',
11+
version='3.1.2',
1212

1313
# project meta
1414
long_description = long_description,
@@ -43,7 +43,6 @@
4343
install_requires=[
4444
'requests',
4545
'python-dotenv',
46-
'pillow'
4746
],
4847
)
4948

‎transpose/src/api/block/_transactions_by_account.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
def _transactions_by_account(
44
account_address: str = None,
5-
occurred_after: str or int='1970-01-01T00:00:00Z',
6-
occurred_before: str or int='2050-01-01T00:00:00Z',
75
direction: str = 'all',
86
order: str = 'asc',
97
limit: int = 10) -> str:
10-
base_url = '{}?account_address={}&occurred_after={}&occurred_before={}&transaction_direction={}&order={}&limit={}'.format(BLOCK_API_ENDPOINTS['transactions_by_account'], account_address, occurred_after, occurred_before, direction, order, limit)
8+
base_url = '{}?account_address={}&transaction_direction={}&order={}&limit={}'.format(BLOCK_API_ENDPOINTS['transactions_by_account'], account_address, direction, order, limit)
119

1210
return base_url

‎transpose/src/api/block/base.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,10 @@ def transactions_by_date(self,
9494
# https://api.transpose.io/v0/block/transactions-by-account
9595
def transactions_by_account(self,
9696
account_address: str = None,
97-
occurred_after: str or int='1970-01-01T00:00:00Z',
98-
occurred_before: str or int='2050-01-01T00:00:00Z',
9997
direction: str = 'all',
10098
order: str = 'asc',
10199
limit: int = 10) -> List[Transaction]:
102-
return self.super.perform_authorized_request(Transaction, _transactions_by_account(account_address=account_address, occurred_after=occurred_after, occurred_before=occurred_before, direction=direction, order=order, limit=limit))
100+
return self.super.perform_authorized_request(Transaction, _transactions_by_account(account_address=account_address, direction=direction, order=order, limit=limit))
103101

104102
# Get Logs by Transaction
105103
# https://api.transpose.io/v0/block/logs-by-transaction

‎transpose/src/util/models.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import base64
44

55
from typing import List
6-
from PIL import Image
7-
86

97
# add a .to_dict and .__dict__ method to the list base class
108
class list(list):

0 commit comments

Comments
 (0)