sqlite-database 0.7.10__tar.gz → 0.7.13__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 (152) hide show
  1. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/.github/workflows/python-publish.yml +2 -0
  2. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/PKG-INFO +76 -29
  3. sqlite_database-0.7.13/README.md +131 -0
  4. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/check.sh +0 -0
  5. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/install.bash +0 -0
  6. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/need-installed/pre-commit +0 -0
  7. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/pyproject.toml +33 -32
  8. sqlite_database-0.7.13/requirements.txt +1 -0
  9. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/setup.cfg +2 -2
  10. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database/__init__.py +44 -39
  11. sqlite_database-0.7.13/sqlite_database/_debug.py +4 -0
  12. sqlite_database-0.7.13/sqlite_database/column.py +4 -0
  13. sqlite_database-0.7.13/sqlite_database/csv.py +5 -0
  14. sqlite_database-0.7.13/sqlite_database/database.py +5 -0
  15. sqlite_database-0.7.13/sqlite_database/errors.py +5 -0
  16. sqlite_database-0.7.13/sqlite_database/functions.py +5 -0
  17. sqlite_database-0.7.13/sqlite_database/index.py +5 -0
  18. sqlite_database-0.7.13/sqlite_database/locals.py +5 -0
  19. sqlite_database-0.7.13/sqlite_database/models/__init__.py +5 -0
  20. sqlite_database-0.7.13/sqlite_database/models/errors.py +5 -0
  21. sqlite_database-0.7.13/sqlite_database/models/helpers.py +5 -0
  22. sqlite_database-0.7.13/sqlite_database/models/mixin.py +5 -0
  23. sqlite_database-0.7.13/sqlite_database/models/query_builder.py +5 -0
  24. sqlite_database-0.7.13/sqlite_database/models/type_checkers.py +5 -0
  25. sqlite_database-0.7.13/sqlite_database/operators.py +6 -0
  26. sqlite_database-0.7.13/sqlite_database/query_builder/__init__.py +12 -0
  27. sqlite_database-0.7.13/sqlite_database/query_builder/core.py +5 -0
  28. sqlite_database-0.7.13/sqlite_database/query_builder/engine.py +5 -0
  29. sqlite_database-0.7.13/sqlite_database/query_builder/table_creation.py +5 -0
  30. sqlite_database-0.7.13/sqlite_database/query_builder/typings.py +5 -0
  31. sqlite_database-0.7.13/sqlite_database/query_builder/utils.py +5 -0
  32. sqlite_database-0.7.13/sqlite_database/signature.py +5 -0
  33. sqlite_database-0.7.13/sqlite_database/subquery.py +5 -0
  34. sqlite_database-0.7.13/sqlite_database/table.py +5 -0
  35. sqlite_database-0.7.13/sqlite_database/typings.py +4 -0
  36. sqlite_database-0.7.13/sqlite_database/utils.py +6 -0
  37. sqlite_database-0.7.13/sqlite_database/workers/connection.py +5 -0
  38. sqlite_database-0.7.13/sqlite_database/workers/database.py +5 -0
  39. sqlite_database-0.7.13/sqlite_database/workers/worker.py +5 -0
  40. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/PKG-INFO +76 -29
  41. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/SOURCES.txt +10 -53
  42. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/requires.txt +1 -0
  43. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/model_api/test_model_api.py +1 -1
  44. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_others.py +19 -6
  45. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/test_custom.py +0 -8
  46. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/test_internals.py +1 -1
  47. sqlite_database-0.7.10/.github/ISSUE_TEMPLATE/bug_report.md +0 -31
  48. sqlite_database-0.7.10/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  49. sqlite_database-0.7.10/.github/ISSUE_TEMPLATE/question.md +0 -11
  50. sqlite_database-0.7.10/.github/workflows/pylint.yml +0 -31
  51. sqlite_database-0.7.10/.github/workflows/pytest.yml +0 -39
  52. sqlite_database-0.7.10/.readthedocs.yaml +0 -29
  53. sqlite_database-0.7.10/.vscode/settings.json +0 -10
  54. sqlite_database-0.7.10/History.md +0 -79
  55. sqlite_database-0.7.10/README.md +0 -85
  56. sqlite_database-0.7.10/TODO.md +0 -60
  57. sqlite_database-0.7.10/docs/DatabaseModes.md +0 -8
  58. sqlite_database-0.7.10/docs/Makefile +0 -20
  59. sqlite_database-0.7.10/docs/ModelAPI.md +0 -267
  60. sqlite_database-0.7.10/docs/SimpleGuide.md +0 -192
  61. sqlite_database-0.7.10/docs/_.md +0 -251
  62. sqlite_database-0.7.10/docs/api_reference.rst +0 -12
  63. sqlite_database-0.7.10/docs/conf.py +0 -54
  64. sqlite_database-0.7.10/docs/index.rst +0 -36
  65. sqlite_database-0.7.10/docs/make.bat +0 -35
  66. sqlite_database-0.7.10/docs/modules.rst +0 -7
  67. sqlite_database-0.7.10/docs/sqlite_database.column.rst +0 -7
  68. sqlite_database-0.7.10/docs/sqlite_database.config.rst +0 -7
  69. sqlite_database-0.7.10/docs/sqlite_database.csv.rst +0 -7
  70. sqlite_database-0.7.10/docs/sqlite_database.database.rst +0 -7
  71. sqlite_database-0.7.10/docs/sqlite_database.errors.rst +0 -7
  72. sqlite_database-0.7.10/docs/sqlite_database.functions.rst +0 -7
  73. sqlite_database-0.7.10/docs/sqlite_database.locals.rst +0 -7
  74. sqlite_database-0.7.10/docs/sqlite_database.model.errors.rst +0 -7
  75. sqlite_database-0.7.10/docs/sqlite_database.model.helpers.rst +0 -7
  76. sqlite_database-0.7.10/docs/sqlite_database.model.query_builder.rst +0 -7
  77. sqlite_database-0.7.10/docs/sqlite_database.model.rst +0 -37
  78. sqlite_database-0.7.10/docs/sqlite_database.models.errors.rst +0 -7
  79. sqlite_database-0.7.10/docs/sqlite_database.models.helpers.rst +0 -7
  80. sqlite_database-0.7.10/docs/sqlite_database.models.mixin.rst +0 -7
  81. sqlite_database-0.7.10/docs/sqlite_database.models.query_builder.rst +0 -7
  82. sqlite_database-0.7.10/docs/sqlite_database.models.rst +0 -22
  83. sqlite_database-0.7.10/docs/sqlite_database.models.type_checkers.rst +0 -7
  84. sqlite_database-0.7.10/docs/sqlite_database.operators.rst +0 -7
  85. sqlite_database-0.7.10/docs/sqlite_database.query_builder.rst +0 -7
  86. sqlite_database-0.7.10/docs/sqlite_database.rst +0 -39
  87. sqlite_database-0.7.10/docs/sqlite_database.signature.rst +0 -7
  88. sqlite_database-0.7.10/docs/sqlite_database.subexp.rst +0 -7
  89. sqlite_database-0.7.10/docs/sqlite_database.subquery.rst +0 -7
  90. sqlite_database-0.7.10/docs/sqlite_database.table.rst +0 -7
  91. sqlite_database-0.7.10/docs/sqlite_database.typings.rst +0 -7
  92. sqlite_database-0.7.10/docs/sqlite_database.utils.rst +0 -7
  93. sqlite_database-0.7.10/docs/sqlite_database.workers.connection.rst +0 -7
  94. sqlite_database-0.7.10/docs/sqlite_database.workers.database.rst +0 -7
  95. sqlite_database-0.7.10/docs/sqlite_database.workers.rst +0 -19
  96. sqlite_database-0.7.10/project-init.bash +0 -31
  97. sqlite_database-0.7.10/sqlite_database/_debug.py +0 -46
  98. sqlite_database-0.7.10/sqlite_database/_utils.py +0 -175
  99. sqlite_database-0.7.10/sqlite_database/column.py +0 -299
  100. sqlite_database-0.7.10/sqlite_database/csv.py +0 -79
  101. sqlite_database-0.7.10/sqlite_database/database.py +0 -230
  102. sqlite_database-0.7.10/sqlite_database/errors.py +0 -43
  103. sqlite_database-0.7.10/sqlite_database/functions.py +0 -59
  104. sqlite_database-0.7.10/sqlite_database/locals.py +0 -26
  105. sqlite_database-0.7.10/sqlite_database/models/__init__.py +0 -419
  106. sqlite_database-0.7.10/sqlite_database/models/errors.py +0 -12
  107. sqlite_database-0.7.10/sqlite_database/models/helpers.py +0 -215
  108. sqlite_database-0.7.10/sqlite_database/models/mixin.py +0 -64
  109. sqlite_database-0.7.10/sqlite_database/models/query_builder.py +0 -103
  110. sqlite_database-0.7.10/sqlite_database/models/type_checkers.py +0 -27
  111. sqlite_database-0.7.10/sqlite_database/operators.py +0 -53
  112. sqlite_database-0.7.10/sqlite_database/query_builder.py +0 -757
  113. sqlite_database-0.7.10/sqlite_database/signature.py +0 -150
  114. sqlite_database-0.7.10/sqlite_database/subquery.py +0 -63
  115. sqlite_database-0.7.10/sqlite_database/table.py +0 -670
  116. sqlite_database-0.7.10/sqlite_database/typings.py +0 -28
  117. sqlite_database-0.7.10/sqlite_database/utils.py +0 -20
  118. sqlite_database-0.7.10/sqlite_database/workers/connection.py +0 -214
  119. sqlite_database-0.7.10/sqlite_database/workers/database.py +0 -62
  120. sqlite_database-0.7.10/transient/README.md +0 -1
  121. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/.editorconfig +0 -0
  122. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/.github/dependabot.yml +0 -0
  123. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/.gitignore +0 -0
  124. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/LICENSE +0 -0
  125. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/activate +0 -0
  126. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/check.bat +0 -0
  127. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/include/utility.bash +0 -0
  128. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/need-installed/activate +0 -0
  129. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/bin/summarize-pylint.py +0 -0
  130. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/dev-config/black.toml +0 -0
  131. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/dev-config/pylint.toml +0 -0
  132. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/dev-config/pytest.ini +0 -0
  133. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/dev-requirements.txt +0 -0
  134. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/docs-requirements.txt +0 -0
  135. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/setup.py +0 -0
  136. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database/workers/__init__.py +0 -0
  137. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/dependency_links.txt +0 -0
  138. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/top_level.txt +0 -0
  139. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/sqlite_database.egg-info/zip-safe +0 -0
  140. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/__init__.py +0 -0
  141. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/__init__.py +0 -0
  142. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/model_api/__init__.py +0 -0
  143. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/setup.py +0 -0
  144. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/__init__.py +0 -0
  145. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_csv.py +0 -0
  146. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_delete.py +0 -0
  147. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_insert.py +0 -0
  148. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_select.py +0 -0
  149. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/database/table_api/test_update.py +0 -0
  150. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/manual_test_performances.py +0 -0
  151. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/user_benchmark.py +0 -0
  152. {sqlite_database-0.7.10 → sqlite_database-0.7.13}/tests/user_helpers.py +0 -0
@@ -19,9 +19,11 @@ permissions:
19
19
  jobs:
20
20
  deploy:
21
21
  name: Deploy to PyPI
22
+ if: github.event.release.prerelease == false
22
23
 
23
24
  permissions:
24
25
  id-token: write
26
+
25
27
  runs-on: ubuntu-latest
26
28
 
27
29
  steps:
@@ -1,20 +1,21 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlite_database
3
- Version: 0.7.10
4
- Summary: Easy to use SQLite wrapper
5
- Home-page: https://github.com/RimuEirnarn/sqlite_database
3
+ Version: 0.7.13
4
+ Summary: Easy to use SQLite wrapper (this project is renamed to LuminaDB)
5
+ Home-page: https://github.com/RimuEirnarn/LuminaDB
6
6
  Author: RimuEirnarn
7
7
  Author-email: Rimu Eirnarn <rimuru720@proton.me>
8
8
  License-Expression: BSD-3-Clause
9
- Project-URL: Homepage, https://github.com/RimuEirnarn/sqlite_database
9
+ Project-URL: Homepage, https://github.com/RimuEirnarn/LuminaDB-mirror
10
10
  Project-URL: Documentation, https://sqlite-database.rtfd.io
11
- Project-URL: Repository, https://github.com/RimuEirnarn/sqlite_database.git
11
+ Project-URL: Repository, https://github.com/RimuEirnarn/LuminaDB-mirror.git
12
12
  Keywords: sqlite,sqlite3
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: Implementation :: CPython
15
15
  Requires-Python: >=3.11
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
+ Requires-Dist: LuminaDB
18
19
  Provides-Extra: dev
19
20
  Requires-Dist: pytest; extra == "dev"
20
21
  Requires-Dist: pylint; extra == "dev"
@@ -44,68 +45,114 @@ Dynamic: license-file
44
45
  ![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/RimuEirnarn/sqlite_database)
45
46
 
46
47
  ![PyPI - Format](https://img.shields.io/pypi/format/sqlite-database)
47
- ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sqlite-database)
48
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sqlite_database?label=min%20python)
48
49
  ![PyPI - Implementation](https://img.shields.io/pypi/implementation/sqlite-database)
49
50
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/sqlite-database?label=%28PyPI%29%20downloads)
51
+ ![PyPI - Downloads Daily](https://img.shields.io/pypi/dd/sqlite_database?label=(PyPI)%20downloads%20daily)
52
+
50
53
 
51
54
  </div>
52
55
 
53
- SQLite Database is an easy and simple way to use SQLite, almost as easy as using Laravel Eloquent ORM.
56
+ **NOTICE!**: This project is renamed to [LuminaDB](https://github.com/RimuEirnarn/LuminaDB), please use LuminaDB instead of this~
57
+
58
+ **SQLite Database** is a lightweight, developer-friendly wrapper for SQLite—designed to feel as intuitive as Laravel's Eloquent ORM, but in Python.
54
59
 
55
60
  > [!WARNING]
56
- > This project as per version number (<1.0) is not either efficient (in term of memory usage) and fast. If you found a serious problem, please let us know.
61
+ > ⚠️ This library is still pre-1.0, which means it's not optimized for high performance or low memory usage (yet). Use with care. If you run into serious issues, feel free to open an issue—we’re listening.
62
+
63
+ ---
64
+
65
+ ## 🚀 Usage & Demo
66
+
67
+ Curious how it works in action?
68
+ Check out the live example here: [sqlite-database demo](https://github.com/RimuEirnarn/sqlite_database_demo)
69
+
70
+ ---
71
+
72
+ ## 📦 Installation
73
+
74
+ The library is available via PyPI:
75
+
76
+ ```sh
77
+ pip install sqlite-database
78
+ ```
57
79
 
58
- ## Usage/Showcase
80
+ Prefer to install directly from GitHub? You can still do this the old-school way:
59
81
 
60
- Want to know how I use sqlite-database? [Visit this demo](https://github.com/RimuEirnarn/sqlite_database_demo)
82
+ ```sh
83
+ pip install https://github.com/RimuEirnarn/sqlite_database/archive/refs/tags/<latest-version>.zip
84
+ ```
85
+
86
+ ---
61
87
 
62
- ## Installation
88
+ ## ✨ Features
63
89
 
64
- Installation from PyPI is now available, `pip install sqlite-database`
90
+ A quick feature overview is available in [Features.md](https://github.com/RimuEirnarn/sqlite_database/blob/main/docs/SimpleGuide.md)
65
91
 
66
- From previous versions, installations can be done using `pip install https://github.com/RimuEirnarn/sqlite_database/archive/refs/tags/<latest version>.zip`
92
+ Or check out the full short docs at:
93
+ 📚 [sqlite-database.rtfd.io](https://sqlite-database.rtfd.io/)
67
94
 
68
- ## Features
95
+ ---
69
96
 
70
- Feature overview can be found in [Features.md](https://github.com/RimuEirnarn/sqlite_database/blob/main/docs/SimpleGuide.md)
97
+ ## 📖 Origin Story & Acknowledgements
71
98
 
72
- It's still recommended to see the [short docs](https://sqlite-database.rtfd.io/)
99
+ Wondering why this exists?
100
+ Read the [History.md](History.md) to learn what led to the birth of this project.
73
101
 
74
- ## History & Pre-contributors
102
+ > Pre-contributor: just ChatGPT—so blame the AI if anything’s weird.
75
103
 
76
- You can read why this library exists by reading [the history](History.md). The pre-contributor is only ChatGPT.
104
+ ---
77
105
 
78
- ## Contributing
106
+ ## 🤝 Contributing
79
107
 
80
- You can submit any issue if you found a good issue. You can submit a pull request as long as the thing you want complies with what this project aims for.
108
+ Found a bug? Got an idea? Want to improve something?
81
109
 
82
- ## Development
110
+ - Open an issue for anything noteworthy.
111
+ - PRs are welcome—as long as they align with the project's vision and design goals.
83
112
 
84
- Thanks for considering in contributing to sqlite_database!
113
+ ---
85
114
 
86
- For development kits, you only need `pytest` and `pylint`, `sphinx` is required for documentation. Please refer to their own `dev-requirements.txt` and `docs-requirements.txt`
115
+ ## 🛠️ Development Setup
87
116
 
88
- When using `pytest`, do this: `pytest --config-file=./dev-config/pytest.ini` or check any check scripts in `bin/` (e.g `bin/check.sh`)
117
+ Thanks for considering contributing to `sqlite_database`! Here's what you'll need:
89
118
 
90
- ### How to install?
119
+ - **Testing**: `pytest`
120
+ - **Linting**: `pylint`
121
+ - **Docs**: `sphinx`
122
+
123
+ Dependencies are split between:
124
+ - `dev-requirements.txt` (core development)
125
+ - `docs-requirements.txt` (documentation)
126
+
127
+ To get started:
91
128
 
92
129
  ```sh
93
130
  git clone https://github.com/RimuEirnarn/sqlite_database
94
131
  cd sqlite_database
95
132
 
96
133
  python -m venv .venv
97
- .venv/bin/activate
134
+ source .venv/bin/activate # or `.venv\Scripts\activate` on Windows
98
135
 
99
136
  pip install -r ./dev-requirements.txt
100
137
  ./bin/check.sh
138
+ ```
101
139
 
102
- # Above script is equivalent to:
140
+ The `check.sh` script will run:
141
+
142
+ ```sh
103
143
  pylint --rcfile ./dev-config/pylint.toml sqlite_database
104
144
  pytest --config-file ./dev-config/pytest.ini
105
145
  ```
106
146
 
107
- ## License
147
+ Simple and clean.
148
+
149
+ ---
108
150
 
109
- This library/wrapper/repo/project is licensed with/in BSD 3-Clause "New" or "Revised" License.
151
+ ## 📄 License
110
152
 
153
+ This project is licensed under the **BSD 3-Clause "New" or "Revised" License**.
154
+
155
+ Read the full license here:
111
156
  [LICENSE](https://github.com/RimuEirnarn/sqlite_database/blob/main/LICENSE)
157
+
158
+ ---
@@ -0,0 +1,131 @@
1
+ # SQLite Database
2
+
3
+ <div align="center">
4
+
5
+ ![GitHub forks](https://img.shields.io/github/forks/RimuEirnarn/sqlite_database?style=social)
6
+ ![GitHub Repo stars](https://img.shields.io/github/stars/RimuEirnarn/sqlite_database?style=social)
7
+
8
+ ![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/RimuEirnarn/sqlite_database)
9
+ ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/RimuEirnarn/sqlite_database)
10
+ ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/RimuEirnarn/sqlite_database)
11
+ ![GitHub all releases](https://img.shields.io/github/downloads/RimuEirnarn/sqlite_database/total)
12
+ ![GitHub Workflow(pylint) Status](https://img.shields.io/github/actions/workflow/status/RimuEirnarn/sqlite_database/pylint.yml?label=lint)
13
+ ![GitHub Workflow(pytest) Status](https://img.shields.io/github/actions/workflow/status/RimuEirnarn/sqlite_database/pytest.yml?label=tests)
14
+ ![GitHub Workflow(pypi) Status](https://img.shields.io/github/actions/workflow/status/RimuEirnarn/sqlite_database/python-publish.yml)
15
+ ![GitHub release (latest by date)](https://img.shields.io/github/v/release/RimuEirnarn/sqlite_database)
16
+ [![Documentation Status](https://readthedocs.org/projects/sqlite-database/badge/?version=latest)](https://sqlite-database.readthedocs.io/en/latest/?badge=latest)
17
+ ![GitHub](https://img.shields.io/github/license/RimuEirnarn/sqlite_database)
18
+ ![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/RimuEirnarn/sqlite_database)
19
+
20
+ ![PyPI - Format](https://img.shields.io/pypi/format/sqlite-database)
21
+ ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sqlite_database?label=min%20python)
22
+ ![PyPI - Implementation](https://img.shields.io/pypi/implementation/sqlite-database)
23
+ ![PyPI - Downloads](https://img.shields.io/pypi/dm/sqlite-database?label=%28PyPI%29%20downloads)
24
+ ![PyPI - Downloads Daily](https://img.shields.io/pypi/dd/sqlite_database?label=(PyPI)%20downloads%20daily)
25
+
26
+
27
+ </div>
28
+
29
+ **NOTICE!**: This project is renamed to [LuminaDB](https://github.com/RimuEirnarn/LuminaDB), please use LuminaDB instead of this~
30
+
31
+ **SQLite Database** is a lightweight, developer-friendly wrapper for SQLite—designed to feel as intuitive as Laravel's Eloquent ORM, but in Python.
32
+
33
+ > [!WARNING]
34
+ > ⚠️ This library is still pre-1.0, which means it's not optimized for high performance or low memory usage (yet). Use with care. If you run into serious issues, feel free to open an issue—we’re listening.
35
+
36
+ ---
37
+
38
+ ## 🚀 Usage & Demo
39
+
40
+ Curious how it works in action?
41
+ Check out the live example here: [sqlite-database demo](https://github.com/RimuEirnarn/sqlite_database_demo)
42
+
43
+ ---
44
+
45
+ ## 📦 Installation
46
+
47
+ The library is available via PyPI:
48
+
49
+ ```sh
50
+ pip install sqlite-database
51
+ ```
52
+
53
+ Prefer to install directly from GitHub? You can still do this the old-school way:
54
+
55
+ ```sh
56
+ pip install https://github.com/RimuEirnarn/sqlite_database/archive/refs/tags/<latest-version>.zip
57
+ ```
58
+
59
+ ---
60
+
61
+ ## ✨ Features
62
+
63
+ A quick feature overview is available in [Features.md](https://github.com/RimuEirnarn/sqlite_database/blob/main/docs/SimpleGuide.md)
64
+
65
+ Or check out the full short docs at:
66
+ 📚 [sqlite-database.rtfd.io](https://sqlite-database.rtfd.io/)
67
+
68
+ ---
69
+
70
+ ## 📖 Origin Story & Acknowledgements
71
+
72
+ Wondering why this exists?
73
+ Read the [History.md](History.md) to learn what led to the birth of this project.
74
+
75
+ > Pre-contributor: just ChatGPT—so blame the AI if anything’s weird.
76
+
77
+ ---
78
+
79
+ ## 🤝 Contributing
80
+
81
+ Found a bug? Got an idea? Want to improve something?
82
+
83
+ - Open an issue for anything noteworthy.
84
+ - PRs are welcome—as long as they align with the project's vision and design goals.
85
+
86
+ ---
87
+
88
+ ## 🛠️ Development Setup
89
+
90
+ Thanks for considering contributing to `sqlite_database`! Here's what you'll need:
91
+
92
+ - **Testing**: `pytest`
93
+ - **Linting**: `pylint`
94
+ - **Docs**: `sphinx`
95
+
96
+ Dependencies are split between:
97
+ - `dev-requirements.txt` (core development)
98
+ - `docs-requirements.txt` (documentation)
99
+
100
+ To get started:
101
+
102
+ ```sh
103
+ git clone https://github.com/RimuEirnarn/sqlite_database
104
+ cd sqlite_database
105
+
106
+ python -m venv .venv
107
+ source .venv/bin/activate # or `.venv\Scripts\activate` on Windows
108
+
109
+ pip install -r ./dev-requirements.txt
110
+ ./bin/check.sh
111
+ ```
112
+
113
+ The `check.sh` script will run:
114
+
115
+ ```sh
116
+ pylint --rcfile ./dev-config/pylint.toml sqlite_database
117
+ pytest --config-file ./dev-config/pytest.ini
118
+ ```
119
+
120
+ Simple and clean.
121
+
122
+ ---
123
+
124
+ ## 📄 License
125
+
126
+ This project is licensed under the **BSD 3-Clause "New" or "Revised" License**.
127
+
128
+ Read the full license here:
129
+ [LICENSE](https://github.com/RimuEirnarn/sqlite_database/blob/main/LICENSE)
130
+
131
+ ---
@@ -1,32 +1,33 @@
1
- [build-system]
2
- requires = ["setuptools", "setuptools-scm"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "sqlite_database"
7
- description = "Easy to use SQLite wrapper"
8
- authors = [
9
- {name = "Rimu Eirnarn", email = "rimuru720@proton.me"}
10
- ]
11
- keywords = ["sqlite", "sqlite3"]
12
- readme = "README.md"
13
- requires-python = ">=3.11"
14
- license = "BSD-3-Clause"
15
- classifiers = [
16
- "Programming Language :: Python :: 3.11",
17
- "Programming Language :: Python :: Implementation :: CPython"
18
- ]
19
- dynamic = ["version"]
20
-
21
- [project.urls]
22
- Homepage = "https://github.com/RimuEirnarn/sqlite_database"
23
- Documentation = "https://sqlite-database.rtfd.io"
24
- Repository = "https://github.com/RimuEirnarn/sqlite_database.git"
25
-
26
- [tool.setuptools]
27
- zip-safe = true
28
- packages = ["sqlite_database", "sqlite_database.models", "sqlite_database.workers"]
29
-
30
- [project.optional-dependencies]
31
- dev = ["pytest", "pylint", "black"]
32
- docs = ['sphinx', 'myst_parser']
1
+ [build-system]
2
+ requires = ["setuptools", "setuptools-scm"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "sqlite_database"
7
+ description = "Easy to use SQLite wrapper (this project is renamed to LuminaDB)"
8
+ authors = [
9
+ {name = "Rimu Eirnarn", email = "rimuru720@proton.me"}
10
+ ]
11
+ keywords = ["sqlite", "sqlite3"]
12
+ readme = "README.md"
13
+ requires-python = ">=3.11"
14
+ license = "BSD-3-Clause"
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3.11",
17
+ "Programming Language :: Python :: Implementation :: CPython"
18
+ ]
19
+ dynamic = ["version"]
20
+ dependencies = ['LuminaDB']
21
+
22
+ [project.urls]
23
+ Homepage = "https://github.com/RimuEirnarn/LuminaDB-mirror"
24
+ Documentation = "https://sqlite-database.rtfd.io"
25
+ Repository = "https://github.com/RimuEirnarn/LuminaDB-mirror.git"
26
+
27
+ [tool.setuptools]
28
+ zip-safe = true
29
+ packages = ["sqlite_database", "sqlite_database.models", "sqlite_database.workers"]
30
+
31
+ [project.optional-dependencies]
32
+ dev = ["pytest", "pylint", "black"]
33
+ docs = ['sphinx', 'myst_parser']
@@ -0,0 +1 @@
1
+ LuminaDB
@@ -2,14 +2,14 @@
2
2
  name = sqlite_database
3
3
  version = attr: sqlite_database.__version__
4
4
  license_files = LICENSE
5
- url = https://github.com/RimuEirnarn/sqlite_database
5
+ url = https://github.com/RimuEirnarn/LuminaDB
6
6
  author = RimuEirnarn
7
7
  author_email = rimuru720@proton.me
8
8
  description = A weird wrapper for SQLite Connection
9
9
  long_description = file: README.md
10
10
  long_description_content_type = text/markdown
11
11
  project_urls =
12
- Source Code = https://github.com/RimuEirnarn/sqlite_database
12
+ Source Code = https://github.com/RimuEirnarn/LuminaDB
13
13
 
14
14
  [options]
15
15
  packages = sqlite_database
@@ -1,39 +1,44 @@
1
- """Database"""
2
-
3
- from . import models
4
- from .models import BaseModel, model, Foreign, Primary, Unique, hook, validate
5
- from .database import Database
6
- from ._utils import Row, Null
7
- from .column import Column, text, integer, blob, real
8
- from .signature import op
9
- from .operators import this
10
- from .table import Table
11
-
12
-
13
- def test_installed():
14
- """Is the module installed?"""
15
- return True
16
-
17
-
18
- __version__ = "0.7.10"
19
- __all__ = [
20
- "Database",
21
- "Table",
22
- "this",
23
- "op",
24
- "Column",
25
- "Null",
26
- "Row",
27
- "text",
28
- "integer",
29
- "real",
30
- "blob",
31
- "BaseModel",
32
- "models",
33
- "Foreign",
34
- "Primary",
35
- "Unique",
36
- "model",
37
- "hook",
38
- "validate"
39
- ]
1
+ """Database"""
2
+
3
+ from warnings import warn
4
+
5
+
6
+ from . import models
7
+ from .models import BaseModel, model, Foreign, Primary, Unique, hook, validate
8
+ from .database import Database
9
+ from .utils import Row, Null
10
+ from .column import Column, text, integer, blob, real
11
+ from .signature import op
12
+ from .operators import this
13
+ from .table import Table
14
+ from .index import Index
15
+
16
+ def test_installed():
17
+ """Is the module installed?"""
18
+ return True
19
+
20
+ warn("This package is now renamed to LuminaDB. Please upgrade to LuminaDB", DeprecationWarning)
21
+
22
+ __version__ = "0.7.13"
23
+ __all__ = [
24
+ "Database",
25
+ "Table",
26
+ "this",
27
+ "op",
28
+ "Column",
29
+ "Null",
30
+ "Row",
31
+ "text",
32
+ "integer",
33
+ "real",
34
+ "blob",
35
+ "BaseModel",
36
+ "models",
37
+ "Foreign",
38
+ "Primary",
39
+ "Unique",
40
+ "model",
41
+ "hook",
42
+ "validate",
43
+ "Index"
44
+ ]
@@ -0,0 +1,4 @@
1
+ """Used for debugging"""
2
+ # pylint: disable=wildcard-import,unused-wildcard-import
3
+
4
+ from luminadb._debug import * # type: ignore
@@ -0,0 +1,4 @@
1
+ """Column"""
2
+ # pylint: disable=wildcard-import,unused-wildcard-import
3
+
4
+ from luminadb.column import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """CSV module, used to export database/table to csv"""
2
+
3
+ # pylint: disable=unused-wildcard-import,wildcard-import
4
+
5
+ from luminadb.csv import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """SQLite Database"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.database import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Errors"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.errors import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """SQLite Functions, this provide 'low level interface'."""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.functions import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Indexes"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.index import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Locals"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.locals import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Models"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.models import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Error modules"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.models.errors import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Model helpers"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.models.helpers import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Mixin Helpers"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.models.mixin import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Model QueryBuilder"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.models.query_builder import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Type checking"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.models.type_checkers import * # type: ignore
@@ -0,0 +1,6 @@
1
+ """Custom operators for shorthand."""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.operators import * # type: ignore
6
+ from luminadb.operators import op
@@ -0,0 +1,12 @@
1
+ """Query Builder"""
2
+
3
+ from .core import build_delete, build_insert, build_select, build_update
4
+ from .engine import build_update_data, SubQuery
5
+
6
+ __all__ = [
7
+ "build_delete",
8
+ "build_insert",
9
+ "build_select",
10
+ "build_update",
11
+ "build_update_data",
12
+ ]
@@ -0,0 +1,5 @@
1
+ """Core builder"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.query_builder.core import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Generic query building engine"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.query_builder.engine import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Table Creation"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.query_builder.table_creation import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Typings"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.query_builder.typings import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Utility"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.query_builder.utils import * # type: ignore
@@ -0,0 +1,5 @@
1
+ """Signature"""
2
+
3
+ # pylint: disable=wildcard-import,unused-wildcard-import
4
+
5
+ from luminadb.signature import * # type: ignore