Skip to content

Commit f33c5ad

Browse files
committed
Rename library to async
1 parent 2058aa8 commit f33c5ad

File tree

12 files changed

+42
-17
lines changed

12 files changed

+42
-17
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ignore = E203,E501,E731,W503,W605
88
import-order-style = google
99
# Packages added in this list should be added to the setup.cfg file as well
1010
application-import-names =
11-
cubejsclient
11+
cubejsclientasync
1212
exclude =
1313
*vendor*
1414
.venv

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# cubejsclient
1+
# cubejsclientasync
22

3-
[![](https://img.shields.io/pypi/v/cubejsclient.svg)](https://pypi.org/pypi/cubejsclient/) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
3+
[![](https://img.shields.io/pypi/v/cubejsclientasync.svg)](https://pypi.org/pypi/cubejsclientasync/) [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
44

55
Async Python Cube.js client
66

@@ -16,15 +16,15 @@ Table of Contents:
1616

1717
## Installation
1818

19-
cubejsclient requires Python 3.6 or above.
19+
cubejsclientasync requires Python 3.6 or above.
2020

2121
```bash
22-
pip install cubejsclient
22+
pip install cubejsclientasync
2323
```
2424

2525
## Development
2626

27-
To develop cubejsclient, install dependencies and enable the pre-commit hook:
27+
To develop cubejsclientasync, install dependencies and enable the pre-commit hook:
2828

2929
```bash
3030
pip install pre-commit poetry
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ def __init__(
2020
"""Initializer
2121
2222
Args:
23-
start_date: Start date for the absolute range
24-
end_date: End date for the absolute range
23+
start_date: Start date for the absolute range. Format `YYYY-MM-DD`
24+
or `YYYY-MM-DDTHH:mm:ss.SSS`.
25+
end_date: End date for the absolute range. Format `YYYY-MM-DD`
26+
or `YYYY-MM-DDTHH:mm:ss.SSS`.
2527
relative: Relative date range, e.g. "this month"
2628
2729
"""
@@ -134,12 +136,12 @@ def serialize(self) -> Dict[str, Any]:
134136
}
135137

136138

137-
class BooleanOperator:
139+
class BooleanExpression:
138140
"""Represents a boolean operator in a filter"""
139141

140142
operator: str
141143

142-
def __init__(self, *operands: Union["BooleanOperator", Filter]) -> None:
144+
def __init__(self, *operands: Union["BooleanExpression", Filter]) -> None:
143145
"""Initializer
144146
145147
Args:
@@ -158,13 +160,13 @@ def serialize(self) -> Dict[str, List[Any]]:
158160
return {self.operator: [o.serialize() for o in self.operands]}
159161

160162

161-
class Or(BooleanOperator):
163+
class Or(BooleanExpression):
162164
"""Boolean operator for `or`"""
163165

164166
operator = "or"
165167

166168

167-
class And(BooleanOperator):
169+
class And(BooleanExpression):
168170
"""Boolean operator for `and`"""
169171

170172
operator = "and"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poetry]
2-
name = "cubejsclient"
2+
name = "cubejsclientasync"
33
version = "0.1.0"
44
description = "Async Python Cube.js client"
55
authors = ["Jonathan Drake <[email protected]>"]

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ force_sort_within_sections=true
1010
include_trailing_comma=true
1111
known_standard_library=typing
1212
known_first_party=
13-
cubejsclient
13+
cubejsclientasync
1414
line_length=88
1515
multi_line_output=3
1616
no_lines_before=LOCALFOLDER

0 commit comments

Comments
 (0)