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.

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 ../csv
    $ protoc --go_out=./ pacote.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 ../csv
    $ protoc --python_out=./ pacote.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.4.tar.gz (6.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page