Saravanan666/pypi-org huggingface dataset:
Package: pip-services3-memcached
Memcached components for Pip.Services in PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.The Memcached module contains the following components: MemcachedLock and MemcachedCache for working with locks and cache on the Memcached server.The module contains the following packages:Build- a standard factory for constructing components.Cache- cache Components in MemcachedLock- components of working with locks in MemcachedQuick links:ConfigurationAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip-services3-memcachedDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe Python version of Pip.Services is created and maintained bySergey SeroukhovDanil Prisiazhnyi
Package: pip-services3-messaging
Asynchronous Messaging for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.The Messaging module contains a set of interfaces and classes for working with message queues, as well as an in-memory message queue implementation.The module contains the following packages:Build- in-memory message queue factoryConnect- TODO add descriptionQueues- contains interfaces for working with message queues, subscriptions for receiving messages from the queue, and an in-memory message queue implementation.Quick links:ConfigurationAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip_services3_messagingDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe Python version of Pip.Services is created and maintained by:Sergey SeroukhovDanil Prisiazhnyi
Package: pip-services3-mqtt
MQTT Messaging for Pip.Services in PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.The MQTT module contains a set of components for messaging using the Mqtt protocol. Contains the implementation of the components for working with messages: MqttMessageQueue, MqttConnectionResolver.The module contains the following packages:Build- factory default implementationConnect- components for setting up the connection to the MQTT brokerQueues- components of working with a message queue via the MQTT protocolQuick links:ConfigurationAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip-services3-mqttDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe Python version of Pip.Services is created and maintained bySergey SeroukhovDanil Prisiazhnyi
Package: pip-services3-mysql
MySQL components for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.The module contains the following packages:Build- a standard factory for constructing componentsConnect- instruments for configuring connections to the database.Persistence- abstract classes for working with the database that can be used for connecting to collections and performing basic CRUD operationsQuick links:ConfigurationAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip-services3-mysqlDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe library is created and maintained by:Sergey SeroukhovDanil PrisiazhnyiThe documentation is written byMark Makarychev.
Package: pip-services3-prometheus
Prometheus components for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.The module contains components for working with meters in the Prometheus service. The PrometheusCounters and PrometheusMetricsService components allow you to work both in client mode through PushGateway, and as a service.The module contains the following packages:Build- the default factories for constructing components.Count- components of counters (metrics) with sending data to Prometheus via PushGatewayServices- components of the service for reading counters (metrics) by the Prometheus serviceQuick links:ConfigurationAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip_services3_prometheusDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe module is created and maintained by:Sergey SeroukhovDanil Prisiazhnyi
Package: pip-services3-redis
Redis components for Pip.Services for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.The module for working with a Redis database of type key-value contains components for working with cache and locks: RedisCache and RedisLock.The module contains the following packages:Build- factory defaultCache- Redis Cache ComponentsLock- components of working with locks in RedisQuick links:ConfigurationAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip-services3-redisDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe Python version of Pip.Services is created and maintained bySergey SeroukhovDanil Prisiazhnyi
Package: pip-services4-aws
AWS specific components for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.This module contains components for supporting work with the AWS cloud platform.The module contains the following packages:Build- factories for constructing module componentsClients- client components for working with Lambda AWSConnect- components of installation and connection settingsContainer- components for creating containers for Lambda server-side AWS functionsCount- components of working with counters (metrics) with saving data in the CloudWatch AWS serviceLog- logging components with saving data in the CloudWatch AWS serviceQuick links:ConfigurationAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip-services4-awsDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe Python version of Pip.Services is created and maintained bySergey SeroukhovDanil Prisiazhnyi
Package: pip-services4-azure
Azure specific components for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.Contains packages used to create containers and services that do operations via the Azure cloud.The module contains the following packages:Clients- client components for working with Azure cloud Functions.Connect- components for installation and connection settings.Containers- contains classes that act as containers to instantiate and run components.Services- contains interfaces and classes used to create services that do operations via the Azure Function protocol.Quick links:Configuration PatternAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip-services4-azureDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe library is created and maintained by:Sergey SeroukhovDanil Prisiazhnyi
Package: pip-services4-config
Config Components for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.The Config module contains configuration component definitions that can be used to build applications and services.The module contains the following packages:Auth- authentication credential storesConfig- configuration readers and managers, whose main task is to deliver configuration parameters to the application from wherever they are being storedConnect- connection discovery and configuration servicesQuick links:API ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip_services4_configExample how to get connection parameters and credentials using resolvers.
The resolvers support "discovery_key" and "store_key" configuration parameters
to retrieve configuration from discovery services and credential stores respectively.frompip_services3_commons.configimportConfigParams,IConfigurablefrompip_services3_commons.referimportIReferences,IReferenceablefrompip_services3_commons.runimportIOpenablefrompip_services3_components.authimportCredentialParams,CredentialResolverfrompip_services3_components.connectimportConnectionParams,ConnectionResolverclassMyComponent(IConfigurable,IReferenceable,IOpenable):__connection_resolver=ConnectionResolver()__credential_resolver=CredentialResolver()defconfigure(self,config):self.__connection_resolver.configure(config)self.__credential_resolver.configure(config)defset_references(self,references):self.__connection_resolver.set_references(references)self.__credential_resolver.set_references(references)# ...defopen(self,context):connection=self.__connection_resolver.resolve(context)credential=self.__credential_resolver.lookup(context)host=connection.get_post()port=connection.get_port()user=credential.get_username()pas=credential.get_password()# ...# Using the componentmy_component=MyComponent()my_component.configure(ConfigParams.from_tuples('connection.host','localhost','connection.port',1234,'credential.username','anonymous','credential.password','pass123'))my_component.open(None)DevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe initial implementation is done bySergey Seroukhov. Pip.Services team is looking for volunteers to
take ownership over Python implementation in the project.
Package: pip-services4-data
Pip.Services DataPip.Services is an open-source library of basic microservices.
pip_services4_data provides data processing and persistence components.Links* `website <http://github.com/pip-services/pip-services>`_
* `development version <http://github.com/pip-services4/pip-services4-python/tree/main/pip-services4-data-python>`
Package: pip-services4-datadog
DataDog components for Pip.Services in PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.
It contains the DataDog logger and performance counters components.The module contains the following packages:Build- contains a class used to create DataDog components by their descriptors.Clients- contains constants and classes used to define REST clients for DataDogCount- contains a class used to create performance counters that send their metrics to a DataDog serviceLog- contains a class used to create loggers that dump execution logs to a DataDog service.Quick links:ConfigurationAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip-services4-datadogDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe Python version of Pip.Services is created and maintained bySergey SeroukhovDanil Prisiazhnyi
Package: pip-services4-elasticsearch
Pip.Services ElasticsearchPip.Services is an open-source library of basic microservices.
pip_services4_elasticsearch  contains logging components with data storage on the Elasticsearch server.Links* `website <http://github.com/pip-services/pip-services>`_
* `development version <http://github.com/pip-services4/pip-services4-python/tree/main/pip-services4-elasticsearch-python>`
Package: pip-services4-expressions
Tokenizers, parsers and expression calculators in PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.
It provides syntax and lexical analyzers and expression calculator optimized for repeated calculations.The module contains the following packages:Calculator- Expression calculatorCSV- CSV tokenizerIO- input/output utility classes to support lexical analysisMustache- Mustache templating engineTokenizers- lexical analyzers to break incoming character streams into tokensVariants- dynamic objects that can hold any values and operators for themQuick links:API ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip-services3-expressionsThe example below shows how to use expression calculator to dynamically
calculate user-defined expressions.frompip_services4_expressions.variants.VariantimportVariantfrompip_services4_expressions.calculator.variables.VariableimportVariablefrompip_services4_expressions.calculator.ExpressionCalculatorimportExpressionCalculatorfrompip_services4_expressions.calculator.variables.VariableCollectionimportVariableCollection# ...clalculator=ExpressionCalculator()clalculator.expression="A + b / (3 - Max(-123, 1)*2)"vars=VariableCollection()vars.add(Variable("A",Variant(1)))vars.add(Variable("B",Variant(3)))result=clalculator.evaluate_with_variables(vars)print('The result of the expression is '+result.as_string)# ...This is an example to process mustache templates.mustache=MustacheTemplate()mustache.template="Hello, {{{NAME}}}{{#ESCLAMATION}}!{{/ESCLAMATION}}{{#unless ESCLAMATION}}.{{/unless}}"result=mustache.evaluate_with_variables({'NAME':'Mike','ESCLAMATION':True})print("The result of template evaluation is '"+result+"'")DevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe module is created and maintained by:Sergey SeroukhovDanil Prisiazhnyi
Package: pip-services4-gcp
Pip.Services GCPPip.Services is an open-source library of basic microservices.
pip_services4_gcp provides synchronous and asynchronous communication components.Links* `website <http://github.com/pip-services-python/>`_
* `development version <http://github.com/pip-services4/pip-services4-python/tree/main/pip-services4-gcp-python>`
Package: pip-services4-grpc
Pip.Services gRRPCPip.Services is an open-source library of basic microservices.
pip_services4_grpc provides grpc clients and controllers components.Links* `website <http://github.com/pip-services/pip-services>`_
* `development version <http://github.com/pip-services4/pip-services4-python/tree/main/tree/main//pip-services4-grpc-python>`
Package: pip-services4-http
Pip.Services RpcPip.Services is an open-source library of basic microservices.
pip_services4_http provides synchronous and asynchronous communication components.Links* `website <http://github.com/pip-services-python/>`_
* `development version <http://github.com/pip-services4/pip-services4-python/tree/main/pip-services4-http-python>`
Package: pip-services4-logic
Business Logic Components for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.The Logic module contains standard component definitions to handle complex business transactions.The module contains the following packages:Cache- distributed cacheLock-  distributed lock componentsState-  distributed state management componentsQuick links:LoggingConfigurationAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip_services4_logicExample how to use caching and locking.
Here we assume that references are passed externally.frompip_services3_commons.referimportDescriptor,References,IReferences,IReferenceablefrompip_services4_logic.cacheimportICache,MemoryCachefrompip_services4_logic.lock.ILockimportILockfrompip_services4_logic.lock.MemoryLockimportMemoryLockclassMyComponent(IReferenceable):__cache:ICache__lock:ILockdefset_references(self,references:IReferences):self.__cache=references.get_one_required(Descriptor("*","cache","*","*","1.0"))self.__lock=references.get_one_required(Descriptor("*","lock","*","*","1.0"))defmy_method(self,context,param1):# First check cache for resultresult=self.__cache.retrieve(context,'mykey')# Lock..self.__lock.acquire_lock(context,"mykey",1000,1000,)# Do processing# ...# Store result to cache asyncself.__cache.store(context,'mykey',result,3600000)# Release lock asyncself.__lock.release_lock(context,'mykey')returnresult# Use the componentmy_component=MyComponent()my_component.set_references(References.from_tuples(Descriptor("pip-services","cache","memory","default","1.0"),MemoryCache(),Descriptor("pip-services","lock","memory","default","1.0"),MemoryLock(),))result=my_component.my_method(None,param1)If you need to create components using their locators (descriptors) implement
component factories similar to the example below.frompip_services3_commons.referimportDescriptorfrompip_services4_components.buildimportFactoryclassMyFactory(Factory):my_component_descriptor=Descriptor("myservice","mycomponent","default","*","1.0")def__init__(self):super(MyFactory,self).__init__()self.register_as_type(MyFactory.my_component_descriptor,MyFactory)# Using the factorymy_factory=MyFactory()my_component1=my_factory.create(Descriptor("myservice","mycomponent","default","myComponent1","1.0"))my_component2=my_factory.create(Descriptor("myservice","mycomponent","default","myComponent2","1.0"))...DevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe initial implementation is done bySergey Seroukhov. Pip.Services team is looking for volunteers to
take ownership over Python implementation in the project.
Package: pip-services4-memcached
Pip.Services MemcachedPip.Services is an open-source library of basic microservices.
The Memcached module contains the following components: MemcachedLock and MemcachedCache for working with locks and cache on the Memcached server.
Links* `website <http://github.com/pip-services-python/>`_
* `development version <http://github.com/pip-services3-python/pip-services4-memcached-python>`
Package: pip-services4-messaging
Pip.Services NetPip.Services is an open-source library of basic microservices.
pip_services4_messaging provides messaging components.Links* `website <http://github.com/pip-services-python/pip-services-python-messaging>`_
* `development version <http://github.com/pip-services4/pip-services4-python/tree/main/pip-services4-messaging-python>`
Package: pip-services4-observability
Observability Components for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.The Observability module contains observability component definitions that can be used to build applications and services.The module contains the following packages:Count- performance countersLog- basic logging components that provide console and composite logging, as well as an interface for developing custom loggersTrace- tracing componentsQuick links:LoggingAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip_services4_observabilityExample how to use Logging and Performance counters.
Here we are going to use CompositeLogger and CompositeCounters components.
They will pass through calls to loggers and counters that are set in references.classMyComponent(IConfigurable,IReferenceable):__logger=CompositeLogger()__counters=CompositeCounters()defconfigure(self,config):self.__logger.configure(config)defset_references(self,references):self.__logger.set_references(references)self.__counters.set_references(references)defmy_method(self,context,param1):try:self.__logger.trace(context,"Executed method mycomponent.mymethod")self.__counters.increment("mycomponent.mymethod.exec_count",1)timing=self.__counters.begin_timing("mycomponent.mymethod.exec_time")# ...timing.end_timing()exceptExceptionasex:self.__logger.error(context,ex,"Failed to execute mycomponent.mymethod")self.__counters.increment("mycomponent.mymethod.error_count",1)DevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe initial implementation is done bySergey Seroukhov. Pip.Services team is looking for volunteers to
take ownership over Python implementation in the project.
Package: pip-services4-persistence
Persistence components for PythonThis module is a part of thePip.Servicespolyglot microservices toolkit.It dynamic and static objects and data handling components.The module contains the following packages:Data- data patternsKeys- object key (id) generatorsProcess- data processing componentsQuery- data query objectsRandom- random data generatorsValidate- validation patternsQuick links:Memory persistenceAPI ReferenceChange LogGet HelpContributeUseInstall the Python package aspipinstallpip_services4_persistenceDevelopFor development you shall install the following prerequisites:Python 3.7+Visual Studio Code or another IDE of your choiceDockerInstall dependencies:pipinstall-rrequirements.txtRun automated tests:pythontest.pyGenerate API documentation:./docgen.ps1Before committing changes run dockerized build and test as:./build.ps1
./test.ps1
./clear.ps1ContactsThe Python version of Pip.Services is created and maintained bySergey Seroukhov
Package: pip-services4-redis
Pip.Services RedisPip.Services is an open-source library of basic microservices.
pip_services4_redis module for working with a Redis database of type key-value contains components for working with cache and locks.Links* `website <http://github.com/pip-services-python/>`_
* `development version <http://github.com/pip-services4-python/pip-services4-redis-python>`