# th2 gRPC hand library (2.11.0)
This library contains proto messages and `RhBatch` service with RPC methods that are used in [th2 hand](https://github.com/th2-net/th2-hand "th2-hand"). See [proto](src/main/proto "proto") files for details. <br>
Tool generates code from `.proto` files and uploads built packages (`.proto` files and generated code) to specified repositories.
## How to maintain project
1. Make your changes.
2. Up version of Java package in `gradle.properties` file.
3. Up version of Python package in `package_info.json` file.
4. Commit everything.
## How to run project
### Java
If you wish to manually create and publish package for Java, run these command:
```
gradle --no-daemon clean build publish artifactoryPublish \
-Pbintray_user=${BINTRAY_USER} \
-Pbintray_key=${BINTRAY_KEY}
```
`BINTRAY_USER` and `BINTRAY_KEY` are parameters for publishing.
### Python
If you wish to manually create and publish package for Python:
1. Generate services from `.proto` files:
- Download and build [th2 Python service generator](https://github.com/th2-net/th2-python-service-generator "th2-python-service-generator") project with Gradle:
```
gradle clean build
```
- Run th2 Python service generator:
```
java -jar {path_to_jar} -p src/main/proto/{package_name} -w PythonServiceWriter -o src/gen/main/python/{package_name}
```
2. Generate code from `.proto` files and publish everything:
```
pip install -r requirements.txt
python setup.py generate
python setup.py sdist
twine upload --repository-url ${PYPI_REPOSITORY_URL} --username ${PYPI_USER} --password ${PYPI_PASSWORD} dist/*
```
`PYPI_REPOSITORY_URL`, `PYPI_USER` and `PYPI_PASSWORD` are parameters for publishing.
Raw data
{
"_id": null,
"home_page": "https://github.com/th2-net/th2-grpc-hand",
"name": "th2-grpc-hand",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "TH2-devs",
"author_email": "th2-devs@exactprosystems.com",
"download_url": "https://files.pythonhosted.org/packages/29/11/13cc37fa0bd9d61f186e0b4540ef0db0d40b9b6ea81c3037555a5ba75814/th2_grpc_hand-2.11.0.tar.gz",
"platform": null,
"description": "# th2 gRPC hand library (2.11.0)\n\nThis library contains proto messages and `RhBatch` service with RPC methods that are used in [th2 hand](https://github.com/th2-net/th2-hand \"th2-hand\"). See [proto](src/main/proto \"proto\") files for details. <br>\nTool generates code from `.proto` files and uploads built packages (`.proto` files and generated code) to specified repositories.\n\n## How to maintain project\n1. Make your changes.\n2. Up version of Java package in `gradle.properties` file.\n3. Up version of Python package in `package_info.json` file.\n4. Commit everything.\n\n## How to run project\n\n### Java\nIf you wish to manually create and publish package for Java, run these command:\n```\ngradle --no-daemon clean build publish artifactoryPublish \\\n -Pbintray_user=${BINTRAY_USER} \\\n -Pbintray_key=${BINTRAY_KEY}\n```\n`BINTRAY_USER` and `BINTRAY_KEY` are parameters for publishing.\n\n### Python\nIf you wish to manually create and publish package for Python:\n1. Generate services from `.proto` files:\n - Download and build [th2 Python service generator](https://github.com/th2-net/th2-python-service-generator \"th2-python-service-generator\") project with Gradle:\n ```\n gradle clean build\n ```\n - Run th2 Python service generator:\n ```\n java -jar {path_to_jar} -p src/main/proto/{package_name} -w PythonServiceWriter -o src/gen/main/python/{package_name}\n ```\n2. Generate code from `.proto` files and publish everything:\n ```\n pip install -r requirements.txt\n python setup.py generate\n python setup.py sdist\n twine upload --repository-url ${PYPI_REPOSITORY_URL} --username ${PYPI_USER} --password ${PYPI_PASSWORD} dist/*\n ```\n `PYPI_REPOSITORY_URL`, `PYPI_USER` and `PYPI_PASSWORD` are parameters for publishing.",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "th2_grpc_hand",
"version": "2.11.0",
"project_urls": {
"Homepage": "https://github.com/th2-net/th2-grpc-hand"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "291113cc37fa0bd9d61f186e0b4540ef0db0d40b9b6ea81c3037555a5ba75814",
"md5": "5684dcd3006b0a837b1ae0e17f347a79",
"sha256": "c0fc246195c8ec8749b4a62d46ce542f691cc6c6c8aa9a2a9e18eba072bc4e3f"
},
"downloads": -1,
"filename": "th2_grpc_hand-2.11.0.tar.gz",
"has_sig": false,
"md5_digest": "5684dcd3006b0a837b1ae0e17f347a79",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 39965,
"upload_time": "2022-07-05T07:30:40",
"upload_time_iso_8601": "2022-07-05T07:30:40.210359Z",
"url": "https://files.pythonhosted.org/packages/29/11/13cc37fa0bd9d61f186e0b4540ef0db0d40b9b6ea81c3037555a5ba75814/th2_grpc_hand-2.11.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-07-05 07:30:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "th2-net",
"github_project": "th2-grpc-hand",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "th2-grpc-hand"
}