Skip to main content

chirpstack-api

ChirpStack gRPC API message and service wrappers for Python.

Install

pip install chirpstack-api

Usage

All messages, services, constants, etc. are auto-generated from the ChirpStack protobuf definitions. The result is that this package structure matches that of the protobuf definitions.

The protobuf definitions can be found here: https://github.com/brocaar/chirpstack-api/tree/master/protobuf

The following example presents how the library can be used.

Example

This example shows how to log in to ChirpStack via the gRPC API and then create a gRPC metadata list containing the JWT. This metadata could then be passed to any future requests that require authorization.

import grpc
import os
import sys
from chirpstack_api.as_pb.external import api

if __name__ == '__main__':
  # Create the client for the "internal" service    
  channel = grpc.insecure_channel('localhost:8080')
  stub = api.InternalServiceStub(channel)

  # Create and build the login request message
  loginRequest = api.LoginRequest()
  loginRequest.password = 'admin'
  loginRequest.username = 'admin'

  # Send the login request
  token = stub.Login(loginRequest)

  # Build the metadata list, settting the authorization from the JWT
  # obtained from loggin in.
  metadata= [('authorization', token.jwt)]

  # This metadata can now be passed for requests to APIs that require
  # authorization

Metadata

Release files for chirpstack-api 3.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chirpstack-api 3.1.5
File Size Uploaded Provenance Actions
chirpstack-api-3.1.5.tar.gz 103.6 kB Without provenance Details for chirpstack-api-3.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chirpstack-api 3.1.5
File Interpreter ABI Platform Actions
chirpstack_api-3.1.5-py3-none-any.whl Python 3 none any Details for chirpstack_api-3.1.5-py3-none-any.whl

Total release size: 228.4 kB

Release files / chirpstack-api-3.1.5.tar.gz

Download URL chirpstack-api-3.1.5.tar.gz
Size 103.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a93567e6bb7918214c5b88db62396774b9cb3e1c5ade6c1fefae63f8a465657e
BLAKE2b-256 checksum
How to use checksums
3fad4ccb1263c59de45a3d811f4e777a3290f8d45b6e210ac229485883401079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.1

Release files / chirpstack_api-3.1.5-py3-none-any.whl

Download URL chirpstack_api-3.1.5-py3-none-any.whl
Size 124.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff99ce6ef39d666d57bd5abff5d72e7d9b550264e7cc76ef47781b4b4f95ecd6
BLAKE2b-256 checksum
How to use checksums
8fb0cf8554dc4ad1729d00270a1025370f257bf695a707be620c05f0421adb69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.1

Security for chirpstack-api 3.1.5

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.

Release history Release notifications | RSS feed

This release

3.1.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page