Skip to content

Commit

Permalink
Initial implemention of a push av server
Browse files Browse the repository at this point in the history
  • Loading branch information
fmonniot committed Oct 9, 2024
1 parent 8120c0e commit 2bc6170
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
28 changes: 0 additions & 28 deletions src/python_testing/TC_PAVS_1_0.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
import logging
import time
import http.server
import ssl
import threading
import cryptography
import tempfile
import os.path
import datetime
from functools import partial
import shutil
# What's the stands of the Matter project on depending on requests ?
# TODO Actually do we really need requests once we have matter cameras in place?
import requests
import subprocess
import json
import socket
import sys

import push_av_server

import requests.adapters
from zeroconf import ServiceInfo, Zeroconf
from urllib.parse import urlparse

from cryptography import x509
from cryptography.x509.oid import NameOID
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import rsa

import chip.clusters as Clusters
from chip.clusters import ClusterObjects as ClusterObjects
from matter_testing_support import (ClusterAttributeChangeAccumulator, MatterBaseTest, TestStep, default_matter_test_main,
Expand Down
5 changes: 1 addition & 4 deletions src/tools/push_av_server/server.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# TODO Move this one src/tools/ instead of having it here
import logging
import ssl
from typing import Optional, Union
import tempfile
import os.path
import datetime

# What's the stands of the Matter project on depending on requests ?
# TODO Actually do we really need requests once we have matter cameras in place?
import argparse
import pathlib
from pathlib import Path
Expand Down Expand Up @@ -99,6 +95,7 @@ def mkdir(self, *paths: str, is_file=False) -> Path:
return p

def print_tree(self):
# TODO Convert this helper to build a HTML representation for use in the UI

def tree(dir_path: pathlib.Path, prefix: str = ""):
"""A recursive generator, given a directory Path object
Expand Down

0 comments on commit 2bc6170

Please sign in to comment.