Nodeflux APIs.
Project description
Nodeflux APIs
This repository contains the public Nodeflux Analytics API. It uses Protocol Buffers version 3 to define the API interface and the structure of the payload messages.
You can use the Nodeflux APIs by using the generated code from this repository. We've also built several client libraries, which are the recommended way to call the Nodeflux APIs:
Generate Source Core
To generate language specific source code from this repository, you need to install Protocol Buffer, gRPC, and some language specific plugins in your machine. Then you can use make
to generate the source code.
TL;DR
This guides assume you have all dependencies installed. To install the dependencies, see language specific guides below.
git clone https://github.com/googleapis/googleapis.git
export GOOGLEAPIS_PATH=$(pwd)/googleapis
make all # Run linter and build all
make CPP_OUT_DIR=/path/to/genfiles cpp # Build c++ sources
make PYTHON_OUT_DIR=/path/to/genfiles python # Build python sources
make GO_OUT_DIR=/path/to/genfiles go # Build go sources
make docs # Build documentation
make lint # Run linter
C++
To build the C++ source codes, you need to have the following dependencies:
- Protocol Buffer (Installation Guide)
- gRPC Plugin for C++ (Installation Guide)
- googleapis
Build the source code by running the following commands:
git clone https://github.com/googleapis/googleapis.git
export GOOGLEAPIS_PATH=$(pwd)/googleapis
make CPP_OUT_DIR=/path/to/genfiles cpp
Python
To build the Python source codes, you need to have the following dependencies:
- Protocol Buffer
- gRPC Plugin for Python
- mypy-protobuf
- googleapis
The dependencies above can be installed by running the following commands:
pip3 install grpcio-tools mypy-protobuf
git clone https://github.com/googleapis/googleapis.git
export GOOGLEAPIS_PATH=$(pwd)/googleapis
Then you can build python source codes:
Then you can build and install python source codes:
make python
pip install .
If you want to build the python sources to different directory, use the PYTHON_OUT_DIR
argument.
make PYTHON_OUT_DIR=/path/to/genfiles python
Go
To build the Python source codes, you need to have the following dependencies:
The dependencies above can be installed by running the following commands:
go get -u github.com/golang/protobuf/protoc-gen-go
go get -u google.golang.org/grpc
git clone https://github.com/googleapis/googleapis.git
export GOOGLEAPIS_PATH=$(pwd)/googleapis
Then you can build go source codes:
make GO_OUT_DIR=/path/to/genfiles go
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nodefluxapis-0.2.6.tar.gz
.
File metadata
- Download URL: nodefluxapis-0.2.6.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f49310a8602773f8fac5c4b1a4448980a630c3da0b1aceacf1901749d3842ea6 |
|
MD5 | e75b196c12eeef621bb6af8690dd9b99 |
|
BLAKE2b-256 | 2afbc7124707e56f12a25dc4948429a260cfe30e342b8657a6a9d3a72e540a8b |
File details
Details for the file nodefluxapis-0.2.6-py2.py3-none-any.whl
.
File metadata
- Download URL: nodefluxapis-0.2.6-py2.py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef37dc0b025c8f7dd4c0827f226c0bd2ddf9a20c6e1a197533b74b284b51e5eb |
|
MD5 | 523a282c14fd61b2b2e9b25b2dfbdfb4 |
|
BLAKE2b-256 | 19f7fae6c797fcd8431cea7f41adcf47ef3816488c8c6cd78929f1317f277363 |