th2-grpc-sim


Nameth2-grpc-sim JSON
Version 3.1.0 PyPI version JSON
download
home_pagehttps://github.com/th2-net/th2-grpc-sim
Summaryth2_grpc_sim
upload_time2021-05-04 10:30:56
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.
            

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/2a/d7/8f372ff2f237bf66532a4d4f2904ab858e4923f9e32306591f213b76f862/th2_grpc_sim-3.1.0.tar.gz",
    "platform": "",
    "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.",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "th2_grpc_sim",
    "version": "3.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "0303583e14787eb1d4b2a3e7a55920a1",
                "sha256": "33f531a0a70ac0ad3683602acdc654ec2489b3d781a98126a7b60544a3d7c281"
            },
            "downloads": -1,
            "filename": "th2_grpc_sim-3.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0303583e14787eb1d4b2a3e7a55920a1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 6941,
            "upload_time": "2021-05-04T10:30:56",
            "upload_time_iso_8601": "2021-05-04T10:30:56.464430Z",
            "url": "https://files.pythonhosted.org/packages/2a/d7/8f372ff2f237bf66532a4d4f2904ab858e4923f9e32306591f213b76f862/th2_grpc_sim-3.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-05-04 10:30:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "th2-net",
    "error": "Could not fetch GitHub repository",
    "lcname": "th2-grpc-sim"
}
        
Elapsed time: 0.28504s