Wrapper para trabalhar com a API do Cloud Logging
Procedimento para upload no Pypi
Pré requisitos
Instalar pacotes python
python3 -m pip install --upgrade setuptools build wheel twine
Build e enviar ao PYPI
python3 -m build
python3 -m twine upload dist/*
Instalar o pacote no projeto
pip install fastapi-skywalking-trace
Utilização da biblioteca
Essa biblioteca espera que você passe o schema dos dados da tabela
Aconselho criar um arquivo de schema.py ou model.py onde seja definido a estrutura de dados da tabela.
Instanciar o Middleware
Com o schema definido, você deve instanciar um classe
from starlette.middleware import Middleware
from fastapi_skywalking_trace.middleware import SkywalkingMiddleware
middlewares = [
Middleware(
SkywalkingMiddleware,
service_name='extractor',
collector_address='35.266.138.244:15870',
protocol = 'http'
)
]
app = FastAPI(
title='Iris Typification',
openapi_url="/api/v1/openapi.json",
middleware=middlewares
)
Metadata
Release files for fastapi-skywalking-trace 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastapi-skywalking-trace-0.0.1.tar.gz | 3.3 kB | Without provenance | Details for fastapi-skywalking-trace-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastapi_skywalking_trace-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for fastapi_skywalking_trace-0.0.1-py3-none-any.whl |
Total release size: 7.2 kB
Release files / fastapi-skywalking-trace-0.0.1.tar.gz
| Download URL | fastapi-skywalking-trace-0.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47c6a5aa3ecd3b653a8d80570a1a6420edbf07fd5415ed4996b041c3952259e8
|
|
BLAKE2b-256 checksum How to use checksums |
78d7470ea4fcaabf6c62d544bfeb42e8e970b86f9a95dafd8f72b01cfc63d3f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / fastapi_skywalking_trace-0.0.1-py3-none-any.whl
| Download URL | fastapi_skywalking_trace-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4da50e1f566c5f0080933b3dd47ce2baf1ef21ebc1eae01ebea02c9782955932
|
|
BLAKE2b-256 checksum How to use checksums |
b0861646fc7b71ced875f3d6025e2099591c3cf05cf84c9e8a5cb7118e7fd873
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for fastapi-skywalking-trace 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.