Saravanan666/pypi-org huggingface dataset:
Package: opentelemetry-instrumentation-watsonx
OpenTelemetry IBM Watsonx InstrumentationThis library allows tracing IBM Watsonx prompts and completions sent with the officialIBM Watson Machine Learning library.Installationpipinstallopentelemetry-instrumentation-watsonxPrivacyBy default, this instrumentation logs prompts, completions, and embeddings to span attributes. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.To disable logging, set theTRACELOOP_TRACE_CONTENTenvironment variable tofalse.TRACELOOP_TRACE_CONTENT=false
Package: opentelemetry-instrument-openai
opentelemetry-instrument-openaiIt's OpenTelemetry instrumentation (python) for OpenAI's library.Project site:https://github.com/cartermp/opentelemetry-instrument-openai-pySupported APIs:ChatEmbeddingsModerationImage (generation, edit, variation)Audio (transcribe, translate)Completion (GPT-3)Edit (GPT-3)How to use itSimple! First, install this package.UsageWith autoinstrumentation agent:poetry add opentelemetry-instrument-openai
poetry run opentelemetry-bootstrap -a install
poetry run opentelemetry-instrument python your_app.pyIf you prefer to do it in code, you can do that too:importopenaifromdotenvimportload_dotenvfromopentelemetry.instrument.openaiimportOpenAIInstrumentorOpenAIInstrumentor().instrument()load_dotenv()openai.api_key=os.getenv("OPENAI_API_KEY")openai.ChatCompletion.create(model="gpt-3.5-turbo",messages=[{"role":"user","content":"Tell me a joke about opentelemetry"}],)You can then run your app normally with your own opentelemetry initialization.How to developGetpoetry.Now install and run tests:poetry install
poetry run pytestNow you can develop and run tests as you go!How to run the exampleClick the example folder and read the README.
Package: open-telemetry-kit
Open Telemetry KitThe Open Telemetry Kit (OTK) is an open source package for extracting and parsing telemetry associated with video streams and converting to common formats.
It comes out of a need for a singular API that can be used for multiple different video telemetry formats.Telemetry that can be parsed includes: GPS, time, camera information, speedFeatures:Automatically detect telemetry formatManipulate telemetry with easeWrite telemetry to a new formatGetting StartedDependenciesPython version:>=3.6ffmpegandffprobe.On Debian systems these can be installed with:$ sudo apt install ffmpegdateutilOn Debian systems this can be installed with:$ pip3 install python-dateutilInstallation$ pip3 install open-telemetry-kitImportingThe OTK package can be imported into your python3 project with:import open_telemetry_kit as otkQuick StartDownload the OTK Quickstart package with sample dataDownload the OTK quickstart package (~90 MB).
(Mac users can installwgetusingthese instructions)$ wgethttps://hivemapper-sample-videos.s3-us-west-2.amazonaws.com/OTK/OTK_quickstart.tgzThis includes a sample.csv,.srt, and.movwith embedded telemetry.
It also containsquickstart.pywhich you can use to extract the telemetry from the sample files.Extract the package:$ tar xzvf OTK_quickstart.tgzThis will extract everything into a new directory calledOTK_quickstart/Thequickstart.pyscript accepts a standalone.csvor.srtor a video file with an embedded.srt.
It will read in the data, convert it to JSON, and write it to the provided destination.Telemetry extraction and conversion exampleIn your terminal go to the newOTK_quickstartdirectory.Extract telemetry from the sample video:$ python3 quickstart.py embedded_srt_example.mov embedded_srt_example.jsonExtract telemetry from the samplesrtorcsvfiles respectively:$ python3 quickstart.py srt_example.srt srt_example.json$ python3 quickstart.py csv_example.csv csv_example.jsonNote: This process will create a new JSON file containing the telemetry extracted from the sample file.
The data is organized into an array of objects (or, in python terminology, a list of dictionaries)Data manipulation exampleFor an example of simple data manipulation, openquickstart.pyand uncomment the lines:# gps = Telemetry()
# for packet in telemetry:
#   gps.append({ k:v for k, v in packet.items() if k in ['latitude', 'longitude', 'altitude']})

