Skip to main content

Contém esquema de dados e funções para os coletores do DadosjusBr

Project description

Proto

  • Esquema de dados em Protobuf.

Instalando o proto

    $ apt install -y protobuf-compiler

Gerar código go e python

Gerando novos protos

GO

    $ go install google.golang.org/protobuf/cmd/protoc-gen-go

// Gerar stub na raiz.

    $ cd coleta
    $ protoc --go_out=./ --go_opt=paths=source_relative coleta.proto
    $ cd ..
    $ protoc --go_out=pipeline/ --go_opt=paths=source_relative --proto_path=coleta --proto_path=pipeline pipeline/pipeline.proto

Python

// Gerar stub na raiz.

    $ cd coleta
    $ protoc --python_out=./ coleta.proto
    $ cd ..
    $ protoc --python_out=pipeline/ --proto_path=coleta --proto_path=pipeline pipeline/pipeline.proto

Atulizando a lib no pipy

    $ python setup.py sdist
    $ python -m twine upload --skip-existing dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

protoDadosjusbr-0.81.tar.gz (4.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page