gw_data 0.3.1__tar.gz → 0.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. {gw_data-0.3.1 → gw_data-0.3.2}/PKG-INFO +1 -1
  2. {gw_data-0.3.1 → gw_data-0.3.2}/pyproject.toml +1 -1
  3. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/__init__.py +2 -0
  4. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/user.py +1 -1
  5. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/user_installation_role.py +0 -1
  6. {gw_data-0.3.1 → gw_data-0.3.2}/uv.lock +1 -1
  7. {gw_data-0.3.1 → gw_data-0.3.2}/.github/workflows/release.yml +0 -0
  8. {gw_data-0.3.1 → gw_data-0.3.2}/.gitignore +0 -0
  9. {gw_data-0.3.1 → gw_data-0.3.2}/README.md +0 -0
  10. {gw_data-0.3.1 → gw_data-0.3.2}/alembic/README +0 -0
  11. {gw_data-0.3.1 → gw_data-0.3.2}/alembic/env.py +0 -0
  12. {gw_data-0.3.1 → gw_data-0.3.2}/alembic/script.py.mako +0 -0
  13. {gw_data-0.3.1 → gw_data-0.3.2}/alembic/versions/1220f2f941dd_initial_schema.py +0 -0
  14. {gw_data-0.3.1 → gw_data-0.3.2}/alembic/versions/a7f151e8163f_visualizer_functions_and_views.py +0 -0
  15. {gw_data-0.3.1 → gw_data-0.3.2}/alembic.ini +0 -0
  16. {gw_data-0.3.1 → gw_data-0.3.2}/sema_seed_request.yaml +0 -0
  17. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/__init__.py +0 -0
  18. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/config.py +0 -0
  19. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/__init__.py +0 -0
  20. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/_base.py +0 -0
  21. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/connectivity_edge.py +0 -0
  22. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/customer.py +0 -0
  23. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/g_node.py +0 -0
  24. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/installation.py +0 -0
  25. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/installer.py +0 -0
  26. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/message.py +0 -0
  27. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/position_point.py +0 -0
  28. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/reading.py +0 -0
  29. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/models/reading_channel.py +0 -0
  30. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/0_db_create.psql +0 -0
  31. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/1_db_user_setup.psql +0 -0
  32. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/2_db_schema_setup.sql +0 -0
  33. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/3_db_alembic_upgrade.sh +0 -0
  34. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/4_db_seed.py +0 -0
  35. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/_XX_drop_all.sql +0 -0
  36. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/misc/adjust_report_message_timestamps.sql +0 -0
  37. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/misc/create_policy_view_readings_1hr.sql +0 -0
  38. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/misc/create_proc_refresh_cached_hourly_data.sql +0 -0
  39. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/misc/create_table_cached_hourly_data.sql +0 -0
  40. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/misc/create_udf_calc_energy_1hr.sql +0 -0
  41. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/misc/create_udf_calc_hourly_data.sql +0 -0
  42. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/misc/create_udf_retrieve_readings_1s.sql +0 -0
  43. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/misc/create_view_readings_1hr.sql +0 -0
  44. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/misc/refresh_all_cached_hourly_data.py +0 -0
  45. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/scripts/seed_data/homes.csv +0 -0
  46. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/db/session.py +0 -0
  47. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/__init__.py +0 -0
  48. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/base.py +0 -0
  49. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/codec.py +0 -0
  50. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/definitions/enums/base.g.node.class/000.yaml +0 -0
  51. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/definitions/enums/g.node.status/000.yaml +0 -0
  52. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/definitions/formats/left.right.dot.yaml +0 -0
  53. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/definitions/formats/uuid4.str.yaml +0 -0
  54. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/definitions/registry.yaml +0 -0
  55. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/definitions/types/g.node.gt/004.yaml +0 -0
  56. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/definitions/types/position.point.gt/000.yaml +0 -0
  57. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/enums/__init__.py +0 -0
  58. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/enums/base_g_node_class.py +0 -0
  59. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/enums/g_node_status.py +0 -0
  60. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/enums/gw_str_enum.py +0 -0
  61. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/enums/old_versions/__init__.py +0 -0
  62. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/indexes/dependency_closure.yaml +0 -0
  63. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/indexes/local_names.yaml +0 -0
  64. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/indexes/lookup.yaml +0 -0
  65. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/indexes/reverse_dependencies.yaml +0 -0
  66. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/indexes/seed_expanded.yaml +0 -0
  67. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/indexes/versions.yaml +0 -0
  68. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/property_format.py +0 -0
  69. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/tests/test_property_format.py +0 -0
  70. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/types/__init__.py +0 -0
  71. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/types/g_node_gt.py +0 -0
  72. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/types/old_versions/__init__.py +0 -0
  73. {gw_data-0.3.1 → gw_data-0.3.2}/src/gw_data/sema/types/position_point_gt.py +0 -0
  74. {gw_data-0.3.1 → gw_data-0.3.2}/template.env +0 -0
  75. {gw_data-0.3.1 → gw_data-0.3.2}/useful-scripts.sql +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gw_data
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Gridworks Data Infrastructure
5
5
  Author-email: Jessica Millar <jessica.lynn.millar@gmail.com>
6
6
  Requires-Python: <3.13.0,>=3.12
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gw_data"
3
- version = "0.3.1"
3
+ version = "0.3.2"
4
4
  description = "Gridworks Data Infrastructure"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -8,6 +8,7 @@ from gw_data.db.models.customer import CustomerSql
8
8
  from gw_data.db.models.installer import InstallerSql
9
9
  from gw_data.db.models.user import UserSql
10
10
  from gw_data.db.models.installation import InstallationSql
11
+ from gw_data.db.models.user_installation_role import UserInstallationRoleSql
11
12
 
12
13
  from gw_data.db.models.reading_channel import ReadingChannelSql
13
14
  from gw_data.db.models.message import MessageSql
@@ -31,6 +32,7 @@ __all__ = [
31
32
  "InstallerSql",
32
33
  "UserSql",
33
34
  "InstallationSql",
35
+ "UserInstallationRoleSql",
34
36
  "ReadingChannelSql",
35
37
  "MessageSql",
36
38
  "ReadingSql"
@@ -29,7 +29,7 @@ class UserSql(Base):
29
29
  created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now())
30
30
  updated_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now(), onupdate=func.now())
31
31
 
32
- installation_roles: Mapped[list[UserInstallationRoleSql]] = relationship(uselist=True, lazy="joined")
32
+ installation_roles: Mapped[list[UserInstallationRoleSql]] = relationship(uselist=True)
33
33
 
34
34
  def __repr__(self) -> str:
35
35
  return f"User(id={self.id!r}, username={self.username!r}, is_active={self.is_active!r})"
@@ -23,7 +23,6 @@ class UserInstallationRoleSql(Base):
23
23
  installations: Mapped[list[InstallationSql]] = relationship(
24
24
  "InstallationSql",
25
25
  uselist=True,
26
- lazy="joined",
27
26
  primaryjoin="or_(InstallationSql.id==UserInstallationRoleSql.installation_id, UserInstallationRoleSql.installation_id == None)"
28
27
  )
29
28
 
@@ -103,7 +103,7 @@ wheels = [
103
103
 
104
104
  [[package]]
105
105
  name = "gw-data"
106
- version = "0.3.1"
106
+ version = "0.3.2"
107
107
  source = { editable = "." }
108
108
  dependencies = [
109
109
  { name = "alembic" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes