fusion44
382f8303f3
chore: update deps and fake blitz scripts
2025-05-06 09:16:46 +02:00
fusion44
bda5d565ee
fix: don't stop app status listener
2025-05-06 09:16:46 +02:00
fusion44
f1aa2107fd
refactor: code cleanup
...
- rename various keys
- update app status updater code to work like the app management code
- remove some unused code
refs #123
2025-05-06 09:16:46 +02:00
fusion44
1f491ed0a0
feat: implement (un)install celery task
...
refs #123
2025-05-06 09:16:46 +02:00
fusion44
de1594f7e4
refactor: nicer layout for app status cache code
2025-05-06 09:16:46 +02:00
fusion44
6bd875f16b
refactor: move app update code into its own file
2025-05-06 09:16:46 +02:00
fusion44
824fa62c4d
chore: small fixes and updates
...
- formatting
- small fix in a bitcoind model
- update the fake blitz scripts
- remove some dead code (app status sub)
2025-05-06 09:16:46 +02:00
fusion44
4e038e8fc7
feat: fetch app status via a celery task
...
This is a feature that allows to fetch the app status via a celery
task which stores the result in the Redis database and notifies the API
of the change. The API sends a notification to connected clients via the
SSE mechanism.
Using a background task allows to avoid crashing the whole API if the
script call fails.
The by default the cache is refreshed every 30 minutes. This can be
changed by setting the `BAPI_APP_STATUS_UPDATE_INTERVAL_MIN` environment
variable.
refs #123
2025-05-06 09:16:46 +02:00
fusion44
4a70d2ca36
feat: add error handling to get_redis helper func
...
refs #123
2025-05-06 09:16:46 +02:00
fusion44
2b98912796
feat: replace call_script func with better func
...
use exec_bash_command instead
refs #123
2025-05-06 09:16:46 +02:00
fusion44
e1f87a3e8b
feat: update fake blitz environment
2025-05-06 09:16:46 +02:00
fusion44
751687e60b
chore: run ruff format and isort
2025-05-06 09:16:46 +02:00
fusion44
e5ba965818
feat: update test script to include fake_blitz env
2025-05-06 09:16:46 +02:00
fusion44
8ee5a49892
feat: update get app status error handling code
...
refs #123
2025-05-06 09:16:46 +02:00
fusion44
691d5da6b9
feat: update formatting of errors sent to clients
...
refs #123
2025-05-06 09:16:46 +02:00
fusion44
ef9bfbefe4
feat: add supporting types for error handling
...
- add a result type similar to the Rust Result type from
https://github.com/rustedpy/result
- add a Report class to propagate error information back on the stack
with return types instead of exceptions
refs #123
2025-05-06 09:16:46 +02:00
fusion44
8b372ecb47
feat: make typos available to the devenv
2025-05-06 09:16:46 +02:00
dependabot[bot]
b4e9112b1f
chore(deps): bump h11 from 0.14.0 to 0.16.0
...
Bumps [h11](https://github.com/python-hyper/h11 ) from 0.14.0 to 0.16.0.
- [Commits](https://github.com/python-hyper/h11/compare/v0.14.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: h11
dependency-version: 0.16.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-25 20:22:28 +02:00
fusion44
a341b69373
feat: add fake local raspiblitz dev environment
2025-03-23 20:36:51 +01:00
dependabot[bot]
b10ef720eb
chore(deps): bump jinja2 from 3.1.4 to 3.1.6
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 3.1.4 to 3.1.6.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.6 )
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-23 17:47:13 +01:00
fusion44
25e4be8441
feat: make config loading more flexible
...
If the environment variable BAPI_ENV_PATH is set, the config system will
try to read configs from the given path instead of .env in pwd
If no file is found .env in pwd will be used as a fallback
Env variables will always override settings in .env files.
2025-03-23 17:43:39 +01:00
fusion44
76b3e5019b
feat: improve devenv config
2025-03-23 17:43:39 +01:00
fusion44
b52732ead9
chore: update dependencies
2025-03-23 17:43:39 +01:00
fusion44
befad5d139
feat: add a nix module
2025-03-23 17:43:39 +01:00
dependabot[bot]
d3abdc41f2
chore(deps): bump jinja2 from 3.1.4 to 3.1.5
...
Bumps [jinja2](https://github.com/pallets/jinja ) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/pallets/jinja/releases )
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.5 )
---
updated-dependencies:
- dependency-name: jinja2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-03-15 13:05:42 +01:00
fusion44
46285b9d47
feat: add a devenv.sh environment
2025-02-14 17:07:16 +01:00
fusion44
1127b60904
fix: only install AlbyHub when running a LND node
2024-12-18 14:04:54 +01:00
fusion44
81608cde0b
feat: add albyhub as a usable app
2024-12-17 09:33:02 +01:00
fusion44
149bd30b15
chore: update deps and flake file
2024-12-16 15:20:46 +01:00
fusion44
d3902e1c2b
chore: remove pre-commit
2024-10-06 15:01:58 +02:00
fusion44
803587180e
fix: result array index access
2024-10-06 14:18:01 +02:00
pre-commit-ci[bot]
0c73b78f47
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-10-06 14:18:01 +02:00
Christoph Stenglein
cf4ab3963c
remove ln_info_lite
2024-10-06 14:18:01 +02:00
Christoph Stenglein
408f432133
fix: send installed_app_status correctly for bitcoin only nodes
2024-10-06 11:42:00 +02:00
pre-commit-ci[bot]
fbeb8fc3aa
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.2...v0.5.4 )
2024-07-23 18:01:20 +02:00
pre-commit-ci[bot]
e9f69d3fa2
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 24.4.0 → 24.4.2](https://github.com/psf/black/compare/24.4.0...24.4.2 )
- [github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.5.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.7...v0.5.2 )
2024-07-21 17:19:54 +02:00
fusion44
d939ff07e5
chore: update dependencies
2024-07-21 17:11:31 +02:00
dependabot[bot]
30e10cdaee
chore(deps): bump certifi from 2024.2.2 to 2024.7.4
...
Bumps [certifi](https://github.com/certifi/python-certifi ) from 2024.2.2 to 2024.7.4.
- [Commits](https://github.com/certifi/python-certifi/compare/2024.02.02...2024.07.04 )
---
updated-dependencies:
- dependency-name: certifi
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-21 16:40:01 +02:00
dependabot[bot]
54465e2559
chore(deps): bump setuptools from 69.1.1 to 70.0.0
...
Bumps [setuptools](https://github.com/pypa/setuptools ) from 69.1.1 to 70.0.0.
- [Release notes](https://github.com/pypa/setuptools/releases )
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst )
- [Commits](https://github.com/pypa/setuptools/compare/v69.1.1...v70.0.0 )
---
updated-dependencies:
- dependency-name: setuptools
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-21 16:39:41 +02:00
dependabot[bot]
11f8d57f4e
chore(deps): bump aiohttp from 3.9.3 to 3.9.4
...
Bumps [aiohttp](https://github.com/aio-libs/aiohttp ) from 3.9.3 to 3.9.4.
- [Release notes](https://github.com/aio-libs/aiohttp/releases )
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst )
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.3...v3.9.4 )
---
updated-dependencies:
- dependency-name: aiohttp
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-21 12:58:56 +02:00
dependabot[bot]
abc4baacde
chore(deps): bump idna from 3.6 to 3.7
...
Bumps [idna](https://github.com/kjd/idna ) from 3.6 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases )
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst )
- [Commits](https://github.com/kjd/idna/compare/v3.6...v3.7 )
---
updated-dependencies:
- dependency-name: idna
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-21 12:58:20 +02:00
pre-commit-ci[bot]
f569044eec
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0 )
- [github.com/psf/black: 24.3.0 → 24.4.0](https://github.com/psf/black/compare/24.3.0...24.4.0 )
- [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.3.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.5...v0.3.7 )
2024-04-21 12:58:01 +02:00
dependabot[bot]
a8461ccd46
chore(deps-dev): bump black from 24.2.0 to 24.3.0
...
Bumps [black](https://github.com/psf/black ) from 24.2.0 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/24.2.0...24.3.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-06 21:07:56 +02:00
pre-commit-ci[bot]
3f22615e47
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-04-06 21:07:43 +02:00
pre-commit-ci[bot]
5cda932abc
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 24.2.0 → 24.3.0](https://github.com/psf/black/compare/24.2.0...24.3.0 )
- [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.1...v0.3.5 )
2024-04-06 21:07:43 +02:00
fusion44
b08e53b599
fix(lnd): catch when pay requests can't be decoded
...
refs #247
2024-03-10 21:16:26 +01:00
fusion44
f1b657b9a1
chore: update LND gRPC files
2024-03-10 18:32:24 +01:00
fusion44
62d3f3da9b
fix: code changes for pydantic 2.4
2024-03-10 07:57:38 +01:00
fusion44
c72f78a0be
fix: adapt to latest electrs script updates
...
refs #246
2024-02-25 19:03:04 +01:00
fusion44
9d589a19d7
feat: improve error handling warmup data gathering
...
refs #245
2024-02-25 09:52:17 +01:00