th2-grpc-sim


Nameth2-grpc-sim JSON
Version 4.1.0 PyPI version JSON
download
home_pagehttps://github.com/th2-net/th2-grpc-sim
Summaryth2_grpc_sim
upload_time2022-09-14 15:54:22
maintainer
docs_urlNone
authorTH2-devs
requires_python>=3.7
licenseApache License 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # th2 gRPC sim library

This library contains proto messages and `Sim` service with RPC methods that are used in [th2 sim](https://github.com/th2-net/th2-sim "th2-sim"). See [sim.proto](src/main/proto/th2_grpc_sim/sim.proto "sim.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 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 by 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:
    ```
    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.

## Release notes

### 4.1.0
+ Add stubs for Python
+ Update `th2-grpc-common` from `3.9.0` to `3.11.1`
+ Update `th2-grpc-service-generator` from `3.1.12` to `3.2.2`

### 4.0.0 
+ New param relation
+ Added new method 'getRelatedRules'

### 3.1.3
+ Update setup.py

### 3.1.2
+ Update libraries versions.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/th2-net/th2-grpc-sim",
    "name": "th2-grpc-sim",
    "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/c5/42/fe86d83a7ff210f98bab6a728512a31426f5d0208a9a35f2c0529c248011/th2_grpc_sim-4.1.0.tar.gz",
    "platform": null,
    "description": "# th2 gRPC sim library\n\nThis library contains proto messages and `Sim` service with RPC methods that are used in [th2 sim](https://github.com/th2-net/th2-sim \"th2-sim\"). See [sim.proto](src/main/proto/th2_grpc_sim/sim.proto \"sim.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 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 by 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:\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.\n\n## Release notes\n\n### 4.1.0\n+ Add stubs for Python\n+ Update `th2-grpc-common` from `3.9.0` to `3.11.1`\n+ Update `th2-grpc-service-generator` from `3.1.12` to `3.2.2`\n\n### 4.0.0 \n+ New param relation\n+ Added new method 'getRelatedRules'\n\n### 3.1.3\n+ Update setup.py\n\n### 3.1.2\n+ Update libraries versions.",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "th2_grpc_sim",
    "version": "4.1.0",
    "project_urls": {
        "Homepage": "https://github.com/th2-net/th2-grpc-sim"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c542fe86d83a7ff210f98bab6a728512a31426f5d0208a9a35f2c0529c248011",
                "md5": "599a2d361a7a4f087597e03914906aaf",
                "sha256": "ca994c19bbe4f20ac64a99d5e19d67808c6f22814c89f000bf8e495d7b14feea"
            },
            "downloads": -1,
            "filename": "th2_grpc_sim-4.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "599a2d361a7a4f087597e03914906aaf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 8548,
            "upload_time": "2022-09-14T15:54:22",
            "upload_time_iso_8601": "2022-09-14T15:54:22.620922Z",
            "url": "https://files.pythonhosted.org/packages/c5/42/fe86d83a7ff210f98bab6a728512a31426f5d0208a9a35f2c0529c248011/th2_grpc_sim-4.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-09-14 15:54:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "th2-net",
    "github_project": "th2-grpc-sim",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "th2-grpc-sim"
}
        
Elapsed time: 0.13861s