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.7.tar.gz
(6.3 kB
view details)
File details
Details for the file protoDadosjusbr-0.7.tar.gz.
File metadata
- Download URL: protoDadosjusbr-0.7.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d002631737217f15fa8883f85e31f9713186b0b452c63ed589cc5348a56b1047
|
|
| MD5 |
e623452579e58d32a00257b72970130c
|
|
| BLAKE2b-256 |
0e6f9eef529a1f54b9ec9067ccb556b688727bf88096cf4ceea3ddebcf9b5085
|