Saravanan666/pypi-org huggingface dataset:
Package: th2-act
TH2 Act Component (Python)OverviewThis repository is a library for custom gRPC act projects (checkth2-act-template-pyfor the implementation template). Check theWikifor instructions and examples.The th2-act contains helper methods to create custom
ActHadlers that implements custom gRPC API. Multiple ActHandlers allowed as well.InstallationTo installth2-actpackage run the following command in the terminal:pip install th2-act
Package: th2-act-core
th2-act-core (1.0.0)OverviewThis repository is a library for custom gRPC act projects (checkth2-act-template-pyfor the implementation template). Check theWikifor instructions and examples.The th2-act-core contains helper methods to create custom
ActHadlers that implements custom gRPC API. Multiple ActHandlers allowed as well.InstallationTo installth2-act-corepackage run the following command in the terminal:pip install th2-act-core
Package: th2c
Async HTTP/2 ClientA simple asynchronous HTTP/2 client forTornadoapplications, based on the awesomeh2library.Intended for Python 2 (>= 2.7.9).This package is in a very early development stage, so expect bugs or changes in the API.
If you spot anything wrong, or would like to suggest improvements, please open an issue or a pull request.ExampleUsage in a coroutine may be:fromth2cimportAsyncHTTP2Clientfromtornado.httpclientimportHTTPRequestclient=AsyncHTTP2Client(host='nghttp2.org',port=443,secure=True,)request=HTTPRequest(url='https://nghttp2.org/httpbin/get',method='GET',)res=yieldclient.fetch(request)TODOmoar tests :)SERVER_PUSHfollow_redirectspriority controlDevelopment setupIf you wish to create a development environment to work on th2c, you can use a Vagrant setup or a virtual environment.
The Vagrant setup is located undervm, an Ubuntu 16.04 64bit box with Go and Python 2 installed, that maps the project directory under/opt/dev/th2c.For a minimal set of “integration tests”, a Go web server is included intest_serverthat simply echoes back what it receives.You can run it in debug mode, from the project directory, by executing:GODEBUG=http2debug=1 go run test_server/main.go.After the server has started, you should run the client by executing:python-mth2c.Log files should be produced under /opt/dev/th2c/logs.You can also run unit tests with:nosetests tests
Package: th2-cli
Works with th2 1.7.3UsingInstall:pip install th2-cliCheck version of CLI:th2 versionOutput example:$ th2 version
th2 CLI v1.7.3
Source repository: https://github.com/d0rich/th2-cliInstall th2If you already have configurations inth2-cli-install-config.yamlorsecrets.yaml, it will be convenient to run process from the directory with these files.
In other case CLI will create these config files during installation.th2 installDelete th2th2 deleteUpdate th2th2 deleteWait until all required namespaces are terminated.th2 installGet th2 statusDisplay information about all th2-related namespaces in Kubernetes.th2 statusinfra-mgrDisplay status of infra-mgr pod:th2 mgr statusDisplay last logs of infra-mgr pod:th2 mgr logsConfigurations templatesth2-cli-install-config.yamlcassandra:datacenter:datacenter1host:host.minikube.internalinfra-mgr:git:http-auth-password:pat_tokenhttp-auth-username:pat_tokenrepository:https://github.com/schema/repositorykubernetes:host:192.168.49.2pvs-node:minikubesecrets.yaml# required only for images from a private registry, will be attached as the first PullSecret to deployments#productRegistry:#  username: user#  password: password#  name: private-registry-1.example.com # core components registry# required only for images from a private registry, will be attached as the second PullSecret to deployments#solutionRegistry:#  username: user#  password: password#  name: private-registry-2.example.com # components registry# required only for images from a private registry, will be attached as the third PullSecret to deployments#proprietaryRegistry:#  username: user#  password: password#  name: private-registry-3.example.com # components registrycassandra:# set credentials for the existing Cassandra clusterdbUser:user:cassandrapassword:cassandrarabbitmq:# set admin user credentials, it will be created during deploymentrabbitmqUsername:th2rabbitmqPassword:rab-pass# must be random stringrabbitmqErlangCookie:cookieDevelopmentpoetry install
poetry shellth2 install
Package: th2-grpc-act-ssh
th2 gRPC act ssh library (2.0.0)This project is a gRPC API for act-ssh componentHow to maintain projectMake your changes.Up version of Java package ingradle.propertiesfile.Up version of Python package inpackage_info.jsonfile.Commit everything.Release Notes2.0.0Migrate to book and pages1.1.0Update grpc-common version1.0.0Up major version for common V3 component0.0.5The exit code value can be unknown when the script or command is interrupting by the act. The interrupted flag will betruein this case.
Package: th2-grpc-act-temp
th2 gRPC act template libraryThis is the template project for creating custom gRPC act libraries. It contains proto messages andActservice that are usedth2 act template. Seeact_template.protofile for details.Tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to specified repositories.How to transform templateCreate a directory with the same name as project name (use underscores instead of dashes) undersrc/main/protodirectory (remove other files and directories if they exist).Place your custom.protofiles in created directory. Pay attention topackagespecifier andimportstatements.Editrelease_versionandvcs_urlproperties ingradle.propertiesfile.EditrootProject.namevariable insettings.gradlefile. This will be the name of Java package.Editpackage_info.jsonfile in order to specify name and version for Python package (create file if it's absent).Edit parameters ofsetup.pyinsetupfunction invocation such as:author,author_email,url. Do not edit the others.Note that the name of created directory undersrc/main/protodirectory is used in Python (it's a package name).How to maintain projectMake your changes.Up version of Java package ingradle.propertiesfile.Up version of Python package inpackage_info.jsonfile.Commit everything.How to run projectJavaIf 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_USERandBINTRAY_KEYare parameters for publishing.PythonIf you wish to manually create and publish package for Python:Generate services from.protofiles:Download and buildth2 Python service generatorproject with Gradle:gradle clean buildRun th2 Python service generator:java -jar {path_to_jar} -p src/main/proto/{package_name} -w PythonServiceWriter -o src/gen/main/python/{package_name}Generate code from.protofiles 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_USERandPYPI_PASSWORDare parameters for publishing.
Package: th2-grpc-books-validation
th2 gRPC generator template library (1.4.0)This is the template project for creating custom gRPC libraries. It contains an example of proto messages and services.The tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to the specified repositories.How to transform the templateCreate a directory with the same name as the project name (use underscores instead of dashes) undersrc/main/protodirectory (remove other files and directories if they exist).Place your custom.protofiles in the created directory. Pay attention to both thepackagespecifier and to theimportstatements.Editrelease_versionandvcs_urlproperties ingradle.propertiesfile.EditrootProject.namevariable insettings.gradlefile. This will be the name of the Java package.Editpackage_info.jsonfile in order to specify its name and its version for Python package (create the file in case it's absent).Edit parameters ofsetup.pyinsetupfunction invocation such as:author,author_email,url. Do not edit the other's parameters.EditREADME.mdfile according to the new project.Note that the name of the created directory undersrc/main/protodirectory is used in Python (it's a package name).How to maintain a projectPerform the necessary changes.Update the package version of Java ingradle.propertiesfile.Update the package version of Python inpackage_info.jsonfile.Commit everything.How to run projectJavaIf 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,USERandPASSWORDare parameters for publishing.PythonIf you wish to manually create and publish a package for Python:Generate services withGradle:gradle --no-daemon clean generateProtoYou can find the generated files by following path:src/gen/main/services/pythonGenerate code from.protofiles and publish everything usingtwine: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_USERandPYPI_PASSWORDare parameters for publishing.Release notes1.4.0Implement stubs creation for Python
Package: th2-grpc-check1
th2 gRPC check1 library (4.1.0)This library contains proto messages andCheck1service with RPC methods that are used inth2 check1. Seecheck1.protofile for details.Tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to the specified repositories.How to maintain a projectPerform the necessary changes.Update the package version of Java ingradle.propertiesfile.Update the package version of Python inpackage_info.jsonfile.Commit everything.JavaIf 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,USERandPASSWORDare parameters for publishing.PythonIf you wish to manually create and publish a package for Python:Generate services withGradle:gradle --no-daemon clean generateProtoYou can find the generated files by following path:src/gen/main/services/pythonGenerate code from.protofiles and publish everything usingtwine: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_USERandPYPI_PASSWORDare parameters for publishing.Release notes4.1.0merged3.8.04.0.0Migrated togrpc-commonversion with books/pagesMarked deprecated fields asreservedAddedbook_nametoCheckRuleRequest,CheckSequenceRuleRequestandNoMessageCheckRequest3.8.0Updateth2-bomto4.2.0Updategrpc-service-generatorto3.3.1Updated grpc to1.48.1Updated protobuf to3.21.7Add Python vulnerabilities scan3.7.0Updateth2-bomto4.1.03.6.0Update toth2-grpc-commonversion3.11.13.5.1Changed:grpc-commonversion is updated to 3.9.03.5.0Added:silence_checkparameter forCheckSequenceRule. Enables automated check for extra messages that match the pre-filter.Changed:Migratedgrpc-commonversion from3.7.0to3.8.0Addedtime_precisionanddecimal_precisiontoRootComparisonSettingsmessageAddedEQ_TIME_PRECISIONandEQ_DECIMAL_PRECISIONfilter operations3.4.2Migratedgrpc-commonversion from3.6.0to3.7.0Addedcheck_repeating_group_orderparameter toRootComparisonSettingsmessage3.4.1Migratedgrpc-commonversion from3.4.0to3.6.0Added the new parametersdescriptiontoRootMessageFiltermessage3.4.0Update toth2-grpc-commonversion3.4.03.3.0Implemented NoMessageCheck rule task. Updated CheckSequence rule task3.2.0Implement stubs creation for Python
Package: th2-grpc-check2-recon
th2 gRPC check2-recon libraryThis library contains proto messages andCheck2Reconservice with RPC methods that are used
inth2-check2-recon.
Seecheck2-recon.protofile for
details.Tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to the specified
repositories.How to maintain projectMake your changes.Up version of Java package ingradle.propertiesfile.Up version of Python package inpackage_info.jsonfile.Commit everything.How to run projectJavaIf 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,USERandPASSWORDare parameters for publishing.PythonIf you wish to manually create and publish a package for Python:Generate services withGradle:gradle --no-daemon clean generateProtoYou can find the generated files by following path:src/gen/main/services/pythonGenerate code from.protofiles and publish everything usingtwine: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_USERandPYPI_PASSWORDare parameters for publishing.
Package: th2-grpc-codec
th2 gRPC codec library (0.1.0)This library contains proto messages andCodecservice with RPC methods that are used inth2 codec. Seecodec.protofile for details.Tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to the specified repositories.How to maintain a projectPerform the necessary changes.Update the package version of Java ingradle.propertiesfile.Update the package version of Python inpackage_info.jsonfile.Commit everything.JavaIf 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,USERandPASSWORDare parameters for publishing.PythonIf you wish to manually create and publish a package for Python:Generate services withGradle:gradle --no-daemon clean generateProtoYou can find the generated files by following path:src/gen/main/services/pythonGenerate code from.protofiles and publish everything usingtwine: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_USERandPYPI_PASSWORDare parameters for publishing.Release notes0.1.0Updated grpc-common 4.3.00.0.2Added 'encode' methodUpdated serviceGeneratorVersion and grpcCommonVersion to support gRPC pins filters.0.0.1'decode' method
Package: th2-grpc-conn
th2 conn gRPC library (0.0.1)This library contains proto messages andconnservice with RPC methods which can be used in implementation of th2 conn. Seeconn.protofile for details.Tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to specified repositories.How to maintain projectMake your changes.Up version of Java package ingradle.propertiesfile.Up version of Python package inpackage_info.jsonfile.Commit everything.How to run projectJavaIf 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,USERandPASSWORDare parameters for publishing.PythonIf you wish to manually create and publish package for Python:Generate services from.protofiles:Download and buildth2 Python service generatorproject with Gradle:gradle clean buildRun th2 Python service generator:java -jar {path_to_jar} -p src/main/proto/{package_name} -w PythonServiceWriter -o src/gen/main/python/{package_name}Generate code from.protofiles 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_USERandPYPI_PASSWORDare parameters for publishing.
Package: th2-grpc-crawler-check2
th2 gRPC crawler check2 libraryThis is the template project for creating custom gRPC libraries. It contains example proto messages and services.Tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to specified repositories.How to transform templateCreate a directory with the same name as project name (use underscores instead of dashes) undersrc/main/protodirectory (remove other files and directories if they exist).Place your custom.protofiles in created directory. Pay attention topackagespecifier andimportstatements.Editrelease_versionandvcs_urlproperties ingradle.propertiesfile.EditrootProject.namevariable insettings.gradlefile. This will be the name of Java package.Editpackage_info.jsonfile in order to specify name and version for Python package (create file if it's absent).Edit parameters ofsetup.pyinsetupfunction invocation such as:author,author_email,url. Do not edit the others.EditREADME.mdfile according to the new project.Note that the name of created directory undersrc/main/protodirectory is used in Python (it's a package name).How to maintain projectMake your changes.Up version of Java package ingradle.propertiesfile.Up version of Python package inpackage_info.jsonfile.Commit everything.How to run projectJavaIf 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_USERandBINTRAY_KEYare parameters for publishing.PythonIf you wish to manually create and publish package for Python:Generate services by gradle:gradle --no-daemon clean generateProtoYou can find the generated files by following path:src/gen/main/services/pythonGenerate code from.protofiles 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_USERandPYPI_PASSWORDare parameters for publishing.
Package: th2-grpc-crawler-data-processor
th2 gRPC crawler data processor library (0.3.2)This project contains the gRPC interface to implement if you want to create your own crawler data processor.The crawler data processor work with thecrawlerHow to transform templateCreate a directory with the same name as project name (use underscores instead of dashes) undersrc/main/protodirectory (remove other files and directories if they exist).Place your custom.protofiles in created directory. Pay attention topackagespecifier andimportstatements.Editrelease_versionandvcs_urlproperties ingradle.propertiesfile.EditrootProject.namevariable insettings.gradlefile. This will be the name of Java package.Editpackage_info.jsonfile in order to specify name and version for Python package (create file if it's absent).Edit parameters ofsetup.pyinsetupfunction invocation such as:author,author_email,url. Do not edit the others.EditREADME.mdfile according to the new project.Note that the name of created directory undersrc/main/protodirectory is used in Python (it's a package name).How to maintain projectMake your changes.Up version of Java package ingradle.propertiesfile.Up version of Python package inpackage_info.jsonfile.Commit everything.How to run projectJavaIf 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_USERandBINTRAY_KEYare parameters for publishing.PythonIf you wish to manually create and publish package for Python:Generate services by gradle:gradle --no-daemon clean generateProtoYou can find the generated files by following path:src/gen/main/services/pythonGenerate code from.protofiles 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_USERandPYPI_PASSWORDare parameters for publishing.Changes:0.3.1Updateth2-grpc-data-providerPython dependency from0.1.4to0.1.60.3.0Updateth2-bomfrom3.0.0to3.1.0Updateth2-grpc-commonfrom3.1.2to3.8.0Add stubs for Python0.2.0 (Breaking changes)Breaking:Use list ofMessageIDinstead of mapping between session andMessageID.
User now will have to specifyMessageIDfor both directions in the response if he or she needs to set a checkpoint.
The list should contain a singleMessageIDfor each pairalias + direction.
If more than one is found the last one (according to their sequences) will be taken.The rpc methods was renamed according to the Protobuf naming convention (uses PascalCase).The event and message IDs from the response to connect method are removed because this functionality requires additional improvements on Crawler's side.Added:New method that will be invoked by the crawler each time the new interval is started.
Package: th2-grpc-crawler-data-service
th2 gRPC crawler data service libraryThis is the template project for creating custom gRPC libraries. It contains example proto messages and services.Tool generates code from.protofiles and uploads built packages (.protofiles and generated code) to specified repositories.How to transform templateCreate a directory with the same name as project name (use underscores instead of dashes) undersrc/main/protodirectory (remove other files and directories if they exist).Place your custom.protofiles in created directory. Pay attention topackagespecifier andimportstatements.Editrelease_versionandvcs_urlproperties ingradle.propertiesfile.EditrootProject.namevariable insettings.gradlefile. This will be the name of Java package.Editpackage_info.jsonfile in order to specify name and version for Python package (create file if it's absent).Edit parameters ofsetup.pyinsetupfunction invocation such as:author,author_email,url. Do not edit the others.EditREADME.mdfile according to the new project.Note that the name of created directory undersrc/main/protodirectory is used in Python (it's a package name).How to maintain projectMake your changes.Up version of Java package ingradle.propertiesfile.Up version of Python package inpackage_info.jsonfile.Commit everything.How to run projectJavaIf 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_USERandBINTRAY_KEYare parameters for publishing.PythonIf you wish to manually create and publish package for Python:Generate services by gradle:gradle --no-daemon clean generateProtoYou can find the generated files by following path:src/gen/main/services/pythonGenerate code from.protofiles 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_USERandPYPI_PASSWORDare parameters for publishing.