pyvider 2025-02-09
Reorganized component modules and introduced a new `SchemaType` with
68 files · 4,160+ · 1,477-

Schema Type System

58 files changed
  • .gitignore Updated .gitignore (+1/-1 lines)
  • bfiles-20250129-173732-grpc-python-example.txt Added bfiles-20250129-173732-grpc-python-example.txt (+615 lines)
  • speeding-it-up.md Added speeding-it-up.md (+7 lines)
  • env.sh Updated env.sh (+6/-1 lines)
  • tf-test.log.txt Added tf-test.log.txt (+128 lines)
  • ugh Removed ugh (-151 lines)
  • clean-tf-logs Updated clean-tf-logs (+10/-6 lines)
  • .bfile Added .bfile (+18 lines)
  • .bfiles Removed .bfiles (-1 lines)
  • __main__.py Updated __main__.py (+141/-19 lines)
  • auth.py Updated auth.py (+10/-8 lines)
  • foo Updated foo (+0/-0 lines)
  • handler.py Updated handler.py (+83/-177 lines)
  • provider.py Removed provider.py (-4 lines)
  • .coveragerc Added .coveragerc (+1 lines)
  • __init__.py Updated __init__.py (+2/-1 lines)
  • test_server_two.py Updated test_server_two.py (+3/-4 lines)
  • test_transport_unix_minimal.py Updated test_transport_unix_minimal.py (+1/-1 lines)
  • client.py Updated client.py (+10/-10 lines)
  • config.py Updated config.py (+41/-23 lines)
  • __init__.py Added __init__.py (+2 lines)
  • debug.py Added debug.py (+46 lines)
  • handshake.py Updated handshake.py (+25/-19 lines)
  • grpc_logging.py Added grpc_logging.py (+118 lines)
  • protocol.py Updated protocol.py (+8/-1 lines)
  • security.py Removed security.py (-240 lines)
  • server.py Updated server.py (+148/-116 lines)
  • conftest.py Updated conftest.py (+55/-5 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • test_certificate_create.py Updated test_certificate_create.py (+2/-2 lines)
  • test_certificate_lifecycle.py Updated test_certificate_lifecycle.py (+1/-1 lines)
  • test_certificate_verify.py Updated test_certificate_verify.py (+2/-2 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • test_minimal_server_client.py Updated test_minimal_server_client.py (+0/-0 lines)
  • test_transport_2.py Updated test_transport_2.py (+2/-1 lines)
  • transport_unix_94pct_coverage.py Updated transport_unix_94pct_coverage.py (+2/-2 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • test_server.py Updated test_server.py (+8/-68 lines)
  • test_server_coverage.py Added test_server_coverage.py (+303 lines)
  • test_server_coverage_extra.py Added test_server_coverage_extra.py (+263 lines)
  • test_server_destructor_cleanup.py Added test_server_destructor_cleanup.py (+67 lines)
  • x_segfault_test_server_coverage_extra.py Added x_segfault_test_server_coverage_extra.py (+290 lines)
  • test_transport_unix_2.py Added test_transport_unix_2.py (+318 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • test_connection.py Added test_connection.py (+184 lines)
  • test_transport_unix.py Added test_transport_unix.py (+3 lines)
  • test_transport_unix_2.py Added test_transport_unix_2.py (+292 lines)
  • test_transport_unix_3.py Added test_transport_unix_3.py (+304 lines)
  • unix.py Updated unix.py (+2/-2 lines)
  • utils.py Removed utils.py (-19 lines)
  • schema.py Updated schema.py (+8/-6 lines)
  • __init__.py Updated __init__.py (+10/-2 lines)
  • base.py Updated base.py (+24/-5 lines)
  • __init__.py Removed __init__.py (-362 lines)
  • grpc_logging.py Removed grpc_logging.py (-38 lines)
  • shutdown.py Removed shutdown.py (-64 lines)
  • Added SchemaType and StringKind to pyvider.schema module interface internal
    1 file
    • pyvider.schema
  • Resources now use SchemaType.DYNAMIC instead of manual json.dumps(type_str).encode() for schema attribute types interface internal
    1 file
    • SchemaType.DYNAMIC

Component Module Reorganization

9 files changed
  • __init__.py Updated __init__.py (+0/-0 lines)
  • __init__.py Updated __init__.py (+0/-0 lines)
  • dynamic_config.py Updated dynamic_config.py (+13/-8 lines)
  • file_content.py Updated file_content.py (+182/-96 lines)
  • test_file_content.py Updated test_file_content.py (+342/-2 lines)
  • __init__.py Added __init__.py (+4 lines)
  • get_provider_schema.py Updated get_provider_schema.py (+6/-7 lines)
  • stop_provider.py Added stop_provider.py (+46 lines)
  • __init__.py Updated __init__.py (+2/-1 lines)
  • Moved src/pyvider/protocols/server.py to components/data_sources/__init__.py decouple internal
    1 file
    • __init__.py
  • Added components/functions/__init__.py instantiate internal
    1 file
    • __init__.py
  • Updated dynamic_config.py to import from pyvider.schema and use SchemaType.DYNAMIC interface internal
    1 file
    • dynamic_config.py
  • Updated file_content.py to import SchemaType and StringKind interface internal
    2 files
    • file_content.py
    • test_file_content.py

Modern Type Hints

1 file changed
  • dynamic_config.py Updated dynamic_config.py
  • Updated dynamic_config.py: List[str] to list[str], tuple[StateType, List[str]] to tuple[StateType, list[str]] decouple internal
    1 file
    • dynamic_config.py
  • Added attrs import to dynamic_config.py interface internal
    1 file
    • dynamic_config.py
1 file changed
  • decorators.py Updated decorators.py (+1/-1 lines)