ansys-api-systemcoupling 0.1.0__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.
Files changed (21) hide show
  1. ansys-api-systemcoupling-0.1.0/LICENSE +21 -0
  2. ansys-api-systemcoupling-0.1.0/PKG-INFO +72 -0
  3. ansys-api-systemcoupling-0.1.0/README.md +60 -0
  4. ansys-api-systemcoupling-0.1.0/pyproject.toml +3 -0
  5. ansys-api-systemcoupling-0.1.0/setup.cfg +4 -0
  6. ansys-api-systemcoupling-0.1.0/setup.py +50 -0
  7. ansys-api-systemcoupling-0.1.0/src/ansys/api/systemcoupling/VERSION +1 -0
  8. ansys-api-systemcoupling-0.1.0/src/ansys/api/systemcoupling/__init__.py +8 -0
  9. ansys-api-systemcoupling-0.1.0/src/ansys/api/systemcoupling/py.typed +0 -0
  10. ansys-api-systemcoupling-0.1.0/src/ansys/api/systemcoupling/v0/command.proto +23 -0
  11. ansys-api-systemcoupling-0.1.0/src/ansys/api/systemcoupling/v0/error.proto +9 -0
  12. ansys-api-systemcoupling-0.1.0/src/ansys/api/systemcoupling/v0/output_stream.proto +15 -0
  13. ansys-api-systemcoupling-0.1.0/src/ansys/api/systemcoupling/v0/process.proto +15 -0
  14. ansys-api-systemcoupling-0.1.0/src/ansys/api/systemcoupling/v0/solution.proto +30 -0
  15. ansys-api-systemcoupling-0.1.0/src/ansys/api/systemcoupling/v0/variant.proto +51 -0
  16. ansys-api-systemcoupling-0.1.0/src/ansys_api_systemcoupling.egg-info/PKG-INFO +72 -0
  17. ansys-api-systemcoupling-0.1.0/src/ansys_api_systemcoupling.egg-info/SOURCES.txt +19 -0
  18. ansys-api-systemcoupling-0.1.0/src/ansys_api_systemcoupling.egg-info/dependency_links.txt +1 -0
  19. ansys-api-systemcoupling-0.1.0/src/ansys_api_systemcoupling.egg-info/entry_points.txt +2 -0
  20. ansys-api-systemcoupling-0.1.0/src/ansys_api_systemcoupling.egg-info/requires.txt +2 -0
  21. ansys-api-systemcoupling-0.1.0/src/ansys_api_systemcoupling.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 ANSYS, Inc. All rights reserved.
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,72 @@
1
+ Metadata-Version: 2.1
2
+ Name: ansys-api-systemcoupling
3
+ Version: 0.1.0
4
+ Summary: Autogenerated python gRPC interface package for ansys-api-systemcoupling, built on 13:54:04 on 21 February 2023
5
+ Home-page: https://github.com/ansys/ansys-api-systemcoupling
6
+ Author: ANSYS, Inc.
7
+ Author-email: support@ansys.com
8
+ License: MIT
9
+ Requires-Python: >=3.7
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+
13
+ ### ansys-api-systemcoupling gRPC Interface Package
14
+
15
+ This Python package contains the auto-generated gRPC Python interface files for
16
+ System Coupling.
17
+
18
+
19
+ #### Installation
20
+
21
+ Provided that these wheels have been published to public PyPI, they can be
22
+ installed with:
23
+
24
+ ```
25
+ pip install ansys-api-systemcoupling
26
+ ```
27
+
28
+ #### Build
29
+
30
+ To build the gRPC packages, run:
31
+
32
+ ```
33
+ pip install build
34
+ python -m build
35
+ ```
36
+
37
+ This will create both the source distribution containing just the protofiles
38
+ along with the wheel containing the protofiles and build Python interface
39
+ files.
40
+
41
+ Note that the interface files are identical regardless of the version of Python
42
+ used to generate them, but the last pre-built wheel for ``grpcio~=1.30`` was
43
+ Python 3.7, so to improve your build time, use Python 3.7 when building the
44
+ wheel.
45
+
46
+
47
+ #### Manual Deployment
48
+
49
+ After building the packages, manually deploy them with:
50
+
51
+ ```
52
+ pip install twine
53
+ twine upload dist/*
54
+ ```
55
+
56
+ Note that this is automatically done through CI/CD.
57
+
58
+
59
+ #### Automatic Deployment
60
+
61
+ This repository contains GitHub CI/CD that enables the automatic building of
62
+ source and wheel packages for these gRPC Python interface files. By default,
63
+ these are built on PRs, the main branch, and on tags when pushing. Artifacts
64
+ are uploaded for each PR.
65
+
66
+ To publicly release wheels to PyPI, ensure your branch is up-to-date and then
67
+ push tags. For example, for the version ``v0.5.0``.
68
+
69
+ ```bash
70
+ git tag v0.5.0
71
+ git push --tags
72
+ ```
@@ -0,0 +1,60 @@
1
+ ### ansys-api-systemcoupling gRPC Interface Package
2
+
3
+ This Python package contains the auto-generated gRPC Python interface files for
4
+ System Coupling.
5
+
6
+
7
+ #### Installation
8
+
9
+ Provided that these wheels have been published to public PyPI, they can be
10
+ installed with:
11
+
12
+ ```
13
+ pip install ansys-api-systemcoupling
14
+ ```
15
+
16
+ #### Build
17
+
18
+ To build the gRPC packages, run:
19
+
20
+ ```
21
+ pip install build
22
+ python -m build
23
+ ```
24
+
25
+ This will create both the source distribution containing just the protofiles
26
+ along with the wheel containing the protofiles and build Python interface
27
+ files.
28
+
29
+ Note that the interface files are identical regardless of the version of Python
30
+ used to generate them, but the last pre-built wheel for ``grpcio~=1.30`` was
31
+ Python 3.7, so to improve your build time, use Python 3.7 when building the
32
+ wheel.
33
+
34
+
35
+ #### Manual Deployment
36
+
37
+ After building the packages, manually deploy them with:
38
+
39
+ ```
40
+ pip install twine
41
+ twine upload dist/*
42
+ ```
43
+
44
+ Note that this is automatically done through CI/CD.
45
+
46
+
47
+ #### Automatic Deployment
48
+
49
+ This repository contains GitHub CI/CD that enables the automatic building of
50
+ source and wheel packages for these gRPC Python interface files. By default,
51
+ these are built on PRs, the main branch, and on tags when pushing. Artifacts
52
+ are uploaded for each PR.
53
+
54
+ To publicly release wheels to PyPI, ensure your branch is up-to-date and then
55
+ push tags. For example, for the version ``v0.5.0``.
56
+
57
+ ```bash
58
+ git tag v0.5.0
59
+ git push --tags
60
+ ```
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools >= 42.0.0", "wheel", "ansys_tools_protoc_helper"]
3
+ build-backend = "setuptools.build_meta:__legacy__"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,50 @@
1
+ """Installation file for the ansys-api-systemcoupling package"""
2
+
3
+ import os
4
+ from datetime import datetime
5
+
6
+ import setuptools
7
+
8
+ from ansys.tools.protoc_helper import CMDCLASS_OVERRIDE
9
+
10
+ # Get the long description from the README file
11
+ HERE = os.path.abspath(os.path.dirname(__file__))
12
+ with open(os.path.join(HERE, "README.md"), encoding="utf-8") as f:
13
+ long_description = f.read()
14
+
15
+ product = "systemcoupling"
16
+ library = ""
17
+ package_info = ["ansys", "api", product, library, "v0"]
18
+ with open(os.path.join(HERE, "src", "ansys", "api", product, library, "VERSION"), encoding="utf-8") as f:
19
+ version = f.read().strip()
20
+
21
+ package_name = "ansys-api-systemcoupling"
22
+ dot_package_name = '.'.join(filter(None, package_info))
23
+
24
+ description = f"Autogenerated python gRPC interface package for {package_name}, built on {datetime.now().strftime('%H:%M:%S on %d %B %Y')}"
25
+
26
+ if __name__ == "__main__":
27
+ setuptools.setup(
28
+ name=package_name,
29
+ version=version,
30
+ author="ANSYS, Inc.",
31
+ author_email='support@ansys.com',
32
+ description=description,
33
+ long_description=long_description,
34
+ long_description_content_type='text/markdown',
35
+ url=f"https://github.com/ansys/{package_name}",
36
+ license="MIT",
37
+ python_requires=">=3.7",
38
+ install_requires=["grpcio~=1.30", "protobuf~=3.20"],
39
+ package_dir = {"": "src"},
40
+ packages=setuptools.find_namespace_packages("src", include=("ansys.*",)),
41
+ package_data={
42
+ "": ["*.proto", "*.pyi", "py.typed", "VERSION"],
43
+ },
44
+ entry_points={
45
+ "ansys.tools.protoc_helper.proto_provider": [
46
+ f"{dot_package_name}={dot_package_name}"
47
+ ],
48
+ },
49
+ cmdclass=CMDCLASS_OVERRIDE
50
+ )
@@ -0,0 +1,8 @@
1
+ """Autogenerated Python gRPC interface package for ansys-api-systemcoupling."""
2
+
3
+ import pathlib
4
+
5
+ __all__ = ["__version__"]
6
+
7
+ with open(pathlib.Path(__file__).parent / "VERSION", encoding="utf-8") as f:
8
+ __version__ = f.read().strip()
@@ -0,0 +1,23 @@
1
+ // Copyright (C) 2023 ANSYS, Inc. and/or its affiliates.
2
+ syntax = "proto3";
3
+
4
+ package ansys.api.systemcoupling.v0;
5
+
6
+ import "ansys/api/systemcoupling/v0/variant.proto";
7
+
8
+ service Command {
9
+ rpc InvokeCommand (CommandRequest) returns (CommandResponse) {}
10
+ }
11
+
12
+ message CommandRequest {
13
+ message Argument {
14
+ string name = 1;
15
+ Variant val = 2;
16
+ }
17
+ string command = 1;
18
+ repeated Argument args = 2;
19
+ }
20
+
21
+ message CommandResponse {
22
+ Variant result = 1;
23
+ }
@@ -0,0 +1,9 @@
1
+ // Copyright (C) 2023 ANSYS, Inc. and/or its affiliates.
2
+ syntax = "proto3";
3
+
4
+ package ansys.api.systemcoupling.v0;
5
+
6
+ message ErrorDetails {
7
+ string exception_classname = 1;
8
+ string stack_trace = 2;
9
+ }
@@ -0,0 +1,15 @@
1
+ // Copyright (C) 2023 ANSYS, Inc. and/or its affiliates.
2
+ syntax = "proto3";
3
+
4
+ package ansys.api.systemcoupling.v0;
5
+
6
+ service OutputStream {
7
+ rpc BeginStdStreaming(StdStreamRequest) returns (stream StdStreamResponse) {}
8
+ }
9
+
10
+ message StdStreamRequest {
11
+ }
12
+
13
+ message StdStreamResponse {
14
+ string text = 1;
15
+ }
@@ -0,0 +1,15 @@
1
+ // Copyright (C) 2023 ANSYS, Inc. and/or its affiliates.
2
+ syntax = "proto3";
3
+
4
+ package ansys.api.systemcoupling.v0;
5
+
6
+ service Process {
7
+ rpc Ping (PingRequest) returns (PingResponse) {}
8
+ rpc Quit (QuitRequest) returns (QuitResponse) {}
9
+ }
10
+
11
+ message PingRequest {}
12
+ message PingResponse {}
13
+
14
+ message QuitRequest {}
15
+ message QuitResponse {}
@@ -0,0 +1,30 @@
1
+ // Copyright (C) 2023 ANSYS, Inc. and/or its affiliates.
2
+ syntax = "proto3";
3
+
4
+ package ansys.api.systemcoupling.v0;
5
+
6
+ service Solution {
7
+ rpc Solve (SolveRequest) returns (SolveResponse) {}
8
+ rpc Interrupt (InterruptRequest) returns (InterruptResponse) {}
9
+ rpc Abort (AbortRequest) returns (AbortResponse) {}
10
+ }
11
+
12
+ // Note that all responses are currently empty messages
13
+ // In particular no status info for solve is returned -
14
+ // failure or early termination of solve will be
15
+ // communicated by an exception as for commands
16
+ // via the Command service.
17
+
18
+ message SolveRequest {}
19
+ message SolveResponse {}
20
+
21
+ message InterruptRequest {
22
+ string reason = 1;
23
+ }
24
+ message InterruptResponse {}
25
+
26
+ message AbortRequest {
27
+ string reason = 1;
28
+ }
29
+ message AbortResponse {}
30
+
@@ -0,0 +1,51 @@
1
+ // Copyright (C) 2023 ANSYS, Inc. and/or its affiliates.
2
+ syntax = "proto3";
3
+
4
+ package ansys.api.systemcoupling.v0;
5
+
6
+ enum NoneValue {
7
+ NONE_VALUE=0;
8
+ }
9
+
10
+ message StringVector {
11
+ repeated string item = 1;
12
+ }
13
+
14
+ message DoubleVector {
15
+ repeated double item = 1;
16
+ }
17
+
18
+ message BoolVector {
19
+ repeated bool item = 1;
20
+ }
21
+
22
+ message Int64Vector {
23
+ repeated sint64 item = 1;
24
+ }
25
+
26
+ message VariantMap {
27
+ map<string, Variant> item = 1;
28
+ }
29
+
30
+ message VariantVector {
31
+ repeated Variant item = 1;
32
+ }
33
+
34
+ message Variant {
35
+ oneof as {
36
+ NoneValue none_state = 1;
37
+
38
+ bool bool_state = 2;
39
+ sint64 int64_state = 3;
40
+ double double_state = 5;
41
+ string string_state = 6;
42
+
43
+ BoolVector bool_vector_state = 7;
44
+ Int64Vector int64_vector_state = 8;
45
+ DoubleVector double_vector_state = 9;
46
+ StringVector string_vector_state = 10;
47
+ VariantVector variant_vector_state = 11;
48
+ VariantMap variant_map_state = 12;
49
+ }
50
+ }
51
+
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.1
2
+ Name: ansys-api-systemcoupling
3
+ Version: 0.1.0
4
+ Summary: Autogenerated python gRPC interface package for ansys-api-systemcoupling, built on 13:54:04 on 21 February 2023
5
+ Home-page: https://github.com/ansys/ansys-api-systemcoupling
6
+ Author: ANSYS, Inc.
7
+ Author-email: support@ansys.com
8
+ License: MIT
9
+ Requires-Python: >=3.7
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+
13
+ ### ansys-api-systemcoupling gRPC Interface Package
14
+
15
+ This Python package contains the auto-generated gRPC Python interface files for
16
+ System Coupling.
17
+
18
+
19
+ #### Installation
20
+
21
+ Provided that these wheels have been published to public PyPI, they can be
22
+ installed with:
23
+
24
+ ```
25
+ pip install ansys-api-systemcoupling
26
+ ```
27
+
28
+ #### Build
29
+
30
+ To build the gRPC packages, run:
31
+
32
+ ```
33
+ pip install build
34
+ python -m build
35
+ ```
36
+
37
+ This will create both the source distribution containing just the protofiles
38
+ along with the wheel containing the protofiles and build Python interface
39
+ files.
40
+
41
+ Note that the interface files are identical regardless of the version of Python
42
+ used to generate them, but the last pre-built wheel for ``grpcio~=1.30`` was
43
+ Python 3.7, so to improve your build time, use Python 3.7 when building the
44
+ wheel.
45
+
46
+
47
+ #### Manual Deployment
48
+
49
+ After building the packages, manually deploy them with:
50
+
51
+ ```
52
+ pip install twine
53
+ twine upload dist/*
54
+ ```
55
+
56
+ Note that this is automatically done through CI/CD.
57
+
58
+
59
+ #### Automatic Deployment
60
+
61
+ This repository contains GitHub CI/CD that enables the automatic building of
62
+ source and wheel packages for these gRPC Python interface files. By default,
63
+ these are built on PRs, the main branch, and on tags when pushing. Artifacts
64
+ are uploaded for each PR.
65
+
66
+ To publicly release wheels to PyPI, ensure your branch is up-to-date and then
67
+ push tags. For example, for the version ``v0.5.0``.
68
+
69
+ ```bash
70
+ git tag v0.5.0
71
+ git push --tags
72
+ ```
@@ -0,0 +1,19 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ setup.py
5
+ src/ansys/api/systemcoupling/VERSION
6
+ src/ansys/api/systemcoupling/__init__.py
7
+ src/ansys/api/systemcoupling/py.typed
8
+ src/ansys/api/systemcoupling/v0/command.proto
9
+ src/ansys/api/systemcoupling/v0/error.proto
10
+ src/ansys/api/systemcoupling/v0/output_stream.proto
11
+ src/ansys/api/systemcoupling/v0/process.proto
12
+ src/ansys/api/systemcoupling/v0/solution.proto
13
+ src/ansys/api/systemcoupling/v0/variant.proto
14
+ src/ansys_api_systemcoupling.egg-info/PKG-INFO
15
+ src/ansys_api_systemcoupling.egg-info/SOURCES.txt
16
+ src/ansys_api_systemcoupling.egg-info/dependency_links.txt
17
+ src/ansys_api_systemcoupling.egg-info/entry_points.txt
18
+ src/ansys_api_systemcoupling.egg-info/requires.txt
19
+ src/ansys_api_systemcoupling.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [ansys.tools.protoc_helper.proto_provider]
2
+ ansys.api.systemcoupling.v0 = ansys.api.systemcoupling.v0
@@ -0,0 +1,2 @@
1
+ grpcio~=1.30
2
+ protobuf~=3.20