flashorm 2.4.0__tar.gz → 2.4.1__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.
- {flashorm-2.4.0 → flashorm-2.4.1}/LICENSE +19 -19
- {flashorm-2.4.0 → flashorm-2.4.1}/MANIFEST.in +2 -2
- {flashorm-2.4.0/flashorm.egg-info → flashorm-2.4.1}/PKG-INFO +18 -23
- {flashorm-2.4.0 → flashorm-2.4.1}/README.md +17 -22
- {flashorm-2.4.0 → flashorm-2.4.1}/flashorm/__init__.py +3 -3
- {flashorm-2.4.0 → flashorm-2.4.1}/flashorm/cli.py +24 -24
- {flashorm-2.4.0 → flashorm-2.4.1}/flashorm/install.py +88 -88
- {flashorm-2.4.0 → flashorm-2.4.1/flashorm.egg-info}/PKG-INFO +18 -23
- {flashorm-2.4.0 → flashorm-2.4.1}/pyproject.toml +31 -31
- {flashorm-2.4.0 → flashorm-2.4.1}/setup.py +55 -55
- {flashorm-2.4.0 → flashorm-2.4.1}/flashorm.egg-info/SOURCES.txt +0 -0
- {flashorm-2.4.0 → flashorm-2.4.1}/flashorm.egg-info/dependency_links.txt +0 -0
- {flashorm-2.4.0 → flashorm-2.4.1}/flashorm.egg-info/entry_points.txt +0 -0
- {flashorm-2.4.0 → flashorm-2.4.1}/flashorm.egg-info/top_level.txt +0 -0
- {flashorm-2.4.0 → flashorm-2.4.1}/setup.cfg +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
MIT Non-Commercial License (MIT-NC)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 FlashORM
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the “Software”), to use,
|
|
7
|
-
copy, modify, merge, publish, and distribute copies of the Software for
|
|
8
|
-
personal, educational, or non-commercial purposes only, subject to the
|
|
9
|
-
following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
Commercial use of the Software (including use by any for-profit business or
|
|
15
|
-
organization) requires a separate commercial license from the author.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
1
|
+
MIT Non-Commercial License (MIT-NC)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 FlashORM
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the “Software”), to use,
|
|
7
|
+
copy, modify, merge, publish, and distribute copies of the Software for
|
|
8
|
+
personal, educational, or non-commercial purposes only, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
Commercial use of the Software (including use by any for-profit business or
|
|
15
|
+
organization) requires a separate commercial license from the author.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
include README.md
|
|
2
|
-
recursive-include flashorm/bin *
|
|
1
|
+
include README.md
|
|
2
|
+
recursive-include flashorm/bin *
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flashorm
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.1
|
|
4
4
|
Summary: A powerful, database-agnostic ORM with multi-database support and type-safe code generation
|
|
5
5
|
Home-page: https://github.com/Lumos-Labs-HQ/flash
|
|
6
6
|
Author: Rana718
|
|
@@ -74,7 +74,7 @@ This creates:
|
|
|
74
74
|
|
|
75
75
|
```
|
|
76
76
|
your-project/
|
|
77
|
-
├── flash.
|
|
77
|
+
├── flash.toml
|
|
78
78
|
├── .env
|
|
79
79
|
└── db/
|
|
80
80
|
├── schema/
|
|
@@ -233,7 +233,7 @@ flash studio
|
|
|
233
233
|
flash studio --port 3000
|
|
234
234
|
|
|
235
235
|
# Connect to any database directly
|
|
236
|
-
flash studio
|
|
236
|
+
flash studio "postgresql://user:pass@localhost:5432/mydb"
|
|
237
237
|
|
|
238
238
|
# Launch without opening browser
|
|
239
239
|
flash studio --browser=false
|
|
@@ -347,27 +347,22 @@ flash <command> --help
|
|
|
347
347
|
|
|
348
348
|
## ⚙️ Configuration
|
|
349
349
|
|
|
350
|
-
**flash.
|
|
350
|
+
**flash.toml**
|
|
351
351
|
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
"enabled": true,
|
|
367
|
-
"async": false
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
352
|
+
```toml
|
|
353
|
+
version = "2"
|
|
354
|
+
schema_path = "db/schema/schema.sql"
|
|
355
|
+
queries = "db/queries/"
|
|
356
|
+
migrations_path = "db/migrations"
|
|
357
|
+
export_path = "db/export"
|
|
358
|
+
|
|
359
|
+
[database]
|
|
360
|
+
provider = "postgresql"
|
|
361
|
+
url_env = "DATABASE_URL"
|
|
362
|
+
|
|
363
|
+
[gen.python]
|
|
364
|
+
enabled = true
|
|
365
|
+
async = false
|
|
371
366
|
```
|
|
372
367
|
|
|
373
368
|
**Python Generation Options:**
|
|
@@ -47,7 +47,7 @@ This creates:
|
|
|
47
47
|
|
|
48
48
|
```
|
|
49
49
|
your-project/
|
|
50
|
-
├── flash.
|
|
50
|
+
├── flash.toml
|
|
51
51
|
├── .env
|
|
52
52
|
└── db/
|
|
53
53
|
├── schema/
|
|
@@ -206,7 +206,7 @@ flash studio
|
|
|
206
206
|
flash studio --port 3000
|
|
207
207
|
|
|
208
208
|
# Connect to any database directly
|
|
209
|
-
flash studio
|
|
209
|
+
flash studio "postgresql://user:pass@localhost:5432/mydb"
|
|
210
210
|
|
|
211
211
|
# Launch without opening browser
|
|
212
212
|
flash studio --browser=false
|
|
@@ -320,27 +320,22 @@ flash <command> --help
|
|
|
320
320
|
|
|
321
321
|
## ⚙️ Configuration
|
|
322
322
|
|
|
323
|
-
**flash.
|
|
323
|
+
**flash.toml**
|
|
324
324
|
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
"enabled": true,
|
|
340
|
-
"async": false
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
325
|
+
```toml
|
|
326
|
+
version = "2"
|
|
327
|
+
schema_path = "db/schema/schema.sql"
|
|
328
|
+
queries = "db/queries/"
|
|
329
|
+
migrations_path = "db/migrations"
|
|
330
|
+
export_path = "db/export"
|
|
331
|
+
|
|
332
|
+
[database]
|
|
333
|
+
provider = "postgresql"
|
|
334
|
+
url_env = "DATABASE_URL"
|
|
335
|
+
|
|
336
|
+
[gen.python]
|
|
337
|
+
enabled = true
|
|
338
|
+
async = false
|
|
344
339
|
```
|
|
345
340
|
|
|
346
341
|
**Python Generation Options:**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"""Flash ORM - A powerful, database-agnostic ORM"""
|
|
2
|
-
|
|
3
|
-
__version__ = "2.4.
|
|
1
|
+
"""Flash ORM - A powerful, database-agnostic ORM"""
|
|
2
|
+
|
|
3
|
+
__version__ = "2.4.1"
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
import os
|
|
3
|
-
import sys
|
|
4
|
-
import subprocess
|
|
5
|
-
import platform
|
|
6
|
-
|
|
7
|
-
def main():
|
|
8
|
-
binary_name = 'flash.exe' if platform.system().lower() == 'windows' else 'flash'
|
|
9
|
-
bin_path = os.path.join(os.path.dirname(__file__), 'bin', binary_name)
|
|
10
|
-
|
|
11
|
-
if not os.path.exists(bin_path):
|
|
12
|
-
print(f"❌ flash binary not found at {bin_path}")
|
|
13
|
-
print("Please reinstall: pip install --force-reinstall flashorm")
|
|
14
|
-
sys.exit(1)
|
|
15
|
-
|
|
16
|
-
try:
|
|
17
|
-
result = subprocess.run([bin_path] + sys.argv[1:])
|
|
18
|
-
sys.exit(result.returncode)
|
|
19
|
-
except Exception as e:
|
|
20
|
-
print(f"❌ Error running flash: {e}")
|
|
21
|
-
sys.exit(1)
|
|
22
|
-
|
|
23
|
-
if __name__ == '__main__':
|
|
24
|
-
main()
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
4
|
+
import subprocess
|
|
5
|
+
import platform
|
|
6
|
+
|
|
7
|
+
def main():
|
|
8
|
+
binary_name = 'flash.exe' if platform.system().lower() == 'windows' else 'flash'
|
|
9
|
+
bin_path = os.path.join(os.path.dirname(__file__), 'bin', binary_name)
|
|
10
|
+
|
|
11
|
+
if not os.path.exists(bin_path):
|
|
12
|
+
print(f"❌ flash binary not found at {bin_path}")
|
|
13
|
+
print("Please reinstall: pip install --force-reinstall flashorm")
|
|
14
|
+
sys.exit(1)
|
|
15
|
+
|
|
16
|
+
try:
|
|
17
|
+
result = subprocess.run([bin_path] + sys.argv[1:])
|
|
18
|
+
sys.exit(result.returncode)
|
|
19
|
+
except Exception as e:
|
|
20
|
+
print(f"❌ Error running flash: {e}")
|
|
21
|
+
sys.exit(1)
|
|
22
|
+
|
|
23
|
+
if __name__ == '__main__':
|
|
24
|
+
main()
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
import os
|
|
3
|
-
import sys
|
|
4
|
-
import platform
|
|
5
|
-
import urllib.request
|
|
6
|
-
import stat
|
|
7
|
-
|
|
8
|
-
VERSION = '2.1.11'
|
|
9
|
-
REPO = 'Lumos-Labs-HQ/flash'
|
|
10
|
-
|
|
11
|
-
def cleanup_binaries(bin_dir, keep_binary):
|
|
12
|
-
"""Remove binaries for other platforms"""
|
|
13
|
-
if not os.path.exists(bin_dir):
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
for filename in os.listdir(bin_dir):
|
|
17
|
-
filepath = os.path.join(bin_dir, filename)
|
|
18
|
-
if filename.startswith('flash') and filename != 'flash' and filename != 'flash.exe' and filename != keep_binary:
|
|
19
|
-
try:
|
|
20
|
-
os.remove(filepath)
|
|
21
|
-
print(f"🧹 Cleaned up: {filename}")
|
|
22
|
-
except:
|
|
23
|
-
pass
|
|
24
|
-
|
|
25
|
-
def install():
|
|
26
|
-
system = platform.system().lower()
|
|
27
|
-
machine = platform.machine().lower()
|
|
28
|
-
|
|
29
|
-
platform_map = {'darwin': 'darwin', 'linux': 'linux', 'windows': 'windows'}
|
|
30
|
-
arch_map = {'x86_64': 'amd64', 'amd64': 'amd64', 'arm64': 'arm64', 'aarch64': 'arm64'}
|
|
31
|
-
|
|
32
|
-
mapped_platform = platform_map.get(system)
|
|
33
|
-
mapped_arch = arch_map.get(machine)
|
|
34
|
-
|
|
35
|
-
if not mapped_platform or not mapped_arch:
|
|
36
|
-
print(f"❌ Unsupported platform: {system}-{machine}", file=sys.stderr)
|
|
37
|
-
sys.exit(1)
|
|
38
|
-
|
|
39
|
-
binary_name = 'flash.exe' if system == 'windows' else 'flash'
|
|
40
|
-
download_name = f"flash-{mapped_platform}-{mapped_arch}{'.exe' if system == 'windows' else ''}"
|
|
41
|
-
download_url = f"https://github.com/{REPO}/releases/download/v{VERSION}/{download_name}"
|
|
42
|
-
|
|
43
|
-
bin_dir = os.path.join(os.path.dirname(__file__), 'bin')
|
|
44
|
-
binary_path = os.path.join(bin_dir, binary_name)
|
|
45
|
-
|
|
46
|
-
print(f"📦 Installing FlashORM Base CLI v{VERSION} for {system}-{machine}...")
|
|
47
|
-
print(f"📥 Downloading from: {download_url}")
|
|
48
|
-
|
|
49
|
-
if not os.path.exists(bin_dir):
|
|
50
|
-
os.makedirs(bin_dir, exist_ok=True)
|
|
51
|
-
|
|
52
|
-
try:
|
|
53
|
-
urllib.request.urlretrieve(download_url, binary_path)
|
|
54
|
-
os.chmod(binary_path, os.stat(binary_path).st_mode | stat.S_IEXEC)
|
|
55
|
-
|
|
56
|
-
# Clean up binaries for other platforms
|
|
57
|
-
cleanup_binaries(bin_dir, binary_name)
|
|
58
|
-
|
|
59
|
-
print("✅ FlashORM Base CLI installed successfully!")
|
|
60
|
-
print("")
|
|
61
|
-
print("📦 Plugin System")
|
|
62
|
-
print(" FlashORM now uses a plugin-based architecture.")
|
|
63
|
-
print(" The base CLI includes only essential commands:")
|
|
64
|
-
print(" • flash --version (show version)")
|
|
65
|
-
print(" • flash plugins (list plugins)")
|
|
66
|
-
print(" • flash add-plug (install plugins)")
|
|
67
|
-
print(" • flash rm-plug (remove plugins)")
|
|
68
|
-
print("")
|
|
69
|
-
print(" Install plugins for ORM functionality:")
|
|
70
|
-
print("")
|
|
71
|
-
print(" flash add-plug core # ORM features (migrations, codegen, export)")
|
|
72
|
-
print(" flash add-plug studio # Visual database editor")
|
|
73
|
-
print(" flash add-plug all # Everything (core + studio)")
|
|
74
|
-
print("")
|
|
75
|
-
print("🚀 Run 'flash --help' to get started!")
|
|
76
|
-
except Exception as err:
|
|
77
|
-
if os.path.exists(binary_path):
|
|
78
|
-
os.unlink(binary_path)
|
|
79
|
-
print(f"❌ Download failed: {err}", file=sys.stderr)
|
|
80
|
-
print(f"Please check: {download_url}", file=sys.stderr)
|
|
81
|
-
print("")
|
|
82
|
-
print("You can also download manually from:", file=sys.stderr)
|
|
83
|
-
print(f" https://github.com/{REPO}/releases/tag/v{VERSION}", file=sys.stderr)
|
|
84
|
-
sys.exit(1)
|
|
85
|
-
|
|
86
|
-
if __name__ == '__main__':
|
|
87
|
-
install()
|
|
88
|
-
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
4
|
+
import platform
|
|
5
|
+
import urllib.request
|
|
6
|
+
import stat
|
|
7
|
+
|
|
8
|
+
VERSION = '2.1.11'
|
|
9
|
+
REPO = 'Lumos-Labs-HQ/flash'
|
|
10
|
+
|
|
11
|
+
def cleanup_binaries(bin_dir, keep_binary):
|
|
12
|
+
"""Remove binaries for other platforms"""
|
|
13
|
+
if not os.path.exists(bin_dir):
|
|
14
|
+
return
|
|
15
|
+
|
|
16
|
+
for filename in os.listdir(bin_dir):
|
|
17
|
+
filepath = os.path.join(bin_dir, filename)
|
|
18
|
+
if filename.startswith('flash') and filename != 'flash' and filename != 'flash.exe' and filename != keep_binary:
|
|
19
|
+
try:
|
|
20
|
+
os.remove(filepath)
|
|
21
|
+
print(f"🧹 Cleaned up: {filename}")
|
|
22
|
+
except:
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def install():
|
|
26
|
+
system = platform.system().lower()
|
|
27
|
+
machine = platform.machine().lower()
|
|
28
|
+
|
|
29
|
+
platform_map = {'darwin': 'darwin', 'linux': 'linux', 'windows': 'windows'}
|
|
30
|
+
arch_map = {'x86_64': 'amd64', 'amd64': 'amd64', 'arm64': 'arm64', 'aarch64': 'arm64'}
|
|
31
|
+
|
|
32
|
+
mapped_platform = platform_map.get(system)
|
|
33
|
+
mapped_arch = arch_map.get(machine)
|
|
34
|
+
|
|
35
|
+
if not mapped_platform or not mapped_arch:
|
|
36
|
+
print(f"❌ Unsupported platform: {system}-{machine}", file=sys.stderr)
|
|
37
|
+
sys.exit(1)
|
|
38
|
+
|
|
39
|
+
binary_name = 'flash.exe' if system == 'windows' else 'flash'
|
|
40
|
+
download_name = f"flash-{mapped_platform}-{mapped_arch}{'.exe' if system == 'windows' else ''}"
|
|
41
|
+
download_url = f"https://github.com/{REPO}/releases/download/v{VERSION}/{download_name}"
|
|
42
|
+
|
|
43
|
+
bin_dir = os.path.join(os.path.dirname(__file__), 'bin')
|
|
44
|
+
binary_path = os.path.join(bin_dir, binary_name)
|
|
45
|
+
|
|
46
|
+
print(f"📦 Installing FlashORM Base CLI v{VERSION} for {system}-{machine}...")
|
|
47
|
+
print(f"📥 Downloading from: {download_url}")
|
|
48
|
+
|
|
49
|
+
if not os.path.exists(bin_dir):
|
|
50
|
+
os.makedirs(bin_dir, exist_ok=True)
|
|
51
|
+
|
|
52
|
+
try:
|
|
53
|
+
urllib.request.urlretrieve(download_url, binary_path)
|
|
54
|
+
os.chmod(binary_path, os.stat(binary_path).st_mode | stat.S_IEXEC)
|
|
55
|
+
|
|
56
|
+
# Clean up binaries for other platforms
|
|
57
|
+
cleanup_binaries(bin_dir, binary_name)
|
|
58
|
+
|
|
59
|
+
print("✅ FlashORM Base CLI installed successfully!")
|
|
60
|
+
print("")
|
|
61
|
+
print("📦 Plugin System")
|
|
62
|
+
print(" FlashORM now uses a plugin-based architecture.")
|
|
63
|
+
print(" The base CLI includes only essential commands:")
|
|
64
|
+
print(" • flash --version (show version)")
|
|
65
|
+
print(" • flash plugins (list plugins)")
|
|
66
|
+
print(" • flash add-plug (install plugins)")
|
|
67
|
+
print(" • flash rm-plug (remove plugins)")
|
|
68
|
+
print("")
|
|
69
|
+
print(" Install plugins for ORM functionality:")
|
|
70
|
+
print("")
|
|
71
|
+
print(" flash add-plug core # ORM features (migrations, codegen, export)")
|
|
72
|
+
print(" flash add-plug studio # Visual database editor")
|
|
73
|
+
print(" flash add-plug all # Everything (core + studio)")
|
|
74
|
+
print("")
|
|
75
|
+
print("🚀 Run 'flash --help' to get started!")
|
|
76
|
+
except Exception as err:
|
|
77
|
+
if os.path.exists(binary_path):
|
|
78
|
+
os.unlink(binary_path)
|
|
79
|
+
print(f"❌ Download failed: {err}", file=sys.stderr)
|
|
80
|
+
print(f"Please check: {download_url}", file=sys.stderr)
|
|
81
|
+
print("")
|
|
82
|
+
print("You can also download manually from:", file=sys.stderr)
|
|
83
|
+
print(f" https://github.com/{REPO}/releases/tag/v{VERSION}", file=sys.stderr)
|
|
84
|
+
sys.exit(1)
|
|
85
|
+
|
|
86
|
+
if __name__ == '__main__':
|
|
87
|
+
install()
|
|
88
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flashorm
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.1
|
|
4
4
|
Summary: A powerful, database-agnostic ORM with multi-database support and type-safe code generation
|
|
5
5
|
Home-page: https://github.com/Lumos-Labs-HQ/flash
|
|
6
6
|
Author: Rana718
|
|
@@ -74,7 +74,7 @@ This creates:
|
|
|
74
74
|
|
|
75
75
|
```
|
|
76
76
|
your-project/
|
|
77
|
-
├── flash.
|
|
77
|
+
├── flash.toml
|
|
78
78
|
├── .env
|
|
79
79
|
└── db/
|
|
80
80
|
├── schema/
|
|
@@ -233,7 +233,7 @@ flash studio
|
|
|
233
233
|
flash studio --port 3000
|
|
234
234
|
|
|
235
235
|
# Connect to any database directly
|
|
236
|
-
flash studio
|
|
236
|
+
flash studio "postgresql://user:pass@localhost:5432/mydb"
|
|
237
237
|
|
|
238
238
|
# Launch without opening browser
|
|
239
239
|
flash studio --browser=false
|
|
@@ -347,27 +347,22 @@ flash <command> --help
|
|
|
347
347
|
|
|
348
348
|
## ⚙️ Configuration
|
|
349
349
|
|
|
350
|
-
**flash.
|
|
350
|
+
**flash.toml**
|
|
351
351
|
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
"enabled": true,
|
|
367
|
-
"async": false
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
352
|
+
```toml
|
|
353
|
+
version = "2"
|
|
354
|
+
schema_path = "db/schema/schema.sql"
|
|
355
|
+
queries = "db/queries/"
|
|
356
|
+
migrations_path = "db/migrations"
|
|
357
|
+
export_path = "db/export"
|
|
358
|
+
|
|
359
|
+
[database]
|
|
360
|
+
provider = "postgresql"
|
|
361
|
+
url_env = "DATABASE_URL"
|
|
362
|
+
|
|
363
|
+
[gen.python]
|
|
364
|
+
enabled = true
|
|
365
|
+
async = false
|
|
371
366
|
```
|
|
372
367
|
|
|
373
368
|
**Python Generation Options:**
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["setuptools>=45", "wheel"]
|
|
3
|
-
build-backend = "setuptools.build_meta"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "flashorm"
|
|
7
|
-
version = "2.4.
|
|
8
|
-
description = "A powerful, database-agnostic ORM with multi-database support and type-safe code generation"
|
|
9
|
-
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.7"
|
|
11
|
-
license = "MIT"
|
|
12
|
-
authors = [{name = "Rana718"}]
|
|
13
|
-
keywords = ["orm", "database", "migration", "postgresql", "mysql", "sqlite", "cli"]
|
|
14
|
-
classifiers = [
|
|
15
|
-
"Development Status :: 4 - Beta",
|
|
16
|
-
"Intended Audience :: Developers",
|
|
17
|
-
"Programming Language :: Python :: 3",
|
|
18
|
-
"Programming Language :: Python :: 3.7",
|
|
19
|
-
"Programming Language :: Python :: 3.8",
|
|
20
|
-
"Programming Language :: Python :: 3.9",
|
|
21
|
-
"Programming Language :: Python :: 3.10",
|
|
22
|
-
"Programming Language :: Python :: 3.11",
|
|
23
|
-
]
|
|
24
|
-
|
|
25
|
-
[project.urls]
|
|
26
|
-
Homepage = "https://github.com/Lumos-Labs-HQ/flash"
|
|
27
|
-
Repository = "https://github.com/Lumos-Labs-HQ/flash"
|
|
28
|
-
Issues = "https://github.com/Lumos-Labs-HQ/flash/issues"
|
|
29
|
-
|
|
30
|
-
[project.scripts]
|
|
31
|
-
flash = "flashorm.cli:main"
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=45", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "flashorm"
|
|
7
|
+
version = "2.4.1"
|
|
8
|
+
description = "A powerful, database-agnostic ORM with multi-database support and type-safe code generation"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.7"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
authors = [{name = "Rana718"}]
|
|
13
|
+
keywords = ["orm", "database", "migration", "postgresql", "mysql", "sqlite", "cli"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 4 - Beta",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Programming Language :: Python :: 3.7",
|
|
19
|
+
"Programming Language :: Python :: 3.8",
|
|
20
|
+
"Programming Language :: Python :: 3.9",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[project.urls]
|
|
26
|
+
Homepage = "https://github.com/Lumos-Labs-HQ/flash"
|
|
27
|
+
Repository = "https://github.com/Lumos-Labs-HQ/flash"
|
|
28
|
+
Issues = "https://github.com/Lumos-Labs-HQ/flash/issues"
|
|
29
|
+
|
|
30
|
+
[project.scripts]
|
|
31
|
+
flash = "flashorm.cli:main"
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
from setuptools import setup, find_packages
|
|
2
|
-
from setuptools.command.install import install
|
|
3
|
-
import subprocess
|
|
4
|
-
import sys
|
|
5
|
-
import os
|
|
6
|
-
|
|
7
|
-
VERSION = '2.4.
|
|
8
|
-
|
|
9
|
-
class PostInstallCommand(install):
|
|
10
|
-
def run(self):
|
|
11
|
-
install.run(self)
|
|
12
|
-
install_script = os.path.join(self.install_lib, 'flashorm', 'install.py')
|
|
13
|
-
if os.path.exists(install_script):
|
|
14
|
-
subprocess.check_call([sys.executable, install_script])
|
|
15
|
-
|
|
16
|
-
def read_readme():
|
|
17
|
-
readme_path = os.path.join(os.path.dirname(__file__), 'README.md')
|
|
18
|
-
if os.path.exists(readme_path):
|
|
19
|
-
with open(readme_path, 'r', encoding='utf-8') as f:
|
|
20
|
-
return f.read()
|
|
21
|
-
return 'A powerful, database-agnostic ORM with multi-database support and type-safe code generation'
|
|
22
|
-
|
|
23
|
-
setup(
|
|
24
|
-
name='flashorm',
|
|
25
|
-
version=VERSION,
|
|
26
|
-
description='A powerful, database-agnostic ORM with multi-database support and type-safe code generation',
|
|
27
|
-
long_description=read_readme(),
|
|
28
|
-
long_description_content_type='text/markdown',
|
|
29
|
-
author='Rana718',
|
|
30
|
-
author_email='',
|
|
31
|
-
url='https://github.com/Lumos-Labs-HQ/flash',
|
|
32
|
-
packages=find_packages(),
|
|
33
|
-
cmdclass={'install': PostInstallCommand},
|
|
34
|
-
entry_points={
|
|
35
|
-
'console_scripts': [
|
|
36
|
-
'flash=flashorm.cli:main',
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
classifiers=[
|
|
40
|
-
'Development Status :: 4 - Beta',
|
|
41
|
-
'Intended Audience :: Developers',
|
|
42
|
-
'Programming Language :: Python :: 3',
|
|
43
|
-
'Programming Language :: Python :: 3.7',
|
|
44
|
-
'Programming Language :: Python :: 3.8',
|
|
45
|
-
'Programming Language :: Python :: 3.9',
|
|
46
|
-
'Programming Language :: Python :: 3.10',
|
|
47
|
-
'Programming Language :: Python :: 3.11',
|
|
48
|
-
],
|
|
49
|
-
python_requires='>=3.7',
|
|
50
|
-
keywords='orm database migration postgresql mysql sqlite cli',
|
|
51
|
-
project_urls={
|
|
52
|
-
'Bug Reports': 'https://github.com/Lumos-Labs-HQ/flash/issues',
|
|
53
|
-
'Source': 'https://github.com/Lumos-Labs-HQ/flash',
|
|
54
|
-
},
|
|
55
|
-
)
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
from setuptools.command.install import install
|
|
3
|
+
import subprocess
|
|
4
|
+
import sys
|
|
5
|
+
import os
|
|
6
|
+
|
|
7
|
+
VERSION = '2.4.1'
|
|
8
|
+
|
|
9
|
+
class PostInstallCommand(install):
|
|
10
|
+
def run(self):
|
|
11
|
+
install.run(self)
|
|
12
|
+
install_script = os.path.join(self.install_lib, 'flashorm', 'install.py')
|
|
13
|
+
if os.path.exists(install_script):
|
|
14
|
+
subprocess.check_call([sys.executable, install_script])
|
|
15
|
+
|
|
16
|
+
def read_readme():
|
|
17
|
+
readme_path = os.path.join(os.path.dirname(__file__), 'README.md')
|
|
18
|
+
if os.path.exists(readme_path):
|
|
19
|
+
with open(readme_path, 'r', encoding='utf-8') as f:
|
|
20
|
+
return f.read()
|
|
21
|
+
return 'A powerful, database-agnostic ORM with multi-database support and type-safe code generation'
|
|
22
|
+
|
|
23
|
+
setup(
|
|
24
|
+
name='flashorm',
|
|
25
|
+
version=VERSION,
|
|
26
|
+
description='A powerful, database-agnostic ORM with multi-database support and type-safe code generation',
|
|
27
|
+
long_description=read_readme(),
|
|
28
|
+
long_description_content_type='text/markdown',
|
|
29
|
+
author='Rana718',
|
|
30
|
+
author_email='',
|
|
31
|
+
url='https://github.com/Lumos-Labs-HQ/flash',
|
|
32
|
+
packages=find_packages(),
|
|
33
|
+
cmdclass={'install': PostInstallCommand},
|
|
34
|
+
entry_points={
|
|
35
|
+
'console_scripts': [
|
|
36
|
+
'flash=flashorm.cli:main',
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
classifiers=[
|
|
40
|
+
'Development Status :: 4 - Beta',
|
|
41
|
+
'Intended Audience :: Developers',
|
|
42
|
+
'Programming Language :: Python :: 3',
|
|
43
|
+
'Programming Language :: Python :: 3.7',
|
|
44
|
+
'Programming Language :: Python :: 3.8',
|
|
45
|
+
'Programming Language :: Python :: 3.9',
|
|
46
|
+
'Programming Language :: Python :: 3.10',
|
|
47
|
+
'Programming Language :: Python :: 3.11',
|
|
48
|
+
],
|
|
49
|
+
python_requires='>=3.7',
|
|
50
|
+
keywords='orm database migration postgresql mysql sqlite cli',
|
|
51
|
+
project_urls={
|
|
52
|
+
'Bug Reports': 'https://github.com/Lumos-Labs-HQ/flash/issues',
|
|
53
|
+
'Source': 'https://github.com/Lumos-Labs-HQ/flash',
|
|
54
|
+
},
|
|
55
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|