conf.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright (c) "Neo4j"
  2. # Neo4j Sweden AB [https://neo4j.com]
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # https://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # TODO: 6.0 - remove this file
  16. from ._conf import (
  17. Config,
  18. ConfigType,
  19. DeprecatedAlias,
  20. DeprecatedAlternative,
  21. iter_items,
  22. RoutingConfig,
  23. SessionConfig,
  24. TransactionConfig,
  25. WorkspaceConfig,
  26. )
  27. from ._meta import deprecation_warn as _deprecation_warn
  28. from ._sync.config import PoolConfig
  29. __all__ = [
  30. "Config",
  31. "ConfigType",
  32. "DeprecatedAlias",
  33. "DeprecatedAlternative",
  34. "PoolConfig",
  35. "RoutingConfig",
  36. "SessionConfig",
  37. "TransactionConfig",
  38. "WorkspaceConfig",
  39. "iter_items",
  40. ]
  41. _deprecation_warn(
  42. "The module `neo4j.conf` was made internal and will "
  43. "no longer be available for import in future versions.",
  44. stack_level=2,
  45. )