https://github.com/ansys/ansys-api-discovery
This repository provides the auto-generated gRPC Python interface files for Discovery/SpaceClaim.
https://github.com/ansys/ansys-api-discovery
Last synced: about 1 month ago
JSON representation
This repository provides the auto-generated gRPC Python interface files for Discovery/SpaceClaim.
- Host: GitHub
- URL: https://github.com/ansys/ansys-api-discovery
- Owner: ansys
- License: mit
- Created: 2022-07-26T09:44:22.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-07T07:41:09.000Z (about 1 month ago)
- Last Synced: 2025-04-13T01:37:02.091Z (about 1 month ago)
- Language: Shell
- Homepage:
- Size: 247 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
### ansys-api-discovery gRPC Interface Package
This repository provides the auto-generated gRPC Python interface files
for Discovery/SpaceClaim.#### Installation
Provided that these wheels have been published to public PyPI, they can be
installed with:```
pip install ansys-api-discovery
```#### Build
To build the gRPC packages, run:
```
pip install build
python -m build
```This will create both the source distribution containing just the protofiles
along with the wheel containing the protofiles and build Python interface
files.Note that the interface files are identical regardless of the version of Python
used to generate them, but the last pre-built wheel for ``grpcio~=1.47`` was
Python 3.7, so to improve your build time, use Python 3.7 when building the
wheel.#### Manual Deployment
After building the packages, manually deploy them with:
```
pip install twine
twine upload dist/*
```Note that this is automatically done through CI/CD.
#### Automatic Deployment
This repository contains GitHub CI/CD that enables the automatic building of
source and wheel packages for these gRPC Python interface files. By default,
these are built on PRs, the main branch, and on tags when pushing. Artifacts
are uploaded for each PR.To publicly release wheels to PyPI, ensure your branch is up-to-date and then
push tags. For example, for the version ``v0.5.0``.```bash
git tag v0.5.0
git push --tags
```