# write.telemetryToJson(gps, dest)Rerun the script with one of the provided commands above.Current FunctionalityInput FormatsThe OTK currently supports the following forms of telemetry:.csvfiles.srtfilesMost videos file with embedded telemetry encoded as a.srt(e.g. video taken with some DJI drone models).gpxfiles.kmlfilesKLV/MISB embedded dataOpen Camera.srtOutput FormatsJSONCSVFuture ReleasesPlanned expansions and updates for the OTK include:Input FormatsOutput FormatsgeoJSONOtherUnit Tests
Package: opentelemetry-propagator-aws-xray
This library provides the propagator necessary to inject or extract a tracing
context across AWS services.Installationpip install opentelemetry-propagator-aws-xrayUsage (AWS X-Ray Propagator)NOTE: Because the parent context extracted from theX-Amzn-Trace-Idheader
assumes the context is _not_ sampled by default, users should make sure to addSampled=1to theirX-Amzn-Trace-Idheaders so that the child spans are
sampled.Use the provided AWS X-Ray Propagator to inject the necessary context into
traces sent to external systems.This can be done by either setting this environment variable:export OTEL_PROPAGATORS = xrayOr by setting this propagator in your instrumented application:fromopentelemetry.propagateimportset_global_textmapfromopentelemetry.propagators.awsimportAwsXRayPropagatorset_global_textmap(AwsXRayPropagator())ReferencesOpenTelemetry ProjectAWS X-Ray Propagation Trace Header
Package: opentelemetry-propagator-gcp
This library provides support for propagating trace context in the Google
CloudX-Cloud-Trace-Contextformat.Installationpipinstallopentelemetry-propagator-gcpUsageTheCloudTraceOneWayPropagatorreads the Google CloudX-Cloud-Trace-Contextformat, but does not write theX-Cloud-Trace-Contextheader on outgoing requests. It is intended for use
with a CompositePropagator as below.fromopentelemetry.propagateimportset_global_textmapfromopentelemetry.propagators.compositeimportCompositePropagatorfromopentelemetry.propagators.cloud_trace_propagatorimport(CloudTraceOneWayPropagator,)set_global_textmap(CompositePropagator([CloudTraceOneWayPropagator(),propagate.get_global_textmap(),]),)TheCloudTraceFormatPropagatorreads and writes theX-Cloud-Trace-Contextheader formats. Note that when using this propagator,
thesampledbit is interpreted as theTRACE_TRUEflag, which may cause a
higher sampling rate than desired. See theTrace documentation
<https://cloud.google.com/trace/docs/setup#force-trace>for additional context.fromopentelemetry.propagateimportset_global_textmapfromopentelemetry.propagators.cloud_trace_propagatorimport(CloudTraceFormatPropagator,)# Set the X-Cloud-Trace-Context headerset_global_textmap(CloudTraceFormatPropagator())fromopentelemetry.propagateimportset_global_textmapfromopentelemetry.propagators.cloud_trace_propagatorimport(CloudTraceFormatPropagator,)# Set the X-Cloud-Trace-Context headerset_global_textmap(CloudTraceFormatPropagator())ReferencesCloud TraceOpenTelemetry Project
Package: opentelemetry-propagator-ot-trace
Installationpip install opentelemetry-propagator-ot-traceOTTrace FormatSo far there is no “formal” specification of the OTTrace format. The best
document that servers this purpose that exists now isthisimplementation.Header NameDescriptionRequiredot-tracer-traceiduint64 encoded as a string of 16 hex charactersyesot-tracer-spaniduint64 encoded as a string of 16 hex charactersyesot-tracer-sampledboolean encoded as a string with the valuestrueorfalsenoot-baggage-*repeated string to string key-value baggage items; keys are prefixed withot-baggage-and the corresponding value is the raw stringif baggage is presentInterop and trace idsThe OT Trace propagation format expects trace ids to be 64-bits. In order to
interop with OpenTelemetry, trace ids need to be truncated to 64-bits before
sending them on the wire. When truncating, the least significant (right-most)
bits MUST be retained. For example, a trace id of3c3039f4d78d5c02ee8e3e41b17ce105would be truncated toee8e3e41b17ce105.ReferencesOpenTelemetry Project
Package: opentelemetry-proto
This library contains the generated code for OpenTelemetry protobuf data model. The code in the current
package was generated using the v0.20.0releaseof opentelemetry-proto.Installationpip install opentelemetry-protoCode GenerationThese files were generated automatically from code inopentelemetry-proto.
To regenerate the code, run../scripts/proto_codegen.sh.To build against a new release or specific commit ofopentelemetry-proto,
update thePROTO_REPO_BRANCH_OR_COMMITvariable in../scripts/proto_codegen.sh. Then run the script and commit the changes
as well as any fixes needed in the OTLP exporter.ReferencesOpenTelemetry ProjectOpenTelemetry Protoproto_codegen.sh script
Package: opentelemetry-resource-detector-azure
This library contains OpenTelemetryResource Detectorsfor the following Azure resources:Azure App ServiceAzure Virtual MachinesInstallationpip install opentelemetry-resource-detector-azureUsage example foropentelemetry-resource-detector-azurefromopentelemetryimporttracefromopentelemetry.sdk.traceimportTracerProviderfromopentelemetry.resource.detector.azure.app_serviceimport(AzureAppServiceResourceDetector,AzureVMResourceDetector,)fromopentelemetry.resource.detector.azure.vmimport(AzureVMResourceDetector,)fromopentelemetry.sdk.resourcesimportget_aggregated_resourcestrace.set_tracer_provider(TracerProvider(resource=get_aggregated_resources([AzureAppServiceResourceDetector(),AzureVMResourceDetector(),]),))MappingsThe Azure App Service Resource Detector sets the following Resource Attributes:service.nameset to the value of theWEBSITE_SITE_NAMEenvironment variable.cloud.platformset toazure_app_service.cloud.providerset toazure.cloud.resource_idset using theWEBSITE_RESOURCE_GROUP,WEBSITE_OWNER_NAME, andWEBSITE_SITE_NAMEenvironment variables.cloud.regionset to the value of theREGION_NAMEenvironment variable.deployment.environmentset to the value of theWEBSITE_SLOT_NAMEenvironment variable.host.idset to the value of theWEBSITE_HOSTNAMEenvironment variable.service.instance.idset to the value of theWEBSITE_INSTANCE_IDenvironment variable.azure.app.service.stampset to the value of theWEBSITE_HOME_STAMPNAMEenvironment variable.The Azure VM Resource Detector sets the following Resource Attributes according to the response from theAzure Metadata Service:azure.vm.scaleset.nameset to the value of thevmScaleSetNamefield.azure.vm.skuset to the value of theskufield.cloud.platformset to the value of theazure_vm.cloud.providerset to the value of theazure.cloud.regionset to the value of thelocationfield.cloud.resource_idset to the value of theresourceIdfield.host.idset to the value of thevmIdfield.host.nameset to the value of thenamefield.host.typeset to the value of thevmSizefield.os.typeset to the value of theosTypefield.os.versionset to the value of theversionfield.service.instance.idset to the value of thevmIdfield.For more information, see theSemantic Conventions for Cloud Resource Attributes.ReferencesOpenTelemetry Project
Package: opentelemetry-resourcedetector-docker
opentelemetry-resourcedetector-dockerAn OpenTelemetry package to populates Resource attributes from Docker containers.Usagefrom opentelemetry.sdk.resources import get_aggregated_resources
from opentelemetry_resourcedetector_docker import DockerResourceDetector

