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

Develop #7

Merged
merged 4 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,15 @@ jobs:
source $VENV
echo $CREDENTIALS_JSON | base64 -d > ./tests/test_creds.json
make test

#----------------------------------------------
# ------------ upload coverage -----------
#----------------------------------------------
- name: 📊 Upload coverage
if: runner.os == 'Linux'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pyrevolut auth-manual

```

Alternatively, you can use call the CLI via Python.
or equivalently

```bash

Expand All @@ -93,9 +93,32 @@ python -m pyrevolut auth-manual

Upon completion, you will have a `.json` file that you can use to authenticate your application.

Alternatively, in the event that you already have all your credential information stored, you can simply create a `.json` file with the following structure:

```json
{
"certificate": {
"public": "public-certificate-base64-encoded",
"private": "private-key-base64-encoded",
"expiration_dt": "2500-01-01T00:00:00Z"
},
"client_assert_jwt": {
"jwt": "client-assertion-jwt",
"expiration_dt": "2500-01-01T00:00:00Z"
},
"tokens": {
"access_token": "access-token",
"refresh_token": "refresh-token",
"token_type": "bearer",
"access_token_expiration_dt": "2020-01-01T17:22:42.934699Z",
"refresh_token_expiration_dt": "2500-01-01T00:00:00Z"
}
}
```

## API Support Status

The SDK currently supports the following APIs:
The wrapper currently supports the following APIs:

- [x] Accounts
- [x] Retrieve all accounts
Expand Down
85 changes: 47 additions & 38 deletions poetry.lock

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

60 changes: 30 additions & 30 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,41 @@ pyrevolut = "pyrevolut.cli.main:app"

[tool.poetry.dependencies]
python = "^3.11"
httpx = "^0.27.0"
pydantic = { extras = ["email"], version = "^2.7.1" }
pydantic-extra-types = "^2.7.0"
pycountry = "^23.12.11"
phonenumbers = "^8.13.36"
pendulum = "^3.0.0"
pyjwt = { extras = ["crypto"], version = "^2.8.0" }
cryptography = "^41.0.3"
authlib = "^1.3.0"
typer = "^0.12.3"
httpx = "0.*"
pydantic = { extras = ["email"], version = "2.*" }
pydantic-extra-types = "2.*"
pycountry = "23.*"
phonenumbers = "8.*"
pendulum = "3.*"
pyjwt = { extras = ["crypto"], version = "2.*" }
cryptography = "42.*"
authlib = "1.*"
typer = "0.*"

[tool.poetry.group.dev.dependencies]
pre-commit = "^3.7.0"
ipykernel = "^6.29.4"
commitizen = "^3.25.0"
pre-commit = "3.*"
ipykernel = "6.*"
commitizen = "3.*"

[tool.poetry.group.test.dependencies]
pytest-asyncio = "^0.21.0"
pytest = "^7.3.1"
pytest-xdist = { extras = ["psutil"], version = "^3.3.1" }
pytest-cov = "^4.1.0"
pytest-asyncio = "0.*"
pytest = "7.*"
pytest-xdist = { extras = ["psutil"], version = "3.*" }
pytest-cov = "4.*"
ruff = "*"
black = "^24.4.2"
pytest-sugar = "^0.9.7"
pytest-instafail = "^0.5.0"
pytest-profiling = "^1.7.0"
pytest-memray = "^1.5.0"
pytest-randomly = "^3.15.0"
pytest-clarity = "^1.0.1"
pytest-network = "^0.0.1"
pytest-resource-usage = "^1.0.0"
pytest-split = "^0.8.1"
pytest-env = "^1.1.3"
locust = "^2.18.1"
requests-toolbelt = "^1.0.0"
black = "24.*"
pytest-sugar = "0.*"
pytest-instafail = "0.*"
pytest-profiling = "1.*"
pytest-memray = "1.*"
pytest-randomly = "3.*"
pytest-clarity = "1.*"
pytest-network = "0.*"
pytest-resource-usage = "1.*"
pytest-split = "0.*"
pytest-env = "1.*"
locust = "2.*"
requests-toolbelt = "1.*"

[tool.pytest.ini_options]
pythonpath = ["."]
Expand Down
Loading