th2-grpc-data-provider


Nameth2-grpc-data-provider JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/th2-net/th2-data-provider
Summaryth2_grpc_data_provider
upload_time2023-06-05 11:30:51
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 Data Provider library (1.3.0)

This library contains proto messages and `DataProvider` service with RPC methods that are used in [th2 data provider](https://github.com/th2-net/th2-rpt-data-provider "th2-rpt-data-provider"). See [data_provider.proto](src/main/proto/th2_grpc_data_provider/data_provider.proto "data_provider_template.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.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/th2-net/th2-data-provider",
    "name": "th2-grpc-data-provider",
    "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/e7/73/7579702a79be89d05deb69c1f9b4b302a12aa47a14633a82e1a7af6979a2/th2_grpc_data_provider-1.3.0.tar.gz",
    "platform": null,
    "description": "# th2 gRPC Data Provider library (1.3.0)\n\nThis library contains proto messages and `DataProvider` service with RPC methods that are used in [th2 data provider](https://github.com/th2-net/th2-rpt-data-provider \"th2-rpt-data-provider\"). See [data_provider.proto](src/main/proto/th2_grpc_data_provider/data_provider.proto \"data_provider_template.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.",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "th2_grpc_data_provider",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://github.com/th2-net/th2-data-provider"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e7737579702a79be89d05deb69c1f9b4b302a12aa47a14633a82e1a7af6979a2",
                "md5": "bed39ab3aa8f7797931fd4b1f46aeba8",
                "sha256": "c2244f5bbbb572452a63419a50f7439c5da16000167f212bcff40d21efad893e"
            },
            "downloads": -1,
            "filename": "th2_grpc_data_provider-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "bed39ab3aa8f7797931fd4b1f46aeba8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 15397,
            "upload_time": "2023-06-05T11:30:51",
            "upload_time_iso_8601": "2023-06-05T11:30:51.719478Z",
            "url": "https://files.pythonhosted.org/packages/e7/73/7579702a79be89d05deb69c1f9b4b302a12aa47a14633a82e1a7af6979a2/th2_grpc_data_provider-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-05 11:30:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "th2-net",
    "github_project": "th2-data-provider",
    "github_not_found": true,
    "lcname": "th2-grpc-data-provider"
}
        
Elapsed time: 0.07291s