vnai 0.0.5__py3-none-any.whl → 0.0.6__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.
vnai/__init__.py CHANGED
@@ -103,10 +103,7 @@ class VnstockInitializer:
103
103
  else:
104
104
  environment = "Other" # Non-interactive environment (e.g., script executed from an IDE)
105
105
  else:
106
- if 'google.colab' in sys.modules:
107
- environment = "Google Colab"
108
- else:
109
- environment = "Jupyter"
106
+ environment = "Jupyter"
110
107
  except (ImportError, AttributeError):
111
108
  # Fallback if IPython isn't installed or other checks fail
112
109
  if sys.stdout.isatty():
@@ -114,6 +111,22 @@ class VnstockInitializer:
114
111
  else:
115
112
  environment = "Other"
116
113
 
114
+ try:
115
+ if 'google.colab' in sys.modules:
116
+ hosting_service = "Google Colab"
117
+ elif 'CODESPACE_NAME' in os.environ:
118
+ hosting_service = "Github Codespace"
119
+ elif 'GITPOD_WORKSPACE_CLUSTER_HOST' in os.environ:
120
+ hosting_service = "Gitpod"
121
+ elif 'REPLIT_USER' in os.environ:
122
+ hosting_service = "Replit"
123
+ elif 'KAGGLE_CONTAINER_NAME' in os.environ:
124
+ hosting_service = "Kaggle"
125
+ elif '.hf.space' in os.environ['SPACE_HOST']:
126
+ hosting_service = "Hugging Face Spaces"
127
+ except:
128
+ hosting_service = "Local or Unknown"
129
+
117
130
  # System information
118
131
  os_info = platform.uname()
119
132
 
@@ -135,6 +148,7 @@ class VnstockInitializer:
135
148
  info = {
136
149
  "uuid": machine_id,
137
150
  "environment": environment,
151
+ "hosting_service": hosting_service,
138
152
  "python_version": platform.python_version(),
139
153
  "os_name": os_info.system,
140
154
  "os_version": os_info.version,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vnai
3
- Version: 0.0.5
3
+ Version: 0.0.6
4
4
  Author: Vnstock HQ
5
5
  Author-email: support@vnstock.site
6
6
  Classifier: Programming Language :: Python :: 3
@@ -0,0 +1,8 @@
1
+ raw/__init__.py,sha256=SShTBnlw4Lqo4PeJNtPr5-VjPaJqZsArFnugbZ0rg-I,14715
2
+ raw/analytics.py,sha256=KYGlbdqAkRcv8BLptz3REumyw90iwNc7ACvZ_idVacg,14534
3
+ raw/setup.py,sha256=FxCov16ZdUdEd6_WE-8msjFN2J9QeiidiU_FixaR9XU,204
4
+ vnai/__init__.py,sha256=72F-l8UJ5Egaez41BTN58SeDOxv7h78-PyYKKZK1T_U,15323
5
+ vnai-0.0.6.dist-info/METADATA,sha256=8C-WvG-xSnUAyEDEJHL2-r7z58G_g47jvnzlLmyhGao,576
6
+ vnai-0.0.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
+ vnai-0.0.6.dist-info/top_level.txt,sha256=ZLryI6oFu_mU1ls4sX_Sr5-MFWmEwlxu2Xe6EaEObI4,9
8
+ vnai-0.0.6.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- raw/__init__.py,sha256=SShTBnlw4Lqo4PeJNtPr5-VjPaJqZsArFnugbZ0rg-I,14715
2
- raw/analytics.py,sha256=KYGlbdqAkRcv8BLptz3REumyw90iwNc7ACvZ_idVacg,14534
3
- raw/setup.py,sha256=FxCov16ZdUdEd6_WE-8msjFN2J9QeiidiU_FixaR9XU,204
4
- vnai/__init__.py,sha256=SShTBnlw4Lqo4PeJNtPr5-VjPaJqZsArFnugbZ0rg-I,14715
5
- vnai-0.0.5.dist-info/METADATA,sha256=jIO-uLkSr6K4-ZU1b-UMejkGJQZaK9SXPV5o7e5MuW8,576
6
- vnai-0.0.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
- vnai-0.0.5.dist-info/top_level.txt,sha256=ZLryI6oFu_mU1ls4sX_Sr5-MFWmEwlxu2Xe6EaEObI4,9
8
- vnai-0.0.5.dist-info/RECORD,,
File without changes