# th2 gRPC util library (3.0.4)
This library contains proto messages and `MessageComparator` service with RPC methods that are used in [th2 util](https://github.com/th2-net/th2-util "th2-util"). See [util.proto](src/main/proto/th2_grpc_util/util.proto "util.proto") file 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 a package for Java, run the following command:
```
gradle --no-daemon clean build publish artifactoryPublish \
-Purl=${URL} \
-Puser=${USER} \
-Ppassword=${PASSWORD}
```
`URL`, `USER` and `PASSWORD` are parameters for publishing.
### Python
If you wish to manually create and publish a package for Python:
1. Generate services with `Gradle`:
```
gradle --no-daemon clean generateProto
```
You can find the generated files by following path: `src/gen/main/services/python`
2. Generate code from `.proto` files and publish everything using `twine`:
```
pip install -r requirements.txt
pip install twine
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.
## Changes
### 3.0.4
+ Change requirement specifier for Python
### 3.0.3
+ Up version th2-grpc-common to 3.8.0
### 3.0.2
+ Up version th2-grpc-common to 3.4.0
### 3.0.0
+ Migrated to common V3
Raw data
{
"_id": null,
"home_page": "https://github.com/th2-net/th2-grpc-util",
"name": "th2-grpc-util",
"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/54/eb/5a520bcfbc4790386b0c8c5b7163c9c906bb47dee1c814c2e405401db49f/th2_grpc_util-3.0.4.tar.gz",
"platform": null,
"description": "# th2 gRPC util library (3.0.4)\n\nThis library contains proto messages and `MessageComparator` service with RPC methods that are used in [th2 util](https://github.com/th2-net/th2-util \"th2-util\"). See [util.proto](src/main/proto/th2_grpc_util/util.proto \"util.proto\") file 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 a package for Java, run the following command:\n```\ngradle --no-daemon clean build publish artifactoryPublish \\\n -Purl=${URL} \\ \n -Puser=${USER} \\\n -Ppassword=${PASSWORD}\n```\n`URL`, `USER` and `PASSWORD` are parameters for publishing.\n\n### Python\nIf you wish to manually create and publish a package for Python:\n1. Generate services with `Gradle`:\n ```\n gradle --no-daemon clean generateProto\n ```\n You can find the generated files by following path: `src/gen/main/services/python`\n2. Generate code from `.proto` files and publish everything using `twine`:\n ```\n pip install -r requirements.txt\n pip install twine\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.\n\n## Changes\n\n### 3.0.4\n\n+ Change requirement specifier for Python\n\n### 3.0.3\n\n+ Up version th2-grpc-common to 3.8.0\n\n### 3.0.2\n\n+ Up version th2-grpc-common to 3.4.0\n\n### 3.0.0\n\n+ Migrated to common V3",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "th2_grpc_util",
"version": "3.0.4",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "54eb5a520bcfbc4790386b0c8c5b7163c9c906bb47dee1c814c2e405401db49f",
"md5": "4f027dd11a50b4eb2774091477af5ce1",
"sha256": "3c2d48ffde44c87ac19874cb4bf947de7b8fc2a39e21c54662e9bd2ed013b4c4"
},
"downloads": -1,
"filename": "th2_grpc_util-3.0.4.tar.gz",
"has_sig": false,
"md5_digest": "4f027dd11a50b4eb2774091477af5ce1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 10970,
"upload_time": "2022-05-13T14:47:22",
"upload_time_iso_8601": "2022-05-13T14:47:22.794713Z",
"url": "https://files.pythonhosted.org/packages/54/eb/5a520bcfbc4790386b0c8c5b7163c9c906bb47dee1c814c2e405401db49f/th2_grpc_util-3.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-05-13 14:47:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "th2-net",
"github_project": "th2-grpc-util",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "th2-grpc-util"
}