flashorm 2.3.1b0.dev0__py3-none-any.whl → 2.4.1b0.dev0__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.
flashorm/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
- """Flash ORM - A powerful, database-agnostic ORM"""
2
-
3
- __version__ = "2.3.1-beta-dev"
1
+ """Flash ORM - A powerful, database-agnostic ORM"""
2
+
3
+ __version__ = "2.4.1-beta-dev"
flashorm/cli.py CHANGED
@@ -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()
flashorm/install.py CHANGED
@@ -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.3.1b0.dev0
3
+ Version: 2.4.1b0.dev0
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
@@ -0,0 +1,10 @@
1
+ flashorm/__init__.py,sha256=cgT80MfdIQK6yHETYEbo7mdvRg4gAqM6Brv_kPWDxAw,87
2
+ flashorm/cli.py,sha256=mXHMK8-WmCLq4SeVR3timlXIOa9hua5Wfvb6SOMp9aw,712
3
+ flashorm/install.py,sha256=vCdW_GE9UGH6wGqj5BDNbt7kMCX030XHrPwT6gtK8kU,3492
4
+ flashorm/bin/flash,sha256=XMdUUfayAd42ygWPg0JCCHlXAgaFXrKy96Ue5h9Hfwg,19976432
5
+ flashorm-2.4.1b0.dev0.dist-info/licenses/LICENSE,sha256=5MpyXI-4bqoG6CCmqd1KOue02l1tw1BcNTKosocno18,887
6
+ flashorm-2.4.1b0.dev0.dist-info/METADATA,sha256=eFLfFhb-O5dw6whLsfnagVOFh9MT8HIwgD6JbB46WB8,13380
7
+ flashorm-2.4.1b0.dev0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
8
+ flashorm-2.4.1b0.dev0.dist-info/entry_points.txt,sha256=aW73H55ZdUNWWsGdaUVdvyr6jpHm--OnymuQVCLidk8,44
9
+ flashorm-2.4.1b0.dev0.dist-info/top_level.txt,sha256=9QlSOakfvwWpK6hLB3IHHn7YbRGst8WzcftJHN-7XLM,9
10
+ flashorm-2.4.1b0.dev0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.10.2)
2
+ Generator: setuptools (82.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -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,10 +0,0 @@
1
- flashorm/__init__.py,sha256=h2lxD0pa8JjVHBmDjj5q-RrHEARhSujXWtWSm1ZG0fE,84
2
- flashorm/cli.py,sha256=0SRTAKLkZlXeIMj3IAoVwE9Jx47K5b5H0L5FFIn7eaU,688
3
- flashorm/install.py,sha256=XB8RLWxA3KMdkANxkpSomaYnQQF1F-UI6t6NeG_wk9w,3404
4
- flashorm/bin/flash,sha256=XMdUUfayAd42ygWPg0JCCHlXAgaFXrKy96Ue5h9Hfwg,19976432
5
- flashorm-2.3.1b0.dev0.dist-info/licenses/LICENSE,sha256=c7Daud604RtKGuqYfjC42PMF7ADCxC9QHO0FdN1USOQ,868
6
- flashorm-2.3.1b0.dev0.dist-info/METADATA,sha256=gREGJR94F27LksfUm-GTxjBfbXqXUs74rOBAwlqVPIg,13380
7
- flashorm-2.3.1b0.dev0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
8
- flashorm-2.3.1b0.dev0.dist-info/entry_points.txt,sha256=aW73H55ZdUNWWsGdaUVdvyr6jpHm--OnymuQVCLidk8,44
9
- flashorm-2.3.1b0.dev0.dist-info/top_level.txt,sha256=9QlSOakfvwWpK6hLB3IHHn7YbRGst8WzcftJHN-7XLM,9
10
- flashorm-2.3.1b0.dev0.dist-info/RECORD,,