Saravanan666/pypi-org huggingface dataset:
Package: google-cloud-logger
python_google_cloud_loggerPython log formatter for Google Cloud according tov2 specificationusingpython-json-loggerformatterInspired by Elixir'slogger_jsonInstalationPipenvpipenv install google_cloud_loggerPippip install google_cloud_loggerUsageLOG_CONFIG={"version":1,"formatters":{"json":{"()":"google_cloud_logger.GoogleCloudFormatter","application_info":{"type":"python-application","name":"Example Application"},"format":"[%(asctime)s]%(levelname)sin%(module)s:%(message)s"}},"handlers":{"json":{"class":"logging.StreamHandler","formatter":"json"}},"loggers":{"root":{"level":"INFO","handlers":["json"]}}}importloggingfromloggingimportconfigconfig.dictConfig(LOG_CONFIG)# load log config from dictlogger=logging.getLogger("root")# get root logger instancelogger.info("farofa",extra={"extra":"extra"})# log message with extra argumentsExample output:{"timestamp":"2018-11-03T22:05:03.818000Z","severity":"INFO","message":"farofa","labels":{"type":"python-application","name":"Example Application"},"metadata":{"userLabels":{"extra":"extra"}},"sourceLocation":{"file":"<ipython-input-9-8e9384d78e2a>","line":1,"function":"<module>"}}CreditsThanks@thulio,@robsonpeixoto,@ramondelemos
Package: google-cloud-logging
Cloud Logging API: Writes log entries and manages your Cloud
Logging configuration.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Cloud Logging API.Setup Authentication.For an interactive walkthrough on how to use this library in a python application, click the Guide Me button below:InstallationInstall this library in avenvusing pip.venvis a tool to
create isolated Python environments. The basic problem it addresses is one of
dependencies and versions, and indirectly permissions.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Supported Python VersionsPython >= 3.7Unsupported Python VersionsPython == 2.7. The last version of the library compatible with Python 2.7 isgoogle-cloud-logging==1.15.1.
Python == 3.6. The last version of the library compatible with Python 3.6 isgoogle-cloud-logging==3.1.2.Mac/Linuxpython -m venv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-loggingWindowspython -m venv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-loggingNext StepsRead theSetting Up Cloud Logging for PythonHow-to GuideRead theProduct documentationto learn more about the product and see
other How-to Guides.Read theClient Library Documentationfor to see other available
methods on the client.
Package: google-cloud-logging-handler
google-cloud-logging-handlerAllows logging directly into Google Cloud.MotivationWhen you don't want to log to text files and have a sidecar to ship your logs to Google Cloud, you can use this to send the logs directly to Google Cloud.This is similar to what theLogback pluginis intended for.UsageYou can use it just like any other logging.Handler.For exampleimportloggingfromloggingimportconfigLOG_CONFIG={'version':1,'formatters':{'text':{'format':'%(message)s',}},'handlers':{'stdout':{'class':'logging.StreamHandler'},'cloud_text':{'class':'google_cloud_logging_handler.GoogleCloudHandler','log_name':'server-deep_app','formatter':'text'}},'loggers':{'text':{'level':'INFO','handlers':['cloud_text','stdout']}}}config.dictConfig(LOG_CONFIG)text_logger=logging.getLogger('text')text_logger.info("Text 1")
Package: google-cloud-managed-identities
Managed Service for Microsoft Active Directory: is a highly available, hardened Google Cloud service running actual Microsoft AD that enables you to manage authentication and authorization for your AD-dependent workloads, automate AD server maintenance and security configuration, and connect your on-premises AD domain to the cloud.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Managed Service for Microsoft Active Directory.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-managed-identitiesWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-managed-identitiesNext StepsRead theClient Library Documentationfor Managed Service for Microsoft Active Directory
to see other available methods on the client.Read theManaged Service for Microsoft Active Directory Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-media-translation
Media Translation: provides enterprise quality translation from/to various media types.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Media Translation.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-media-translationWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-media-translationNext StepsRead theClient Library Documentationfor Media Translation
to see other available methods on the client.Read theMedia Translation Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-memcache
Cloud Memorystore for Memcached: is a fully-managed in-memory data store service for Memcache.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Cloud Memorystore for Memcached.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-memcacheWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-memcacheNext StepsRead theClient Library Documentationfor Cloud Memorystore for Memcached
to see other available methods on the client.Read theCloud Memorystore for Memcached Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-migrationcenter
Migration Center API: A unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Migration Center API.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-migrationcenterWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-migrationcenterNext StepsRead theClient Library Documentationfor Migration Center API
to see other available methods on the client.Read theMigration Center API Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-mlflow
MLflow plugin for Google Cloud Vertex AINote: The plugin isexperimentaland may be changed or removed in the future.Installationpython3-mpipinstallgoogle_cloud_mlflowDeployment plugin usageCommand-lineCreate deploymentmlflowdeploymentscreate--targetgoogle_cloud--name"deployment name"--model-uri"models:/mymodel/mymodelversion"--configdestination_image_uri="gcr.io/<repo>/<path>"List deploymentsmlflowdeploymentslist--targetgoogle_cloudGet deploymentmlflowdeploymentsget--targetgoogle_cloud--name"deployment name"Delete deploymentmlflowdeploymentsdelete--targetgoogle_cloud--name"deployment name"Update deploymentmlflowdeploymentsupdate--targetgoogle_cloud--name"deployment name"--model-uri"models:/mymodel/mymodelversion"--configdestination_image_uri="gcr.io/<repo>/<path>"Predictmlflowdeploymentspredict--targetgoogle_cloud--name"deployment name"--input-path"inputs.json"--output-path"outputs.jsonGet helpmlflowdeploymentshelp--targetgoogle_cloudPythonfrommlflowimportdeploymentsclient=deployments.get_deploy_client("google_cloud")# Create deploymentmodel_uri="models:/mymodel/mymodelversion"deployment=client.create_deployment(name="deployment name",model_uri=model_uri,# Config is optionalconfig=dict(# Deployed model configmachine_type="n1-standard-2",min_replica_count=None,max_replica_count=None,accelerator_type=None,accelerator_count=None,service_account=None,explanation_metadata=None,# JSON stringexplanation_parameters=None,# JSON string# Model container image building configdestination_image_uri=None,# Endpoint configendpoint_description=None,endpoint_deploy_timeout=None,# Vertex AI configproject=None,location=None,encryption_spec_key_name=None,staging_bucket=None,))# List deploymentsdeployments=client.list_deployments()# Get deploymentdeployments=client.get_deployment(name="deployment name")# Delete deploymentdeployment=client.delete_deployment(name="deployment name")# Update deploymentdeployment=client.create_deployment(name="deployment name",model_uri=model_uri,# Config is optionalconfig=dict(...),)# Predictimportpandasdf=pandas.DataFrame([{"a":1,"b":2,"c":3},{"a":4,"b":5,"c":6}])predictions=client.predict("deployment name",df)Model Registry plugin usageSet the MLflow Model Registry URI to a directory in some Google Cloud Storage bucket, then log models usingmlflow.log_modelas usual.mlflow.set_registry_uri("gs://<bucket>/models/")
Package: google-cloud-monitoring
Stackdriver Monitoring: collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation. Using the BindPlane service, you can also collect this data from over 150 common application components, on-premise systems, and hybrid cloud systems. Stackdriver ingests that data and generates insights via dashboards, charts, and alerts. BindPlane is included with your Google Cloud project at no additional cost.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Stackdriver Monitoring.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-monitoringWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-monitoringNext StepsRead theClient Library Documentationfor Stackdriver Monitoring
to see other available methods on the client.Read theStackdriver Monitoring Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-monitoring-dashboards
Monitoring Dashboards: are one way for you to view and analyze metric data. The Cloud Console provides predefined dashboards that require no setup or configuration. You can also define custom dashboards. With custom dashboards, you have complete control over the charts that are displayed and their configuration.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Monitoring Dashboards.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-monitoring-dashboardsWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-monitoring-dashboardsNext StepsRead theClient Library Documentationfor Monitoring Dashboards
to see other available methods on the client.Read theMonitoring Dashboards Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-monitoring-metrics-scopes
Metrics Scopes: Manages your Cloud Monitoring data and configurations.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Metrics Scopes.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-monitoring-metrics-scopesWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-monitoring-metrics-scopesNext StepsRead theClient Library Documentationfor Metrics Scopes
to see other available methods on the client.Read theMetrics Scopes Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-natural-language
Python idiomatic client forGoogle Cloud Natural LanguageDocumentationQuick Start$pipinstall--upgradegoogle-cloud-language$# OR$pipinstall--upgradegoogle-cloud-natural-languageAuthenticationWithgoogle-cloud-pythonwe try to make authentication as painless as
possible. Check out theAuthentication sectionin our documentation to
learn more. You may also find theauthentication documentshared by all
thegoogle-cloud-*libraries to be helpful.Using the APIThe Google CloudNatural LanguageAPI (Natural Language API docs)
provides natural language understanding technologies to developers,
including sentiment analysis, entity recognition, and syntax analysis.
This API is part of the larger Cloud Machine Learning API.See thegoogle-cloud-pythonAPI Natural LanguageDocumentationto learn
how to analyze text with this API.
Package: google-cloud-ndb
Google Cloud DatastorendbClient LibraryIntroductionThis is an updated version of thendbclient library for use withGoogle Cloud Datastore.Client Library DocumentationThe original Python 2 version ofndbwas designed specifically for theGoogle App Enginepython27runtime and can be found athttps://github.com/GoogleCloudPlatform/datastore-ndb-python. This version ofndbis designed for theGoogle App Engine Python 3 runtime, and will
run on other Python platforms as well.Release StatusGASupported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.
Package: google-cloud-netapp
NetApp API: NetApp APIClient Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the NetApp API.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-netappWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-netappNext StepsRead theClient Library Documentationfor NetApp API
to see other available methods on the client.Read theNetApp API Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.
Package: google-cloud-network-connectivity
Network Connectivity Center: The Network Connectivity API will be home to various services which provide information pertaining to network connectivity.  This includes information like interconnects, VPNs, VPCs, routing information, ip address details, etc. This information will help customers verify their network configurations and helps them to discover misconfigurations, inconsistencies, etc.Client Library DocumentationProduct DocumentationQuick StartIn order to use this library, you first need to go through the following steps:Select or create a Cloud Platform project.Enable billing for your project.Enable the Network Connectivity Center.Setup Authentication.InstallationInstall this library in a virtual environment usingvenv.venvis a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project’s dependencies
from the dependencies of other projects.Withvenv, it’s possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.Code samples and snippetsCode samples and snippets live in thesamples/folder.Supported Python VersionsOur client libraries are compatible with all currentactiveandmaintenanceversions of
Python.Python >= 3.7Unsupported Python VersionsPython <= 3.6If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.Mac/Linuxpython3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-network-connectivityWindowspy -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-network-connectivityNext StepsRead theClient Library Documentationfor Network Connectivity Center
to see other available methods on the client.Read theNetwork Connectivity Center Product documentationto learn
more about the product and see How-to Guides.View thisREADMEto see the full list of Cloud
APIs that we cover.