Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add credentials v2.1.1 and corresponding modules. #3

Merged
merged 20 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
8c9b6e6
feat: Change versions module structure to version supported structure…
oleksandr-bozbei-ew Aug 31, 2023
d88b68c
fix: Remove default date_to pagination filter which could cause wrong…
oleksandr-bozbei-ew Aug 31, 2023
a6b30c9
feat: Change structure of core endpoints to use different versioning;…
oleksandr-bozbei-ew Aug 31, 2023
9234b20
feat: Add credentials module support version v_2_1_1; update enums an…
oleksandr-bozbei-ew Aug 31, 2023
c3ae9d1
feat: Add api support for locations v_2_1_1
oleksandr-bozbei-ew Aug 31, 2023
d0ff84d
fix: remove typo
oleksandr-bozbei-ew Aug 31, 2023
4040af7
fix: Deepcopy location obj before changing it
oleksandr-bozbei-ew Aug 31, 2023
1a2daf2
fix: Add response in case evse wasn't found while patching.
oleksandr-bozbei-ew Aug 31, 2023
5f488e2
fix: Add invalid status response in case evse on connector add or upd…
oleksandr-bozbei-ew Aug 31, 2023
c76a273
feat: Change app initialization from only v_2_2_1 to support differen…
oleksandr-bozbei-ew Sep 1, 2023
b20a9a6
fix: tariff endpoint in v_2_2_1 wrong format
oleksandr-bozbei-ew Sep 1, 2023
e1c33af
test: fix broken testcases after the changes
oleksandr-bozbei-ew Sep 1, 2023
f517fd5
test: move v_2_2_1 tests to separate folder
oleksandr-bozbei-ew Sep 1, 2023
a46f875
test: move v_2_2_1 tests to separate folder
oleksandr-bozbei-ew Sep 1, 2023
fb4f54a
test: add versions module tests for version 2_1_1
oleksandr-bozbei-ew Sep 1, 2023
acb0029
test: Add testcases for credentials module v_2_1_1
oleksandr-bozbei-ew Sep 18, 2023
0764de0
test: add testcasese to locations module
oleksandr-bozbei-ew Sep 18, 2023
1064c38
docs: update README
oleksandr-bozbei-ew Sep 18, 2023
736adac
fix: Use only one return statement in location api module
oleksandr-bozbei-ew Sep 20, 2023
67955fb
fix: Add break statement
oleksandr-bozbei-ew Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ pytest = "*"
httpx = "*"
pydantic = "==1.10.12"
commit-helper = "*"
pytest-asyncio = "*"
140 changes: 79 additions & 61 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ Example: `http://127.0.0.1:8000/ocpi/docs/`
---

- [in progress] Add support for OCPI v2.1.1
- What's done so far:
- Add version, credentials and locations module;
- Add support for initializing v2.1.1 (It's possible to initialize only one version for one project);


## Related
Expand Down
2 changes: 1 addition & 1 deletion py_ocpi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Python Implementation of OCPI"""

__version__ = "2023.08.29"
__version__ = "2023.09.20"

from .core import enums, data_types
from .main import get_application
2 changes: 1 addition & 1 deletion py_ocpi/core/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_endpoints():

def pagination_filters(
date_from: datetime = Query(default=None),
date_to: datetime = Query(default=datetime.now()),
date_to: datetime = Query(default=None),
oleksandr-bozbei-ew marked this conversation as resolved.
Show resolved Hide resolved
offset: int = Query(default=0),
limit: int = Query(default=50),
):
Expand Down
Loading