...

resource = get_aggregated_resources([
    DockerResourceDetector(),
    SomeOtherResourceDetector()
])

... pass the returned `resource` to a TracerProvder, for example ...
Package: opentelemetry-resourcedetector-process
opentelemetry-resourcedetector-processAn OpenTelemetry package to populates Resource attributes from the running process.Usagefrom opentelemetry.sdk.resources import get_aggregated_resources
from opentelemetry_resourcedetector_process import ProcessResourceDetector

...

resource = get_aggregated_resources([
    ProcessResourceDetector(),
    SomeOtherResourceDetector()
])

... pass the returned `resource` to a TracerProvder, for example ...
Package: opentelemetry-sdk-extension-aws
This library provides components necessary to configure the OpenTelemetry SDK
for tracing with AWS X-Ray.Installationpip install opentelemetry-sdk-extension-awsUsage (AWS X-Ray IDs Generator)Configure the OTel SDK TracerProvider with the provided custom IDs Generator to
make spans compatible with the AWS X-Ray backend tracing service.Install the OpenTelemetry SDK package.pip install opentelemetry-sdkNext, use the providedAwsXRayIdGeneratorto initialize theTracerProvider.importopentelemetry.traceastracefromopentelemetry.sdk.extension.aws.traceimportAwsXRayIdGeneratorfromopentelemetry.sdk.traceimportTracerProvidertrace.set_tracer_provider(TracerProvider(id_generator=AwsXRayIdGenerator()))Usage (AWS Resource Detectors)Use the providedResource Detectorsto automatically populate attributes under theresourcenamespace of each generated span.For example, if tracing with OpenTelemetry on an AWS EC2 instance, you can automatically
populateresourceattributes by creating aTraceProviderusing theAwsEc2ResourceDetector:importopentelemetry.traceastracefromopentelemetry.sdk.traceimportTracerProviderfromopentelemetry.sdk.extension.aws.resource.ec2import(AwsEc2ResourceDetector,)fromopentelemetry.sdk.resourcesimportget_aggregated_resourcestrace.set_tracer_provider(TracerProvider(resource=get_aggregated_resources([AwsEc2ResourceDetector(),]),))Refer to each detectors’ docstring to determine any possible requirements for that
detector.ReferencesOpenTelemetry ProjectAWS X-Ray Trace IDs FormatOpenTelemetry Specification for Resource Attributes
Package: opentelemetry-semantic-conventions
This library contains generated code for the semantic conventions defined by the OpenTelemetry specification.Installationpip install opentelemetry-semantic-conventionsCode GenerationThese files were generated automatically from code insemconv.
To regenerate the code, run../scripts/semconv/generate.sh.To build against a new release or specific commit ofopentelemetry-specification,
update theSPEC_VERSIONvariable in../scripts/semconv/generate.sh. Then run the script and commit the changes.ReferencesOpenTelemetry ProjectOpenTelemetry Semantic Conventions Definitionsgenerate.sh script
Package: opentelemetry-tools-google-cloud
DEPRECATEDThis package is deprecated. It will not
receive any more updates.Please useopentelemetry-resourcedetector-gcpandopentelemetry-propagator-gcpinstead. It will not
receive any more updates.This library provides support for:Detecting GCP resources like GCE, GKE, etc.Propagating trace context in the legacy Google Cloud formatInstallationpipinstallopentelemetry-tools-google-cloudReferencesCloud TraceOpenTelemetry Project
Package: opentelemetry-util-http
This library provides ASGI, WSGI middleware and other HTTP-related
functionality that is common to instrumented web frameworks (such as Django,
Starlette, FastAPI, etc.) to track requests timing through OpenTelemetry.Installationpip install opentelemetry-util-httpUsage (Quart)fromquartimportQuartfromopentelemetry.instrumentation.asgiimportOpenTelemetryMiddlewareapp=Quart(__name__)app.asgi_app=OpenTelemetryMiddleware(app.asgi_app)@app.route("/")asyncdefhello():return"Hello!"if__name__=="__main__":app.run(debug=True)Usage (Django 3.0)Modify the application’sasgi.pyfile as shown below.importosfromdjango.core.asgiimportget_asgi_applicationfromopentelemetry.instrumentation.asgiimportOpenTelemetryMiddlewareos.environ.setdefault('DJANGO_SETTINGS_MODULE','asgi_example.settings')application=get_asgi_application()application=OpenTelemetryMiddleware(application)Usage (Raw ASGI)fromopentelemetry.instrumentation.asgiimportOpenTelemetryMiddlewareapp=...# An ASGI application.app=OpenTelemetryMiddleware(app)ReferencesOpenTelemetry Project
Package: opentera
OpenTeraPython package for OpenTera micro-service architecture.
External microservices can use this package as a base.GitHubhttps://github.com/introlab/openteraLicenseOpenTera is licensed underApache License 2.0.DocumentationPlease visit ourWiKi documentation on GitHubDependenciesOpenTera is based or uses the following Open Source technologies :Python 3.8+, PSFL (BSD like)Flask, BSDRedis, BSDtxredisapi, Apache License 2.0SQLAlchemy, MITTwisted, MITPostgreSQL, PostgreSQL License(MIT/BSD like)Node.js, Node licenseAuthorsDominic Létourneau, ing. M.Sc.A., IntRoLab, Université de Sherbrooke (@doumdi)Simon Brière, ing. M.Sc.A., CDRV, Université de Sherbrooke (@sbriere)François Michaud, ing. Ph.D., IntRoLab, Université de SherbrookeMichel Tousignant, pht, Ph.D., CDRV, Université de SherbrookeContributorsPhilippe ArsenaultCédric GodinMarc-Antoine MaheuxCynthia VilanovaAcknowledgementsThis project is supported byIntRoLab - Intelligent / Interactive / Integrated / Interdisciplinary Robot Lab, Sherbrooke, Québec, Canada,
byRegroupement INTERand by theCentre de recherche sur le vieillissement de Sherbrooke, Sherbrooke, Québec, Canada.
Package: openterrace
OpenTerrace is a pure Python framework for thermal energy storage packed bed simulations. It is built from the ground up to be flexible and extendable on modern Python 3.x with speed in mind. It utilises Nvidia CUDA cores to harness the power of modern GPUs and has automatic fallback to CPU cores.OpenTerrace uses awesome open-source software such asNumba,NumPyandSciPy:grey_exclamation:Read the documentation of OpenTerraceWhy OpenTerrace?FASTBy making use of modern compilers and optimised tri-diagonal matrix solvers, OpenTerrace approaches the speed of compiled C or FORTRAN code with the added convenience of easy-to-read Python language.FLEXIBLEOpenTerrace is built from the ground up to be flexible for easy integration in system models or optimisation loops.EXTENDABLEModules for new materials such as non-spherical rocks or exotic Phase Change Materials (PCM) can easily be plugged into the OpenTerrace framework.Want to contribute?Contributions are welcome :pray: Feel free to send pull requests or get in touch with me to discuss how to collaborate. More details in thedocs.Code contributorsJakob Hærvig, Associate Professor, AAU Energy, Aalborg University, Denmark
Package: opentest
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.This is the README file for the project.The file should use UTF-8 encoding and be written using ReStructured Text. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: opentf-agent
opentf-agentThis package is part of the OpenTestFactory initiative.OverviewAn agent is a process that runs on an execution environment.  That process will contact the orchestrator at regular intervals, looking for some orders to execute. If there is a pending order, the agent will do as asked and send the result back to the orchestrator.The agent documentation is part of theOpenTestFactory orchestratordocumentation, in theGuidessection.LicenseCopyright 2021, 2022 Henix, henix.frLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: opentf-agent-nightly
opentf-agentThis package is part of the OpenTestFactory initiative.OverviewAn agent is a process that runs on an execution environment.  That process will contact the orchestrator at regular intervals, looking for some orders to execute. If there is a pending order, the agent will do as asked and send the result back to the orchestrator.The agent documentation is part of theOpenTestFactory orchestratordocumentation, in theGuidessection.LicenseCopyright 2021, 2023 Henix, henix.frLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: opentf-toolkit
opentf-toolkitThis package is part of the OpenTestFactory initiative.OverviewThis package contains libraries and schemas to facilitate the creation of
plugins for the OpenTestFactory orchestrator.The package documentation is part of theOpenTestFactory orchestratordocumentation, in the "Create plugins" section.LicenseCopyright 2021-2023 Henix, henix.frLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: opentf-toolkit-nightly
opentf-toolkitThis package is part of the OpenTestFactory initiative.OverviewThis package contains libraries and schemas to facilitate the creation of
plugins for the OpenTestFactory orchestrator.The package documentation is part of theOpenTestFactory orchestratordocumentation, in the "Create plugins" section.LicenseCopyright 2021-2023 Henix, henix.frLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: opentf-tools
opentf-toolsThis package is part of the OpenTestFactory initiative.OverviewThis package contains utility scripts to facilitate the configuration and usage of the
OpenTestFactory's runtime environment.The package documentation is part of theOpenTestFactory orchestratordocumentation, in theToolssection.LicenseCopyright 2021, 2023 Henix, henix.frLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.