onyxdb 0.1.0__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.
onyxdb-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.4
2
+ Name: onyxdb
3
+ Version: 0.1.0
4
+ Summary: The Multi-Table Omni-Channel Database built on B+ Trees.
5
+ Author: Bharath
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.6
10
+ Requires-Dist: requests
11
+ Dynamic: author
12
+ Dynamic: classifier
13
+ Dynamic: requires-dist
14
+ Dynamic: requires-python
15
+ Dynamic: summary
@@ -0,0 +1 @@
1
+ __version__ = '0.1.0'
@@ -0,0 +1,47 @@
1
+ import os
2
+ import sys
3
+ import subprocess
4
+ import requests
5
+
6
+ JAR_NAME = 'onyxdb-api-0.1.0-SNAPSHOT.jar'
7
+ JAR_PATH = os.path.join(os.path.dirname(__file__), JAR_NAME)
8
+ DOWNLOAD_URL = f"https://github.com/Bharath80988/OnyxDB/releases/download/v0.1.0/{JAR_NAME}"
9
+
10
+ def download_jar():
11
+ print(f"Downloading OnyxDB engine from {DOWNLOAD_URL}...")
12
+ try:
13
+ response = requests.get(DOWNLOAD_URL, stream=True)
14
+ response.raise_for_status()
15
+ with open(JAR_PATH, 'wb') as f:
16
+ for chunk in response.iter_content(chunk_size=8192):
17
+ f.write(chunk)
18
+ except Exception as e:
19
+ print("Failed to download OnyxDB jar. Make sure the GitHub release exists!")
20
+ print(e)
21
+ sys.exit(1)
22
+
23
+ def check_java():
24
+ try:
25
+ subprocess.run(['java', '-version'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, check=True)
26
+ return True
27
+ except (subprocess.CalledProcessError, FileNotFoundError):
28
+ return False
29
+
30
+ def main():
31
+ if not check_java():
32
+ print("Java 21+ is not installed or not in PATH! Please install Java to run OnyxDB.")
33
+ sys.exit(1)
34
+
35
+ if not os.path.exists(JAR_PATH):
36
+ print("First time setup: downloading required Java binaries...")
37
+ download_jar()
38
+ print("Download complete!")
39
+
40
+ print("Starting OnyxDB...")
41
+ try:
42
+ subprocess.run(['java', '-jar', JAR_PATH])
43
+ except KeyboardInterrupt:
44
+ print("OnyxDB shut down.")
45
+
46
+ if __name__ == '__main__':
47
+ main()
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.4
2
+ Name: onyxdb
3
+ Version: 0.1.0
4
+ Summary: The Multi-Table Omni-Channel Database built on B+ Trees.
5
+ Author: Bharath
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.6
10
+ Requires-Dist: requests
11
+ Dynamic: author
12
+ Dynamic: classifier
13
+ Dynamic: requires-dist
14
+ Dynamic: requires-python
15
+ Dynamic: summary
@@ -0,0 +1,9 @@
1
+ setup.py
2
+ onyxdb/__init__.py
3
+ onyxdb/cli.py
4
+ onyxdb.egg-info/PKG-INFO
5
+ onyxdb.egg-info/SOURCES.txt
6
+ onyxdb.egg-info/dependency_links.txt
7
+ onyxdb.egg-info/entry_points.txt
8
+ onyxdb.egg-info/requires.txt
9
+ onyxdb.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ onyxdb = onyxdb.cli:main
@@ -0,0 +1 @@
1
+ requests
@@ -0,0 +1 @@
1
+ onyxdb
onyxdb-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
onyxdb-0.1.0/setup.py ADDED
@@ -0,0 +1,23 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name='onyxdb',
5
+ version='0.1.0',
6
+ description='The Multi-Table Omni-Channel Database built on B+ Trees.',
7
+ author='Bharath',
8
+ packages=find_packages(),
9
+ entry_points={
10
+ 'console_scripts': [
11
+ 'onyxdb=onyxdb.cli:main',
12
+ ],
13
+ },
14
+ install_requires=[
15
+ 'requests'
16
+ ],
17
+ classifiers=[
18
+ 'Programming Language :: Python :: 3',
19
+ 'License :: OSI Approved :: MIT License',
20
+ 'Operating System :: OS Independent',
21
+ ],
22
+ python_requires='>=3.6',
23
+ )