hydration.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.hydration.v1.temporal import (
  17. dehydrate_date,
  18. dehydrate_datetime,
  19. dehydrate_duration,
  20. dehydrate_time,
  21. dehydrate_timedelta,
  22. get_date_unix_epoch,
  23. get_date_unix_epoch_ordinal,
  24. get_datetime_unix_epoch_utc,
  25. hydrate_date,
  26. hydrate_datetime,
  27. hydrate_duration,
  28. hydrate_time,
  29. )
  30. from .._meta import deprecation_warn
  31. __all__ = [
  32. "dehydrate_date",
  33. "dehydrate_datetime",
  34. "dehydrate_duration",
  35. "dehydrate_time",
  36. "dehydrate_timedelta",
  37. "get_date_unix_epoch",
  38. "get_date_unix_epoch_ordinal",
  39. "get_datetime_unix_epoch_utc",
  40. "hydrate_date",
  41. "hydrate_datetime",
  42. "hydrate_duration",
  43. "hydrate_time",
  44. ]
  45. deprecation_warn(
  46. "The module `neo4j.time.hydration` was made internal and will "
  47. "no longer be available for import in future versions.",
  48. stack_level=2,
  49. )