TypeDAL 3.1.0__py3-none-any.whl → 3.1.1__py3-none-any.whl

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.

Potentially problematic release.


This version of TypeDAL might be problematic. Click here for more details.

typedal/__about__.py CHANGED
@@ -5,4 +5,4 @@ This file contains the Version info for this package.
5
5
  # SPDX-FileCopyrightText: 2023-present Robin van der Noord <robinvandernoord@gmail.com>
6
6
  #
7
7
  # SPDX-License-Identifier: MIT
8
- __version__ = "3.1.0"
8
+ __version__ = "3.1.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TypeDAL
3
- Version: 3.1.0
3
+ Version: 3.1.1
4
4
  Summary: Typing support for PyDAL
5
5
  Project-URL: Documentation, https://typedal.readthedocs.io/
6
6
  Project-URL: Issues, https://github.com/trialandsuccess/TypeDAL/issues
@@ -60,7 +60,7 @@ Description-Content-Type: text/markdown
60
60
  Typing support for [PyDAL](http://web2py.com/books/default/chapter/29/6).
61
61
  This package aims to improve the typing support for PyDAL. By using classes instead of the define_table method,
62
62
  type hinting the result of queries can improve the experience while developing. In the background, the queries are still
63
- generated and executed by pydal itself, this package only proves some logic to properly pass calls from class methods to
63
+ generated and executed by pydal itself, this package only provides some logic to properly pass calls from class methods to
64
64
  the underlying `db.define_table` pydal Tables.
65
65
 
66
66
  - `TypeDAL` is the replacement class for DAL that manages the code on top of DAL.
@@ -76,13 +76,49 @@ the underlying `db.define_table` pydal Tables.
76
76
 
77
77
  Version 2.0 also introduces more ORM-like funcionality.
78
78
  Most notably, a Typed Query Builder that sees your table classes as models with relationships to each other.
79
- See [3. Building Queries](https://github.com/trialandsuccess/TypeDAL/blob/master/docs/3_building_queries.md) for more
79
+ See [3. Building Queries](https://typedal.readthedocs.io/en/stable/3_building_queries/) for more
80
80
  details.
81
81
 
82
- ## Quick Overview
82
+ ## CLI
83
+ The Typedal CLI provides a convenient interface for generating SQL migrations for [edwh-migrate](https://github.com/educationwarehouse/migrate#readme)
84
+ from PyDAL or TypeDAL configurations using [pydal2sql](https://github.com/robinvandernoord/pydal2sql).
85
+ It offers various commands to streamline database management tasks.
83
86
 
84
- Below you'll find a quick overview of translation from pydal to TypeDAL. For more info,
85
- see [the docs](https://typedal.readthedocs.io/en/latest/).
87
+ ### Usage
88
+
89
+ ```bash
90
+ typedal --help
91
+ ```
92
+
93
+ ## Options
94
+
95
+ - `--show-config`: Toggle to show configuration details. Default is `no-show-config`.
96
+ - `--version`: Toggle to display version information. Default is `no-version`.
97
+ - `--install-completion`: Install completion for the current shell.
98
+ - `--show-completion`: Show completion for the current shell, for copying or customization.
99
+ - `--help`: Display help message and exit.
100
+
101
+ ## Commands
102
+
103
+ - `cache.clear`: Clear expired items from the cache.
104
+ - `cache.stats`: Show caching statistics.
105
+ - `migrations.fake`: Mark one or more migrations as completed in the database without executing the SQL code.
106
+ - `migrations.generate`: Run `pydal2sql` based on the TypeDAL configuration.
107
+ - `migrations.run`: Run `edwh-migrate` based on the TypeDAL configuration.
108
+ - `setup`: Interactively setup a `[tool.typedal]` entry in the local `pyproject.toml`.
109
+
110
+ ### Configuration
111
+
112
+ TypeDAL and its CLI can be configured via `pyproject.toml`.
113
+ See [6. Migrations](https://typedal.readthedocs.io/en/stable/6_migrations/) for more information about configuration.
114
+
115
+
116
+ ## TypeDAL for PyDAL users - Quick Overview
117
+
118
+ Below you'll find a quick overview of translation from pydal to TypeDAL.
119
+ For more info, see **[the docs](https://typedal.readthedocs.io/en/latest/)**.
120
+
121
+ ---
86
122
 
87
123
  ### Translations from pydal to typedal
88
124
 
@@ -259,7 +295,7 @@ row: TableName = db.table_name(id=1)
259
295
 
260
296
  ### All Types
261
297
 
262
- See [2. Defining Tables](docs/2_defining_tables.md)
298
+ See [2. Defining Tables](https://typedal.readthedocs.io/en/stable/2_defining_tables/)
263
299
 
264
300
  ## Caveats
265
301
 
@@ -1,4 +1,4 @@
1
- typedal/__about__.py,sha256=CN-1Orlz3CG7QijS-1qeKVPqHlDwyfxEQpBei5EcMRU,206
1
+ typedal/__about__.py,sha256=OTBqn2XOHv_4-hOGbfVC29HOywMZOEFQS_8L6KP94Y4,206
2
2
  typedal/__init__.py,sha256=QQpLiVl9w9hm2LBxey49Y_tCF_VB2bScVaS_mCjYy54,366
3
3
  typedal/caching.py,sha256=8UABVAhOlBpL96ykmqhxLaFYOe-XeAh7JoGh57OkxP8,11818
4
4
  typedal/cli.py,sha256=3tge8B-YjgjMC6425-RMczmWvpOTfWV5QYPXRY23IWA,18200
@@ -13,7 +13,7 @@ typedal/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  typedal/types.py,sha256=1kGkNX6vfGg6ln84AG558C4Zx5ACRz-emrUTnuy-rRY,3410
14
14
  typedal/web2py_py4web_shared.py,sha256=VK9T8P5UwVLvfNBsY4q79ANcABv-jX76YKADt1Zz_co,1539
15
15
  typedal/serializers/as_json.py,sha256=ffo152W-sARYXym4BzwX709rrO2-QwKk2KunWY8RNl4,2229
16
- typedal-3.1.0.dist-info/METADATA,sha256=gCefk7iKuT5OVtj6uj8MpfVJlyu_xTSYF2oEim3ZxJg,7808
17
- typedal-3.1.0.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
18
- typedal-3.1.0.dist-info/entry_points.txt,sha256=m1wqcc_10rHWPdlQ71zEkmJDADUAnZtn7Jac_6mbyUc,44
19
- typedal-3.1.0.dist-info/RECORD,,
16
+ typedal-3.1.1.dist-info/METADATA,sha256=TlBsIu6-i1xGFDGHPw76tFtE8I4oambuIGOVEbt2dyE,9270
17
+ typedal-3.1.1.dist-info/WHEEL,sha256=KGYbc1zXlYddvwxnNty23BeaKzh7YuoSIvIMO4jEhvw,87
18
+ typedal-3.1.1.dist-info/entry_points.txt,sha256=m1wqcc_10rHWPdlQ71zEkmJDADUAnZtn7Jac_6mbyUc,44
19
+ typedal-3.1.1.dist-info/RECORD,,