You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,31 +53,31 @@ masterdata-parser-example
53
53
Below you can find an explanation of each file. You can also change the name of the package from `masterdata_parser_example` to your preferred package name `<pkg-name>`.
54
54
55
55
In order to create your new parser, you have to:
56
-
1. Define a new class in `src/<pck-name>/parser.py` instead of `MasterdataParserExample`. We recommend naming it `PckName`.
57
-
2. Modify `src/<pck-name>/__init__.py` entry point variables:
56
+
1. Define a new class in `src/<pkg-name>/parser.py` instead of `MasterdataParserExample`. We recommend naming it `PkgName`.
57
+
2. Modify `src/<pkg-name>/__init__.py` entry point variables:
58
58
```python
59
-
from .parser importPckName
59
+
from .parser importPkgName
60
60
61
61
# Add more metadata if needed
62
-
<pck_name>_entry_point = {
63
-
"name": "PckName",
62
+
<pkg-name>_entry_point = {
63
+
"name": "PkgName",
64
64
"description": "A new parser for masterdata.",
65
-
"parser_class": PckName,
65
+
"parser_class": PkgName,
66
66
}
67
67
```
68
68
3. Modify the `pyproject.toml` line `[project.entry-points."bam.parsers"]` to the new entry point:
0 commit comments