Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run pre-commit
uses: pre-commit/action@v2.0.3
uses: pre-commit/action@v3.0.1
with:
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }}
12 changes: 12 additions & 0 deletions btrdb/conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
## Imports
##########################################################################

import importlib.metadata
import json
import logging
import os
Expand Down Expand Up @@ -65,6 +66,11 @@ def __init__(self, addrportstr, apikey=None):
The ``btrdb.connect`` method is a helper function to make connecting to the platform easier
usually that will be sufficient for most users.
"""
warn(
"This API is deprecated in favor of the pingthings_api, refer to your hub landing page for further documentation.",
DeprecationWarning,
stacklevel=2,
)
addrport = addrportstr.split(":", 2)
# 100MB size limit ~ 2500 streams for 5000 points with each point being 64bit
# 500MB size limit ~ 13K streams for 5000 points
Expand Down Expand Up @@ -126,6 +132,12 @@ def __init__(self, apikey, client_call_details):
if client_call_details.metadata is not None:
metadata = list(client_call_details.metadata)
metadata.append(("authorization", "Bearer " + apikey))
metadata.append(
(
"x-api-client",
"btrdbpy-" + importlib.metadata.version("btrdb"),
)
)
self.method = client_call_details.method
self.timeout = client_call_details.timeout
self.credentials = client_call_details.credentials
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ maintainers = [
description = "Bindings to interact with the Berkeley Tree Database using gRPC."
readme = "README.md"
license = {file="LICENSE.txt"}
requires-python = ">=3.7,<=3.10"
requires-python = ">=3.7,<=3.12"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand Down
Loading