-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clean] Turn the code into a proper python library
- Loading branch information
1 parent
f9424c6
commit aa47a1f
Showing
13 changed files
with
99 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
*egg | ||
*egg-info | ||
__pychache__ | ||
*pyc | ||
*~ | ||
build/ |
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,31 @@ | ||
# Dummy APDU Logger, Explained | ||
|
||
This project aims at parsing all kind of APDU exchange files, and displaying | ||
them in a understandable fashion. | ||
|
||
|
||
## Install | ||
|
||
From the top of the repo, given you have the right to install the package | ||
(either root or in a `virtualenv`): | ||
|
||
``` | ||
pip install . | ||
``` | ||
|
||
## Usage | ||
|
||
Once install, you should now have a `dale` command: | ||
|
||
``` | ||
$ dale -h | ||
usage: dale [-h] APDU_FILE | ||
Explicit logging of a list of APDUs | ||
positional arguments: | ||
APDU_FILE The file containing the list of APDUs | ||
optional arguments: | ||
-h, --help show this help message and exit | ||
``` |
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,10 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel", | ||
"protobuf>=3.19", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true |
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,41 @@ | ||
[metadata] | ||
name = dale | ||
version = 0.0.1 | ||
author = Ledger | ||
author_email = [email protected] | ||
description = Dummy APDU Logger, Explained | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/LedgerHQ/dale | ||
project_urls = | ||
Bug Tracker = https://github.com/LedgerHQ/dale/issues | ||
classifiers = | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.8 | ||
|
||
[options] | ||
package_dir= | ||
=src | ||
packages = find: | ||
include_package_data = True | ||
python_requires = >=3.6 | ||
install_requires= | ||
protobuf>=3.19 | ||
|
||
[options.packages.find] | ||
where=src | ||
exclude = | ||
tests | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
dale = dale.logger:main | ||
|
||
[options.extras_require] | ||
tests= | ||
pytest | ||
checkers= | ||
yapf | ||
toml | ||
flake8 | ||
mypy |
Empty file.
File renamed without changes.
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 @@ | ||
from .exchange import factory |
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
Empty file.
File renamed without changes.
File renamed without changes.
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