-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat: add tui explorer
- Loading branch information
Showing
44 changed files
with
2,653 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.PHONY: isort black test run | ||
|
||
format: isort black | ||
|
||
isort: | ||
isort src/. | ||
|
||
black: | ||
poetry run black src | ||
|
||
test: | ||
pytest . | ||
|
||
console: | ||
textual console | ||
|
||
dev: | ||
TEXTUAL=devtools poetry run python src/main.py | ||
|
||
run: | ||
poetry run python src/main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# ibet-Prime BC-Explorer | ||
|
||
## Run | ||
|
||
### with container | ||
|
||
```bash | ||
> docker exec -it -e "TERM=xterm-256color" ibet-prime-app bash --login | ||
> apl@2e5a80e06fcb:/$ ibet-explorer --help | ||
|
||
Usage: ibet-explorer [OPTIONS] | ||
|
||
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ | ||
│ --url TEXT ibet-Prime server URL to connect [default: http://localhost:5000] │ | ||
│ --lot-size INTEGER Lot size to fetch Block Data list [default: 100] │ | ||
│ --install-completion [bash|zsh|fish|powershell|pwsh] Install completion for the specified shell. [default: None] │ | ||
│ --show-completion [bash|zsh|fish|powershell|pwsh] Show completion for the specified shell, to copy it or customize the installation. [default: None] │ | ||
│ --help Show this message and exit. │ | ||
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ | ||
``` | ||
|
||
- **URL**: ibet-Prime URL. | ||
- You can run this on pythonic way in local. | ||
|
||
### Poetry | ||
```bash | ||
> poetry install | ||
> poetry run python src/main.py --url http://localhost:5000 | ||
``` | ||
|
||
### Pip | ||
```bash | ||
> pip install -e ./ | ||
> python src/main.py --url http://localhost:5000 | ||
``` | ||
|
||
## Screenshots 👀 | ||
|
||
![query-setting](https://user-images.githubusercontent.com/15183665/222354993-0c11eedc-fb22-472a-8c9f-f9bc8be4d173.png) | ||
|
||
![block](https://user-images.githubusercontent.com/15183665/222355008-0c893524-2a80-4975-9c44-537649b11fc7.png) | ||
|
||
![transaction](https://user-images.githubusercontent.com/15183665/222355025-24b72685-8d27-48e5-9ea1-b265c4365629.png) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[tool.poetry] | ||
name = "ibet-prime-explorer" | ||
version = "0.1.0" | ||
description = "ibet-Prime Terminal UI for Block Chain Explorer" | ||
authors = ["BOOSTRY Co., Ltd. <dev@boostry.co.jp>"] | ||
readme = "README.md" | ||
packages = [ | ||
{ include = "src" }, | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "3.10.4" | ||
|
||
[tool.poetry.scripts] | ||
ibet-explorer = "src.main:app" | ||
|
||
[tool.mypy] | ||
python_version = "3.10" | ||
no_strict_optional = true | ||
ignore_missing_imports = true | ||
check_untyped_defs = true | ||
|
||
[tool.black] | ||
includes = "src" | ||
target-version = ['py310'] | ||
line-length = 120 | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Copyright BOOSTRY Co., Ltd. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
SPDX-License-Identifier: Apache-2.0 | ||
""" |
Oops, something went wrong.