packstream.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 ._codec.packstream.v1 import (
  17. INT64_MAX,
  18. INT64_MIN,
  19. PACKED_UINT_8,
  20. PACKED_UINT_16,
  21. Packer,
  22. Structure,
  23. UnpackableBuffer,
  24. UNPACKED_UINT_8,
  25. UNPACKED_UINT_16,
  26. Unpacker,
  27. )
  28. from ._meta import deprecation_warn
  29. __all__ = [
  30. "INT64_MAX",
  31. "INT64_MIN",
  32. "PACKED_UINT_8",
  33. "PACKED_UINT_16",
  34. "UNPACKED_UINT_8",
  35. "UNPACKED_UINT_16",
  36. "Packer",
  37. "Structure",
  38. "UnpackableBuffer",
  39. "Unpacker",
  40. ]
  41. deprecation_warn(
  42. "The module `neo4j.packstream` was made internal and will "
  43. "no longer be available for import in future versions.",
  44. stack_level=2,
  45. )