old_contents: """ pp Photonics package
  
  functions:
  
      - pp.show(): writes and shows the GDS in Klayout using klive
      - pp.import_gds(): returns a Component from a GDS
  
  classes:
  
      - pp.Component
      - pp.Port
      - CONFIG
  
  modules:
  
      - c: components
      - routing
      - layer: GDS layers
  
  isort:skip_file
  """
  
  from phidl import quickplot as plot
  import phidl.geometry as pg
  from phidl.device_layout import Group, Path, CrossSection
  
  # NOTE: import order matters. Only change the order if you know what you are doing
  from pp.component import Component, ComponentReference, copy
  from pp.config import CONFIG, call_if_func
  from pp.port import Port
  from pp.port import port_array
  from pp.cell import cell
  from pp.cell import cell_with_validator
  from pp.cell import clear_cache
  from pp.layers import LAYER
  from pp.cross_section import cross_section
  from pp.show import show
  from pp.write_doe import write_doe
  
  import pp.asserts as asserts
  import pp.components as components
  import pp.routing as routing
  import pp.bias as bias
  import pp.klive as klive
  import pp.port as port
  import pp.types as types
  import pp.path as path
  import pp.import_gds as gds
  import pp.snap as snap
  import pp.tech as tech
  import pp.containers as containers
  import pp.components.extension as extend
  import pp.component_from as component_from
  import pp.read as read
  import pp.remove as remove
  
  from pp.tech import TECH
  from pp.component_from_yaml import component_from_yaml
  from pp.add_termination import add_termination
  from pp.add_padding import add_padding, get_padding_points, add_padding_container
  from pp.add_pins import add_pins, add_pins_to_references
  from pp.fill import fill_rectangle
  from pp.pack import pack
  from pp.grid import grid
  from pp.offset import offset
  from pp.boolean import boolean
  from pp.rotate import rotate
  
  
  c = components
  
  __all__ = [
      "asserts",
      "CONFIG",
      "LAYER",
      "Component",
      "ComponentReference",
      "CrossSection",
      "cross_section",
      "containers",
      "Group",
      "Path",
      "bias",
      "cell",
      "cell_with_validator",
      "copy",
      "add_padding",
      "add_padding_container",
      "add_pins",
      "add_pins_to_references",
      "add_termination",
      "fill_rectangle",
      "c",
      "components",
      "clear_cache",
      "call_if_func",
      "extend",
      "boolean",
      "types",
      "get_padding_points",
      "grid",
      "gds",
      "klive",
      "offset",
      "pack",
      "plot",
      "path",
      "pg",
      "port",
      "port_array",
      "read",
      "remove",
      "rotate",
      "routing",
      "show",
      "snap",
      "write_doe",
      "Port",
      "component_from_yaml",
      "component_from",
      "tech",
      "TECH",
  ]
  __version__ = "2.6.5"
  
  
  if __name__ == "__main__":
      print(__all__)
  
new_contents: """ pp Photonics package
  
  functions:
  
      - pp.show(): writes and shows the GDS in Klayout using klive
      - pp.import_gds(): returns a Component from a GDS
  
  classes:
  
      - pp.Component
      - pp.Port
      - CONFIG
  
  modules:
  
      - c: components
      - routing
      - layer: GDS layers
  
  isort:skip_file
  """
  
  from phidl import quickplot as plot
  import phidl.geometry as pg
  from phidl.device_layout import Group, Path, CrossSection
  
  # NOTE: import order matters. Only change the order if you know what you are doing
  from pp.component import Component, ComponentReference, copy
  from pp.config import CONFIG, call_if_func
  from pp.port import Port
  from pp.port import port_array
  from pp.cell import cell
  from pp.cell import cell_with_validator
  from pp.cell import clear_cache
  from pp.layers import LAYER
  from pp.cross_section import cross_section
  from pp.show import show
  from pp.write_doe import write_doe
  from pp.import_gds import import_gds
  
  import pp.asserts as asserts
  import pp.components as components
  import pp.routing as routing
  import pp.bias as bias
  import pp.klive as klive
  import pp.port as port
  import pp.types as types
  import pp.path as path
  import pp.import_gds as gds
  import pp.snap as snap
  import pp.tech as tech
  import pp.containers as containers
  import pp.components.extension as extend
  import pp.component_from as component_from
  import pp.read as read
  import pp.remove as remove
  
  from pp.tech import TECH
  from pp.component_from_yaml import component_from_yaml
  from pp.add_termination import add_termination
  from pp.add_padding import add_padding, get_padding_points, add_padding_container
  from pp.add_pins import add_pins, add_pins_to_references
  from pp.fill import fill_rectangle
  from pp.pack import pack
  from pp.grid import grid
  from pp.offset import offset
  from pp.boolean import boolean
  from pp.rotate import rotate
  
  
  c = components
  
  __all__ = [
      "CONFIG",
      "Component",
      "ComponentReference",
      "CrossSection",
      "Group",
      "LAYER",
      "Path",
      "Port",
      "TECH",
      "add_padding",
      "add_padding_container",
      "add_pins",
      "add_pins_to_references",
      "add_termination",
      "asserts",
      "bias",
      "boolean",
      "c",
      "call_if_func",
      "cell",
      "cell_with_validator",
      "clear_cache",
      "component_from",
      "component_from_yaml",
      "components",
      "containers",
      "copy",
      "cross_section",
      "extend",
      "fill_rectangle",
      "gds",
      "get_padding_points",
      "grid",
      "import_gds",
      "klive",
      "offset",
      "pack",
      "path",
      "pg",
      "plot",
      "port",
      "port_array",
      "read",
      "remove",
      "rotate",
      "routing",
      "show",
      "snap",
      "tech",
      "types",
      "write_doe",
  ]
  __version__ = "2.6.5"
  
  
  if __name__ == "__main__":
      print(__all__)
  
subject: add back pp.import_gds alphabetical order of pp.__init__