trb-proto 1.0.37__tar.gz
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.
- trb_proto-1.0.37/LICENSE +21 -0
- trb_proto-1.0.37/PKG-INFO +111 -0
- trb_proto-1.0.37/README.md +94 -0
- trb_proto-1.0.37/gen/python/google/api/annotations_pb2.py +37 -0
- trb_proto-1.0.37/gen/python/google/api/annotations_pb2.pyi +8 -0
- trb_proto-1.0.37/gen/python/google/api/annotations_pb2_grpc.py +24 -0
- trb_proto-1.0.37/gen/python/google/api/field_behavior_pb2.py +38 -0
- trb_proto-1.0.37/gen/python/google/api/field_behavior_pb2.pyi +27 -0
- trb_proto-1.0.37/gen/python/google/api/field_behavior_pb2_grpc.py +24 -0
- trb_proto-1.0.37/gen/python/google/api/http_pb2.py +41 -0
- trb_proto-1.0.37/gen/python/google/api/http_pb2.pyi +47 -0
- trb_proto-1.0.37/gen/python/google/api/http_pb2_grpc.py +24 -0
- trb_proto-1.0.37/gen/python/indicators/__init__.py +0 -0
- trb_proto-1.0.37/gen/python/indicators/indicators_pb2.py +75 -0
- trb_proto-1.0.37/gen/python/indicators/indicators_pb2.pyi +121 -0
- trb_proto-1.0.37/gen/python/indicators/indicators_pb2_grpc.py +145 -0
- trb_proto-1.0.37/gen/python/trb_proto.egg-info/PKG-INFO +111 -0
- trb_proto-1.0.37/gen/python/trb_proto.egg-info/SOURCES.txt +21 -0
- trb_proto-1.0.37/gen/python/trb_proto.egg-info/dependency_links.txt +1 -0
- trb_proto-1.0.37/gen/python/trb_proto.egg-info/requires.txt +2 -0
- trb_proto-1.0.37/gen/python/trb_proto.egg-info/top_level.txt +2 -0
- trb_proto-1.0.37/pyproject.toml +28 -0
- trb_proto-1.0.37/setup.cfg +4 -0
trb_proto-1.0.37/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Анатолий
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: trb-proto
|
|
3
|
+
Version: 1.0.37
|
|
4
|
+
Summary: Generated protobuf/gRPC Python stubs for TrB services
|
|
5
|
+
Author: Mar1eena
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Mar1eena/TrB_proto
|
|
8
|
+
Project-URL: Repository, https://github.com/Mar1eena/TrB_proto
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: protobuf>=4.25.0
|
|
15
|
+
Requires-Dist: grpcio>=1.60.0
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# TrB proto
|
|
19
|
+
|
|
20
|
+
Контракты сервисов и сгенерированный код:
|
|
21
|
+
|
|
22
|
+
- Go — `gen/go`
|
|
23
|
+
- JavaScript / TypeScript (protobuf + gRPC-Web) — npm-пакет [`@marleena/trb-proto`](https://www.npmjs.com/package/@marleena/trb-proto)
|
|
24
|
+
- Python (protobuf + gRPC) — PyPI-пакет [`trb-proto`](https://pypi.org/project/trb-proto/)
|
|
25
|
+
|
|
26
|
+
## Генерация
|
|
27
|
+
|
|
28
|
+
Нужны `protoc` и плагины: `protoc-gen-go`, `protoc-gen-go-grpc`, `protoc-gen-grpc-gateway`, `protoc-gen-js`, `protoc-gen-grpc-web`.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
make gene
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Собирает Go, JS/TS и descriptor set. Google API-аннотации для JS генерируются отдельно, чтобы не попасть в `gen/go`.
|
|
35
|
+
|
|
36
|
+
Другие цели: `make desc`, `make buf`.
|
|
37
|
+
|
|
38
|
+
## npm
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install @marleena/trb-proto
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import { MessageRequest } from '@marleena/trb-proto/example/Example_pb';
|
|
46
|
+
import { exampleClient } from '@marleena/trb-proto/example/ExampleServiceClientPb';
|
|
47
|
+
|
|
48
|
+
const client = new exampleClient('https://api.example.com');
|
|
49
|
+
const req = new MessageRequest();
|
|
50
|
+
req.setText('hello');
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Python
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pip install trb-proto
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
from indicators import indicators_pb2 as pb
|
|
61
|
+
from indicators import indicators_pb2_grpc
|
|
62
|
+
|
|
63
|
+
stub = indicators_pb2_grpc.IndicatorsStub(channel)
|
|
64
|
+
stub.ListSupported(pb.ListSupportedRequest())
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Сервисы:
|
|
68
|
+
|
|
69
|
+
Внешние контракты в `api/`: `api/tinvest`.
|
|
70
|
+
|
|
71
|
+
Свои сервисы: `clickhouse`, `nats`, `postgresql`, `test`.
|
|
72
|
+
|
|
73
|
+
`clickhouse` — два proto: `admin.proto` (`trb.clickhouse.v1.ClickHouse_Admin`) и `clickhouse.proto` (`trb.clickhouse.v1.ClickHouse`).
|
|
74
|
+
|
|
75
|
+
`postgresql` — два proto: `admin.proto` (`trb.postgresql.v1.PostgreSQL_Admin`) и `postgresql.proto` (`trb.postgresql.v1.PostgreSQL`).
|
|
76
|
+
|
|
77
|
+
`postgresql` (`trb.postgresql.v1.PostgreSQL`) — цели планировщика: `ListSchedulerTargets`, `SyncSchedulerTargets`.
|
|
78
|
+
|
|
79
|
+
`PostgreSQL_Admin` — DDL, мониторинг и произвольные запросы: базы, схемы, таблицы, колонки, индексы, VACUUM/ANALYZE, процессы, блокировки.
|
|
80
|
+
|
|
81
|
+
`nats` (`trb.nats.v1.Nats`) — управление JetStream.
|
|
82
|
+
|
|
83
|
+
`test` (`trb.test.v1.Test`) — тестовый оркестратор.
|
|
84
|
+
|
|
85
|
+
## CI/CD
|
|
86
|
+
|
|
87
|
+
[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).
|
|
88
|
+
|
|
89
|
+
Trusted Publisher: npm — GitHub `Mar1eena` / `TrB_proto` / `release.yml`; PyPI — [Pending publisher](https://pypi.org/manage/account/publishing/) для `trb-proto`:
|
|
90
|
+
|
|
91
|
+
| Поле | Значение |
|
|
92
|
+
|---|---|
|
|
93
|
+
| PyPI project name | `trb-proto` |
|
|
94
|
+
| Owner | `Mar1eena` |
|
|
95
|
+
| Repository | `TrB_proto` |
|
|
96
|
+
| Workflow name | `release.yml` |
|
|
97
|
+
| Environment name | *(оставить пустым)* |
|
|
98
|
+
|
|
99
|
+
Pending publisher нужен **до первого** `make rel`, если проекта `trb-proto` на PyPI ещё нет.
|
|
100
|
+
|
|
101
|
+
## Релиз
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
make rel
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Собирает proto, поднимает patch-версию, коммитит все изменения с сообщением `v1.2.3` и пушит в `main`. Actions публикует npm и обновляет pkg.go.dev.
|
|
108
|
+
|
|
109
|
+
Другой шаг версии: `make rel PART=minor` или `PART=major`.
|
|
110
|
+
|
|
111
|
+
Для коммита нужны `user.name` и `user.email` в Git.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# TrB proto
|
|
2
|
+
|
|
3
|
+
Контракты сервисов и сгенерированный код:
|
|
4
|
+
|
|
5
|
+
- Go — `gen/go`
|
|
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/)
|
|
8
|
+
|
|
9
|
+
## Генерация
|
|
10
|
+
|
|
11
|
+
Нужны `protoc` и плагины: `protoc-gen-go`, `protoc-gen-go-grpc`, `protoc-gen-grpc-gateway`, `protoc-gen-js`, `protoc-gen-grpc-web`.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
make gene
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Собирает Go, JS/TS и descriptor set. Google API-аннотации для JS генерируются отдельно, чтобы не попасть в `gen/go`.
|
|
18
|
+
|
|
19
|
+
Другие цели: `make desc`, `make buf`.
|
|
20
|
+
|
|
21
|
+
## npm
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install @marleena/trb-proto
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { MessageRequest } from '@marleena/trb-proto/example/Example_pb';
|
|
29
|
+
import { exampleClient } from '@marleena/trb-proto/example/ExampleServiceClientPb';
|
|
30
|
+
|
|
31
|
+
const client = new exampleClient('https://api.example.com');
|
|
32
|
+
const req = new MessageRequest();
|
|
33
|
+
req.setText('hello');
|
|
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
|
+
|
|
50
|
+
Сервисы:
|
|
51
|
+
|
|
52
|
+
Внешние контракты в `api/`: `api/tinvest`.
|
|
53
|
+
|
|
54
|
+
Свои сервисы: `clickhouse`, `nats`, `postgresql`, `test`.
|
|
55
|
+
|
|
56
|
+
`clickhouse` — два proto: `admin.proto` (`trb.clickhouse.v1.ClickHouse_Admin`) и `clickhouse.proto` (`trb.clickhouse.v1.ClickHouse`).
|
|
57
|
+
|
|
58
|
+
`postgresql` — два proto: `admin.proto` (`trb.postgresql.v1.PostgreSQL_Admin`) и `postgresql.proto` (`trb.postgresql.v1.PostgreSQL`).
|
|
59
|
+
|
|
60
|
+
`postgresql` (`trb.postgresql.v1.PostgreSQL`) — цели планировщика: `ListSchedulerTargets`, `SyncSchedulerTargets`.
|
|
61
|
+
|
|
62
|
+
`PostgreSQL_Admin` — DDL, мониторинг и произвольные запросы: базы, схемы, таблицы, колонки, индексы, VACUUM/ANALYZE, процессы, блокировки.
|
|
63
|
+
|
|
64
|
+
`nats` (`trb.nats.v1.Nats`) — управление JetStream.
|
|
65
|
+
|
|
66
|
+
`test` (`trb.test.v1.Test`) — тестовый оркестратор.
|
|
67
|
+
|
|
68
|
+
## CI/CD
|
|
69
|
+
|
|
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 | *(оставить пустым)* |
|
|
81
|
+
|
|
82
|
+
Pending publisher нужен **до первого** `make rel`, если проекта `trb-proto` на PyPI ещё нет.
|
|
83
|
+
|
|
84
|
+
## Релиз
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
make rel
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Собирает proto, поднимает patch-версию, коммитит все изменения с сообщением `v1.2.3` и пушит в `main`. Actions публикует npm и обновляет pkg.go.dev.
|
|
91
|
+
|
|
92
|
+
Другой шаг версии: `make rel PART=minor` или `PART=major`.
|
|
93
|
+
|
|
94
|
+
Для коммита нужны `user.name` и `user.email` в Git.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: google/api/annotations.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'google/api/annotations.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.api import http_pb2 as google_dot_api_dot_http__pb2
|
|
26
|
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.annotations_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI'
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
from google.api import http_pb2 as _http_pb2
|
|
2
|
+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
|
4
|
+
from typing import ClassVar as _ClassVar
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
HTTP_FIELD_NUMBER: _ClassVar[int]
|
|
8
|
+
http: _descriptor.FieldDescriptor
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in google/api/annotations_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: google/api/field_behavior.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'google/api/field_behavior.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto*\xa6\x01\n\rFieldBehavior\x12\x1e\n\x1a\x46IELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRED\x10\x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\x12\r\n\tIMMUTABLE\x10\x05\x12\x12\n\x0eUNORDERED_LIST\x10\x06\x12\x15\n\x11NON_EMPTY_DEFAULT\x10\x07:Q\n\x0e\x66ield_behavior\x12\x1d.google.protobuf.FieldOptions\x18\x9c\x08 \x03(\x0e\x32\x19.google.api.FieldBehaviorBp\n\x0e\x63om.google.apiB\x12\x46ieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.field_behavior_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\016com.google.apiB\022FieldBehaviorProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI'
|
|
36
|
+
_globals['_FIELDBEHAVIOR']._serialized_start=82
|
|
37
|
+
_globals['_FIELDBEHAVIOR']._serialized_end=248
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
|
2
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
|
4
|
+
from typing import ClassVar as _ClassVar
|
|
5
|
+
|
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
|
+
|
|
8
|
+
class FieldBehavior(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
9
|
+
__slots__ = ()
|
|
10
|
+
FIELD_BEHAVIOR_UNSPECIFIED: _ClassVar[FieldBehavior]
|
|
11
|
+
OPTIONAL: _ClassVar[FieldBehavior]
|
|
12
|
+
REQUIRED: _ClassVar[FieldBehavior]
|
|
13
|
+
OUTPUT_ONLY: _ClassVar[FieldBehavior]
|
|
14
|
+
INPUT_ONLY: _ClassVar[FieldBehavior]
|
|
15
|
+
IMMUTABLE: _ClassVar[FieldBehavior]
|
|
16
|
+
UNORDERED_LIST: _ClassVar[FieldBehavior]
|
|
17
|
+
NON_EMPTY_DEFAULT: _ClassVar[FieldBehavior]
|
|
18
|
+
FIELD_BEHAVIOR_UNSPECIFIED: FieldBehavior
|
|
19
|
+
OPTIONAL: FieldBehavior
|
|
20
|
+
REQUIRED: FieldBehavior
|
|
21
|
+
OUTPUT_ONLY: FieldBehavior
|
|
22
|
+
INPUT_ONLY: FieldBehavior
|
|
23
|
+
IMMUTABLE: FieldBehavior
|
|
24
|
+
UNORDERED_LIST: FieldBehavior
|
|
25
|
+
NON_EMPTY_DEFAULT: FieldBehavior
|
|
26
|
+
FIELD_BEHAVIOR_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
field_behavior: _descriptor.FieldDescriptor
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in google/api/field_behavior_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: google/api/http.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'google/api/http.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15google/api/http.proto\x12\ngoogle.api\"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08\"\x81\x02\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12/\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x15\n\rresponse_body\x18\x0c \x01(\t\x12\x31\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleB\t\n\x07pattern\"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBg\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'google.api.http_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\016com.google.apiB\tHttpProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI'
|
|
35
|
+
_globals['_HTTP']._serialized_start=37
|
|
36
|
+
_globals['_HTTP']._serialized_end=121
|
|
37
|
+
_globals['_HTTPRULE']._serialized_start=124
|
|
38
|
+
_globals['_HTTPRULE']._serialized_end=381
|
|
39
|
+
_globals['_CUSTOMHTTPPATTERN']._serialized_start=383
|
|
40
|
+
_globals['_CUSTOMHTTPPATTERN']._serialized_end=430
|
|
41
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
5
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class Http(_message.Message):
|
|
10
|
+
__slots__ = ("rules", "fully_decode_reserved_expansion")
|
|
11
|
+
RULES_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
rules: _containers.RepeatedCompositeFieldContainer[HttpRule]
|
|
14
|
+
fully_decode_reserved_expansion: bool
|
|
15
|
+
def __init__(self, rules: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ..., fully_decode_reserved_expansion: bool = ...) -> None: ...
|
|
16
|
+
|
|
17
|
+
class HttpRule(_message.Message):
|
|
18
|
+
__slots__ = ("selector", "get", "put", "post", "delete", "patch", "custom", "body", "response_body", "additional_bindings")
|
|
19
|
+
SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
GET_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
PUT_FIELD_NUMBER: _ClassVar[int]
|
|
22
|
+
POST_FIELD_NUMBER: _ClassVar[int]
|
|
23
|
+
DELETE_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
PATCH_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
CUSTOM_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
BODY_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
RESPONSE_BODY_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
ADDITIONAL_BINDINGS_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
selector: str
|
|
30
|
+
get: str
|
|
31
|
+
put: str
|
|
32
|
+
post: str
|
|
33
|
+
delete: str
|
|
34
|
+
patch: str
|
|
35
|
+
custom: CustomHttpPattern
|
|
36
|
+
body: str
|
|
37
|
+
response_body: str
|
|
38
|
+
additional_bindings: _containers.RepeatedCompositeFieldContainer[HttpRule]
|
|
39
|
+
def __init__(self, selector: _Optional[str] = ..., get: _Optional[str] = ..., put: _Optional[str] = ..., post: _Optional[str] = ..., delete: _Optional[str] = ..., patch: _Optional[str] = ..., custom: _Optional[_Union[CustomHttpPattern, _Mapping]] = ..., body: _Optional[str] = ..., response_body: _Optional[str] = ..., additional_bindings: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ...) -> None: ...
|
|
40
|
+
|
|
41
|
+
class CustomHttpPattern(_message.Message):
|
|
42
|
+
__slots__ = ("kind", "path")
|
|
43
|
+
KIND_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
PATH_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
kind: str
|
|
46
|
+
path: str
|
|
47
|
+
def __init__(self, kind: _Optional[str] = ..., path: _Optional[str] = ...) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ ' but the generated code in google/api/http_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: indicators/indicators.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'indicators/indicators.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
26
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bindicators/indicators.proto\x12\x11trb.indicators.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"z\n\x06\x43\x61ndle\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04open\x18\x02 \x01(\x01\x12\x0c\n\x04high\x18\x03 \x01(\x01\x12\x0b\n\x03low\x18\x04 \x01(\x01\x12\r\n\x05\x63lose\x18\x05 \x01(\x01\x12\x0e\n\x06volume\x18\x06 \x01(\x01\"\xda\x01\n\x0e\x43omputeRequest\x12.\n\x04type\x18\x01 \x01(\x0e\x32 .trb.indicators.v1.IndicatorType\x12*\n\x07\x63\x61ndles\x18\x02 \x03(\x0b\x32\x19.trb.indicators.v1.Candle\x12=\n\x06params\x18\x03 \x03(\x0b\x32-.trb.indicators.v1.ComputeRequest.ParamsEntry\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\"\xa8\x01\n\x0eIndicatorPoint\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x06values\x18\x02 \x03(\x0b\x32-.trb.indicators.v1.IndicatorPoint.ValuesEntry\x1a-\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\"\xe3\x01\n\x0f\x43omputeResponse\x12.\n\x04type\x18\x01 \x01(\x0e\x32 .trb.indicators.v1.IndicatorType\x12>\n\x06params\x18\x02 \x03(\x0b\x32..trb.indicators.v1.ComputeResponse.ParamsEntry\x12\x31\n\x06points\x18\x03 \x03(\x0b\x32!.trb.indicators.v1.IndicatorPoint\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\"\xe2\x01\n\rIndicatorInfo\x12.\n\x04type\x18\x01 \x01(\x0e\x32 .trb.indicators.v1.IndicatorType\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08min_bars\x18\x03 \x01(\x05\x12K\n\x0e\x64\x65\x66\x61ult_params\x18\x04 \x03(\x0b\x32\x33.trb.indicators.v1.IndicatorInfo.DefaultParamsEntry\x1a\x34\n\x12\x44\x65\x66\x61ultParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\"\x16\n\x14ListSupportedRequest\"M\n\x15ListSupportedResponse\x12\x34\n\nindicators\x18\x01 \x03(\x0b\x32 .trb.indicators.v1.IndicatorInfo*\xa7\x01\n\rIndicatorType\x12\x1e\n\x1aINDICATOR_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12INDICATOR_TYPE_RSI\x10\x01\x12\x16\n\x12INDICATOR_TYPE_SMA\x10\x02\x12\x16\n\x12INDICATOR_TYPE_EMA\x10\x03\x12\x17\n\x13INDICATOR_TYPE_MACD\x10\x04\x12\x15\n\x11INDICATOR_TYPE_BB\x10\x05\x32\xad\x02\n\nIndicators\x12\x82\x01\n\x07\x43ompute\x12!.trb.indicators.v1.ComputeRequest\x1a\".trb.indicators.v1.ComputeResponse\"0\x82\xd3\xe4\x93\x02*\"\x16/v1/indicators/compute:\x01*Z\r\"\x08/Compute:\x01*\x12\x99\x01\n\rListSupported\x12\'.trb.indicators.v1.ListSupportedRequest\x1a(.trb.indicators.v1.ListSupportedResponse\"5\x82\xd3\xe4\x93\x02/\x12\x18/v1/indicators/supportedZ\x13\"\x0e/ListSupported:\x01*B<Z:github.com/Mar1eena/trb_proto/gen/go/indicators;indicatorsb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'indicators.indicators_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z:github.com/Mar1eena/trb_proto/gen/go/indicators;indicators'
|
|
37
|
+
_globals['_COMPUTEREQUEST_PARAMSENTRY']._loaded_options = None
|
|
38
|
+
_globals['_COMPUTEREQUEST_PARAMSENTRY']._serialized_options = b'8\001'
|
|
39
|
+
_globals['_INDICATORPOINT_VALUESENTRY']._loaded_options = None
|
|
40
|
+
_globals['_INDICATORPOINT_VALUESENTRY']._serialized_options = b'8\001'
|
|
41
|
+
_globals['_COMPUTERESPONSE_PARAMSENTRY']._loaded_options = None
|
|
42
|
+
_globals['_COMPUTERESPONSE_PARAMSENTRY']._serialized_options = b'8\001'
|
|
43
|
+
_globals['_INDICATORINFO_DEFAULTPARAMSENTRY']._loaded_options = None
|
|
44
|
+
_globals['_INDICATORINFO_DEFAULTPARAMSENTRY']._serialized_options = b'8\001'
|
|
45
|
+
_globals['_INDICATORS'].methods_by_name['Compute']._loaded_options = None
|
|
46
|
+
_globals['_INDICATORS'].methods_by_name['Compute']._serialized_options = b'\202\323\344\223\002*\"\026/v1/indicators/compute:\001*Z\r\"\010/Compute:\001*'
|
|
47
|
+
_globals['_INDICATORS'].methods_by_name['ListSupported']._loaded_options = None
|
|
48
|
+
_globals['_INDICATORS'].methods_by_name['ListSupported']._serialized_options = b'\202\323\344\223\002/\022\030/v1/indicators/supportedZ\023\"\016/ListSupported:\001*'
|
|
49
|
+
_globals['_INDICATORTYPE']._serialized_start=1192
|
|
50
|
+
_globals['_INDICATORTYPE']._serialized_end=1359
|
|
51
|
+
_globals['_CANDLE']._serialized_start=113
|
|
52
|
+
_globals['_CANDLE']._serialized_end=235
|
|
53
|
+
_globals['_COMPUTEREQUEST']._serialized_start=238
|
|
54
|
+
_globals['_COMPUTEREQUEST']._serialized_end=456
|
|
55
|
+
_globals['_COMPUTEREQUEST_PARAMSENTRY']._serialized_start=411
|
|
56
|
+
_globals['_COMPUTEREQUEST_PARAMSENTRY']._serialized_end=456
|
|
57
|
+
_globals['_INDICATORPOINT']._serialized_start=459
|
|
58
|
+
_globals['_INDICATORPOINT']._serialized_end=627
|
|
59
|
+
_globals['_INDICATORPOINT_VALUESENTRY']._serialized_start=582
|
|
60
|
+
_globals['_INDICATORPOINT_VALUESENTRY']._serialized_end=627
|
|
61
|
+
_globals['_COMPUTERESPONSE']._serialized_start=630
|
|
62
|
+
_globals['_COMPUTERESPONSE']._serialized_end=857
|
|
63
|
+
_globals['_COMPUTERESPONSE_PARAMSENTRY']._serialized_start=411
|
|
64
|
+
_globals['_COMPUTERESPONSE_PARAMSENTRY']._serialized_end=456
|
|
65
|
+
_globals['_INDICATORINFO']._serialized_start=860
|
|
66
|
+
_globals['_INDICATORINFO']._serialized_end=1086
|
|
67
|
+
_globals['_INDICATORINFO_DEFAULTPARAMSENTRY']._serialized_start=1034
|
|
68
|
+
_globals['_INDICATORINFO_DEFAULTPARAMSENTRY']._serialized_end=1086
|
|
69
|
+
_globals['_LISTSUPPORTEDREQUEST']._serialized_start=1088
|
|
70
|
+
_globals['_LISTSUPPORTEDREQUEST']._serialized_end=1110
|
|
71
|
+
_globals['_LISTSUPPORTEDRESPONSE']._serialized_start=1112
|
|
72
|
+
_globals['_LISTSUPPORTEDRESPONSE']._serialized_end=1189
|
|
73
|
+
_globals['_INDICATORS']._serialized_start=1362
|
|
74
|
+
_globals['_INDICATORS']._serialized_end=1663
|
|
75
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from google.api import annotations_pb2 as _annotations_pb2
|
|
4
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
5
|
+
from google.protobuf.internal import containers as _containers
|
|
6
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
10
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
11
|
+
|
|
12
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
13
|
+
|
|
14
|
+
class IndicatorType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
15
|
+
__slots__ = ()
|
|
16
|
+
INDICATOR_TYPE_UNSPECIFIED: _ClassVar[IndicatorType]
|
|
17
|
+
INDICATOR_TYPE_RSI: _ClassVar[IndicatorType]
|
|
18
|
+
INDICATOR_TYPE_SMA: _ClassVar[IndicatorType]
|
|
19
|
+
INDICATOR_TYPE_EMA: _ClassVar[IndicatorType]
|
|
20
|
+
INDICATOR_TYPE_MACD: _ClassVar[IndicatorType]
|
|
21
|
+
INDICATOR_TYPE_BB: _ClassVar[IndicatorType]
|
|
22
|
+
INDICATOR_TYPE_UNSPECIFIED: IndicatorType
|
|
23
|
+
INDICATOR_TYPE_RSI: IndicatorType
|
|
24
|
+
INDICATOR_TYPE_SMA: IndicatorType
|
|
25
|
+
INDICATOR_TYPE_EMA: IndicatorType
|
|
26
|
+
INDICATOR_TYPE_MACD: IndicatorType
|
|
27
|
+
INDICATOR_TYPE_BB: IndicatorType
|
|
28
|
+
|
|
29
|
+
class Candle(_message.Message):
|
|
30
|
+
__slots__ = ("time", "open", "high", "low", "close", "volume")
|
|
31
|
+
TIME_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
OPEN_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
HIGH_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
LOW_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
CLOSE_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
VOLUME_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
time: _timestamp_pb2.Timestamp
|
|
38
|
+
open: float
|
|
39
|
+
high: float
|
|
40
|
+
low: float
|
|
41
|
+
close: float
|
|
42
|
+
volume: float
|
|
43
|
+
def __init__(self, time: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., open: _Optional[float] = ..., high: _Optional[float] = ..., low: _Optional[float] = ..., close: _Optional[float] = ..., volume: _Optional[float] = ...) -> None: ...
|
|
44
|
+
|
|
45
|
+
class ComputeRequest(_message.Message):
|
|
46
|
+
__slots__ = ("type", "candles", "params")
|
|
47
|
+
class ParamsEntry(_message.Message):
|
|
48
|
+
__slots__ = ("key", "value")
|
|
49
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
key: str
|
|
52
|
+
value: float
|
|
53
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[float] = ...) -> None: ...
|
|
54
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
CANDLES_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
type: IndicatorType
|
|
58
|
+
candles: _containers.RepeatedCompositeFieldContainer[Candle]
|
|
59
|
+
params: _containers.ScalarMap[str, float]
|
|
60
|
+
def __init__(self, type: _Optional[_Union[IndicatorType, str]] = ..., candles: _Optional[_Iterable[_Union[Candle, _Mapping]]] = ..., params: _Optional[_Mapping[str, float]] = ...) -> None: ...
|
|
61
|
+
|
|
62
|
+
class IndicatorPoint(_message.Message):
|
|
63
|
+
__slots__ = ("time", "values")
|
|
64
|
+
class ValuesEntry(_message.Message):
|
|
65
|
+
__slots__ = ("key", "value")
|
|
66
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
key: str
|
|
69
|
+
value: float
|
|
70
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[float] = ...) -> None: ...
|
|
71
|
+
TIME_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
VALUES_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
time: _timestamp_pb2.Timestamp
|
|
74
|
+
values: _containers.ScalarMap[str, float]
|
|
75
|
+
def __init__(self, time: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., values: _Optional[_Mapping[str, float]] = ...) -> None: ...
|
|
76
|
+
|
|
77
|
+
class ComputeResponse(_message.Message):
|
|
78
|
+
__slots__ = ("type", "params", "points")
|
|
79
|
+
class ParamsEntry(_message.Message):
|
|
80
|
+
__slots__ = ("key", "value")
|
|
81
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
+
key: str
|
|
84
|
+
value: float
|
|
85
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[float] = ...) -> None: ...
|
|
86
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
87
|
+
PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
POINTS_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
type: IndicatorType
|
|
90
|
+
params: _containers.ScalarMap[str, float]
|
|
91
|
+
points: _containers.RepeatedCompositeFieldContainer[IndicatorPoint]
|
|
92
|
+
def __init__(self, type: _Optional[_Union[IndicatorType, str]] = ..., params: _Optional[_Mapping[str, float]] = ..., points: _Optional[_Iterable[_Union[IndicatorPoint, _Mapping]]] = ...) -> None: ...
|
|
93
|
+
|
|
94
|
+
class IndicatorInfo(_message.Message):
|
|
95
|
+
__slots__ = ("type", "name", "min_bars", "default_params")
|
|
96
|
+
class DefaultParamsEntry(_message.Message):
|
|
97
|
+
__slots__ = ("key", "value")
|
|
98
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
+
key: str
|
|
101
|
+
value: float
|
|
102
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[float] = ...) -> None: ...
|
|
103
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
MIN_BARS_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
DEFAULT_PARAMS_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
+
type: IndicatorType
|
|
108
|
+
name: str
|
|
109
|
+
min_bars: int
|
|
110
|
+
default_params: _containers.ScalarMap[str, float]
|
|
111
|
+
def __init__(self, type: _Optional[_Union[IndicatorType, str]] = ..., name: _Optional[str] = ..., min_bars: _Optional[int] = ..., default_params: _Optional[_Mapping[str, float]] = ...) -> None: ...
|
|
112
|
+
|
|
113
|
+
class ListSupportedRequest(_message.Message):
|
|
114
|
+
__slots__ = ()
|
|
115
|
+
def __init__(self) -> None: ...
|
|
116
|
+
|
|
117
|
+
class ListSupportedResponse(_message.Message):
|
|
118
|
+
__slots__ = ("indicators",)
|
|
119
|
+
INDICATORS_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
indicators: _containers.RepeatedCompositeFieldContainer[IndicatorInfo]
|
|
121
|
+
def __init__(self, indicators: _Optional[_Iterable[_Union[IndicatorInfo, _Mapping]]] = ...) -> None: ...
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from indicators import indicators_pb2 as indicators_dot_indicators__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.80.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in indicators/indicators_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class IndicatorsStub(object):
|
|
29
|
+
"""Indicators — расчёт технических индикаторов по OHLCV-свечам (TA-Lib).
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel):
|
|
33
|
+
"""Constructor.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
channel: A grpc.Channel.
|
|
37
|
+
"""
|
|
38
|
+
self.Compute = channel.unary_unary(
|
|
39
|
+
'/trb.indicators.v1.Indicators/Compute',
|
|
40
|
+
request_serializer=indicators_dot_indicators__pb2.ComputeRequest.SerializeToString,
|
|
41
|
+
response_deserializer=indicators_dot_indicators__pb2.ComputeResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
self.ListSupported = channel.unary_unary(
|
|
44
|
+
'/trb.indicators.v1.Indicators/ListSupported',
|
|
45
|
+
request_serializer=indicators_dot_indicators__pb2.ListSupportedRequest.SerializeToString,
|
|
46
|
+
response_deserializer=indicators_dot_indicators__pb2.ListSupportedResponse.FromString,
|
|
47
|
+
_registered_method=True)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class IndicatorsServicer(object):
|
|
51
|
+
"""Indicators — расчёт технических индикаторов по OHLCV-свечам (TA-Lib).
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
def Compute(self, request, context):
|
|
55
|
+
"""Compute считает индикатор по переданным свечам (от старых к новым).
|
|
56
|
+
"""
|
|
57
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
58
|
+
context.set_details('Method not implemented!')
|
|
59
|
+
raise NotImplementedError('Method not implemented!')
|
|
60
|
+
|
|
61
|
+
def ListSupported(self, request, context):
|
|
62
|
+
"""ListSupported возвращает список поддерживаемых индикаторов и параметров по умолчанию.
|
|
63
|
+
"""
|
|
64
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
65
|
+
context.set_details('Method not implemented!')
|
|
66
|
+
raise NotImplementedError('Method not implemented!')
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def add_IndicatorsServicer_to_server(servicer, server):
|
|
70
|
+
rpc_method_handlers = {
|
|
71
|
+
'Compute': grpc.unary_unary_rpc_method_handler(
|
|
72
|
+
servicer.Compute,
|
|
73
|
+
request_deserializer=indicators_dot_indicators__pb2.ComputeRequest.FromString,
|
|
74
|
+
response_serializer=indicators_dot_indicators__pb2.ComputeResponse.SerializeToString,
|
|
75
|
+
),
|
|
76
|
+
'ListSupported': grpc.unary_unary_rpc_method_handler(
|
|
77
|
+
servicer.ListSupported,
|
|
78
|
+
request_deserializer=indicators_dot_indicators__pb2.ListSupportedRequest.FromString,
|
|
79
|
+
response_serializer=indicators_dot_indicators__pb2.ListSupportedResponse.SerializeToString,
|
|
80
|
+
),
|
|
81
|
+
}
|
|
82
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
83
|
+
'trb.indicators.v1.Indicators', rpc_method_handlers)
|
|
84
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
85
|
+
server.add_registered_method_handlers('trb.indicators.v1.Indicators', rpc_method_handlers)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
# This class is part of an EXPERIMENTAL API.
|
|
89
|
+
class Indicators(object):
|
|
90
|
+
"""Indicators — расчёт технических индикаторов по OHLCV-свечам (TA-Lib).
|
|
91
|
+
"""
|
|
92
|
+
|
|
93
|
+
@staticmethod
|
|
94
|
+
def Compute(request,
|
|
95
|
+
target,
|
|
96
|
+
options=(),
|
|
97
|
+
channel_credentials=None,
|
|
98
|
+
call_credentials=None,
|
|
99
|
+
insecure=False,
|
|
100
|
+
compression=None,
|
|
101
|
+
wait_for_ready=None,
|
|
102
|
+
timeout=None,
|
|
103
|
+
metadata=None):
|
|
104
|
+
return grpc.experimental.unary_unary(
|
|
105
|
+
request,
|
|
106
|
+
target,
|
|
107
|
+
'/trb.indicators.v1.Indicators/Compute',
|
|
108
|
+
indicators_dot_indicators__pb2.ComputeRequest.SerializeToString,
|
|
109
|
+
indicators_dot_indicators__pb2.ComputeResponse.FromString,
|
|
110
|
+
options,
|
|
111
|
+
channel_credentials,
|
|
112
|
+
insecure,
|
|
113
|
+
call_credentials,
|
|
114
|
+
compression,
|
|
115
|
+
wait_for_ready,
|
|
116
|
+
timeout,
|
|
117
|
+
metadata,
|
|
118
|
+
_registered_method=True)
|
|
119
|
+
|
|
120
|
+
@staticmethod
|
|
121
|
+
def ListSupported(request,
|
|
122
|
+
target,
|
|
123
|
+
options=(),
|
|
124
|
+
channel_credentials=None,
|
|
125
|
+
call_credentials=None,
|
|
126
|
+
insecure=False,
|
|
127
|
+
compression=None,
|
|
128
|
+
wait_for_ready=None,
|
|
129
|
+
timeout=None,
|
|
130
|
+
metadata=None):
|
|
131
|
+
return grpc.experimental.unary_unary(
|
|
132
|
+
request,
|
|
133
|
+
target,
|
|
134
|
+
'/trb.indicators.v1.Indicators/ListSupported',
|
|
135
|
+
indicators_dot_indicators__pb2.ListSupportedRequest.SerializeToString,
|
|
136
|
+
indicators_dot_indicators__pb2.ListSupportedResponse.FromString,
|
|
137
|
+
options,
|
|
138
|
+
channel_credentials,
|
|
139
|
+
insecure,
|
|
140
|
+
call_credentials,
|
|
141
|
+
compression,
|
|
142
|
+
wait_for_ready,
|
|
143
|
+
timeout,
|
|
144
|
+
metadata,
|
|
145
|
+
_registered_method=True)
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: trb-proto
|
|
3
|
+
Version: 1.0.37
|
|
4
|
+
Summary: Generated protobuf/gRPC Python stubs for TrB services
|
|
5
|
+
Author: Mar1eena
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Mar1eena/TrB_proto
|
|
8
|
+
Project-URL: Repository, https://github.com/Mar1eena/TrB_proto
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: protobuf>=4.25.0
|
|
15
|
+
Requires-Dist: grpcio>=1.60.0
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# TrB proto
|
|
19
|
+
|
|
20
|
+
Контракты сервисов и сгенерированный код:
|
|
21
|
+
|
|
22
|
+
- Go — `gen/go`
|
|
23
|
+
- JavaScript / TypeScript (protobuf + gRPC-Web) — npm-пакет [`@marleena/trb-proto`](https://www.npmjs.com/package/@marleena/trb-proto)
|
|
24
|
+
- Python (protobuf + gRPC) — PyPI-пакет [`trb-proto`](https://pypi.org/project/trb-proto/)
|
|
25
|
+
|
|
26
|
+
## Генерация
|
|
27
|
+
|
|
28
|
+
Нужны `protoc` и плагины: `protoc-gen-go`, `protoc-gen-go-grpc`, `protoc-gen-grpc-gateway`, `protoc-gen-js`, `protoc-gen-grpc-web`.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
make gene
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Собирает Go, JS/TS и descriptor set. Google API-аннотации для JS генерируются отдельно, чтобы не попасть в `gen/go`.
|
|
35
|
+
|
|
36
|
+
Другие цели: `make desc`, `make buf`.
|
|
37
|
+
|
|
38
|
+
## npm
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install @marleena/trb-proto
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import { MessageRequest } from '@marleena/trb-proto/example/Example_pb';
|
|
46
|
+
import { exampleClient } from '@marleena/trb-proto/example/ExampleServiceClientPb';
|
|
47
|
+
|
|
48
|
+
const client = new exampleClient('https://api.example.com');
|
|
49
|
+
const req = new MessageRequest();
|
|
50
|
+
req.setText('hello');
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Python
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pip install trb-proto
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```python
|
|
60
|
+
from indicators import indicators_pb2 as pb
|
|
61
|
+
from indicators import indicators_pb2_grpc
|
|
62
|
+
|
|
63
|
+
stub = indicators_pb2_grpc.IndicatorsStub(channel)
|
|
64
|
+
stub.ListSupported(pb.ListSupportedRequest())
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Сервисы:
|
|
68
|
+
|
|
69
|
+
Внешние контракты в `api/`: `api/tinvest`.
|
|
70
|
+
|
|
71
|
+
Свои сервисы: `clickhouse`, `nats`, `postgresql`, `test`.
|
|
72
|
+
|
|
73
|
+
`clickhouse` — два proto: `admin.proto` (`trb.clickhouse.v1.ClickHouse_Admin`) и `clickhouse.proto` (`trb.clickhouse.v1.ClickHouse`).
|
|
74
|
+
|
|
75
|
+
`postgresql` — два proto: `admin.proto` (`trb.postgresql.v1.PostgreSQL_Admin`) и `postgresql.proto` (`trb.postgresql.v1.PostgreSQL`).
|
|
76
|
+
|
|
77
|
+
`postgresql` (`trb.postgresql.v1.PostgreSQL`) — цели планировщика: `ListSchedulerTargets`, `SyncSchedulerTargets`.
|
|
78
|
+
|
|
79
|
+
`PostgreSQL_Admin` — DDL, мониторинг и произвольные запросы: базы, схемы, таблицы, колонки, индексы, VACUUM/ANALYZE, процессы, блокировки.
|
|
80
|
+
|
|
81
|
+
`nats` (`trb.nats.v1.Nats`) — управление JetStream.
|
|
82
|
+
|
|
83
|
+
`test` (`trb.test.v1.Test`) — тестовый оркестратор.
|
|
84
|
+
|
|
85
|
+
## CI/CD
|
|
86
|
+
|
|
87
|
+
[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).
|
|
88
|
+
|
|
89
|
+
Trusted Publisher: npm — GitHub `Mar1eena` / `TrB_proto` / `release.yml`; PyPI — [Pending publisher](https://pypi.org/manage/account/publishing/) для `trb-proto`:
|
|
90
|
+
|
|
91
|
+
| Поле | Значение |
|
|
92
|
+
|---|---|
|
|
93
|
+
| PyPI project name | `trb-proto` |
|
|
94
|
+
| Owner | `Mar1eena` |
|
|
95
|
+
| Repository | `TrB_proto` |
|
|
96
|
+
| Workflow name | `release.yml` |
|
|
97
|
+
| Environment name | *(оставить пустым)* |
|
|
98
|
+
|
|
99
|
+
Pending publisher нужен **до первого** `make rel`, если проекта `trb-proto` на PyPI ещё нет.
|
|
100
|
+
|
|
101
|
+
## Релиз
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
make rel
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Собирает proto, поднимает patch-версию, коммитит все изменения с сообщением `v1.2.3` и пушит в `main`. Actions публикует npm и обновляет pkg.go.dev.
|
|
108
|
+
|
|
109
|
+
Другой шаг версии: `make rel PART=minor` или `PART=major`.
|
|
110
|
+
|
|
111
|
+
Для коммита нужны `user.name` и `user.email` в Git.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
gen/python/google/api/annotations_pb2.py
|
|
5
|
+
gen/python/google/api/annotations_pb2.pyi
|
|
6
|
+
gen/python/google/api/annotations_pb2_grpc.py
|
|
7
|
+
gen/python/google/api/field_behavior_pb2.py
|
|
8
|
+
gen/python/google/api/field_behavior_pb2.pyi
|
|
9
|
+
gen/python/google/api/field_behavior_pb2_grpc.py
|
|
10
|
+
gen/python/google/api/http_pb2.py
|
|
11
|
+
gen/python/google/api/http_pb2.pyi
|
|
12
|
+
gen/python/google/api/http_pb2_grpc.py
|
|
13
|
+
gen/python/indicators/__init__.py
|
|
14
|
+
gen/python/indicators/indicators_pb2.py
|
|
15
|
+
gen/python/indicators/indicators_pb2.pyi
|
|
16
|
+
gen/python/indicators/indicators_pb2_grpc.py
|
|
17
|
+
gen/python/trb_proto.egg-info/PKG-INFO
|
|
18
|
+
gen/python/trb_proto.egg-info/SOURCES.txt
|
|
19
|
+
gen/python/trb_proto.egg-info/dependency_links.txt
|
|
20
|
+
gen/python/trb_proto.egg-info/requires.txt
|
|
21
|
+
gen/python/trb_proto.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "trb-proto"
|
|
7
|
+
version = "1.0.37"
|
|
8
|
+
description = "Generated protobuf/gRPC Python stubs for TrB services"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
authors = [{ name = "Mar1eena" }]
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
|
+
dependencies = [
|
|
14
|
+
"protobuf>=4.25.0",
|
|
15
|
+
"grpcio>=1.60.0",
|
|
16
|
+
]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Operating System :: OS Independent",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
[project.urls]
|
|
23
|
+
Homepage = "https://github.com/Mar1eena/TrB_proto"
|
|
24
|
+
Repository = "https://github.com/Mar1eena/TrB_proto"
|
|
25
|
+
|
|
26
|
+
[tool.setuptools.packages.find]
|
|
27
|
+
where = ["gen/python"]
|
|
28
|
+
include = ["indicators*", "google*"]
|