@marleena/trb-proto 1.0.34 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- Go — `gen/go`
|
|
6
6
|
- JavaScript / TypeScript (protobuf + gRPC-Web) — npm-пакет [`@marleena/trb-proto`](https://www.npmjs.com/package/@marleena/trb-proto)
|
|
7
|
+
- Python (protobuf + gRPC) — PyPI-пакет [`trb-proto`](https://pypi.org/project/trb-proto/)
|
|
7
8
|
|
|
8
9
|
## Генерация
|
|
9
10
|
|
|
@@ -32,6 +33,20 @@ const req = new MessageRequest();
|
|
|
32
33
|
req.setText('hello');
|
|
33
34
|
```
|
|
34
35
|
|
|
36
|
+
## Python
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install trb-proto
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from indicators import indicators_pb2 as pb
|
|
44
|
+
from indicators import indicators_pb2_grpc
|
|
45
|
+
|
|
46
|
+
stub = indicators_pb2_grpc.IndicatorsStub(channel)
|
|
47
|
+
stub.ListSupported(pb.ListSupportedRequest())
|
|
48
|
+
```
|
|
49
|
+
|
|
35
50
|
Сервисы:
|
|
36
51
|
|
|
37
52
|
Внешние контракты в `api/`: `api/tinvest`.
|
|
@@ -52,9 +67,19 @@ req.setText('hello');
|
|
|
52
67
|
|
|
53
68
|
## CI/CD
|
|
54
69
|
|
|
55
|
-
[Release](.github/workflows/release.yml) на коммит `v1.2.3` в `main`: npm (если версии ещё нет) и `POST /fetch/...` на [pkg.go.dev](https://pkg.go.dev/github.com/Mar1eena/trb_proto).
|
|
70
|
+
[Release](.github/workflows/release.yml) на коммит `v1.2.3` в `main`: npm (если версии ещё нет), PyPI `trb-proto` и `POST /fetch/...` на [pkg.go.dev](https://pkg.go.dev/github.com/Mar1eena/trb_proto).
|
|
71
|
+
|
|
72
|
+
Trusted Publisher: npm — GitHub `Mar1eena` / `TrB_proto` / `release.yml`; PyPI — [Pending publisher](https://pypi.org/manage/account/publishing/) для `trb-proto`:
|
|
73
|
+
|
|
74
|
+
| Поле | Значение |
|
|
75
|
+
|---|---|
|
|
76
|
+
| PyPI project name | `trb-proto` |
|
|
77
|
+
| Owner | `Mar1eena` |
|
|
78
|
+
| Repository | `TrB_proto` |
|
|
79
|
+
| Workflow name | `release.yml` |
|
|
80
|
+
| Environment name | *(оставить пустым)* |
|
|
56
81
|
|
|
57
|
-
|
|
82
|
+
Pending publisher нужен **до первого** `make rel`, если проекта `trb-proto` на PyPI ещё нет.
|
|
58
83
|
|
|
59
84
|
## Релиз
|
|
60
85
|
|