featrixsphere 0.2.1231__tar.gz → 0.2.1232__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 (19) hide show
  1. {featrixsphere-0.2.1231/featrixsphere.egg-info → featrixsphere-0.2.1232}/PKG-INFO +1 -1
  2. featrixsphere-0.2.1232/VERSION +1 -0
  3. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere/__init__.py +1 -1
  4. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere/client.py +27 -0
  5. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232/featrixsphere.egg-info}/PKG-INFO +1 -1
  6. featrixsphere-0.2.1231/VERSION +0 -1
  7. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/MANIFEST.in +0 -0
  8. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/README.md +0 -0
  9. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere/cli.py +0 -0
  10. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere/test_client.py +0 -0
  11. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere.egg-info/SOURCES.txt +0 -0
  12. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere.egg-info/dependency_links.txt +0 -0
  13. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere.egg-info/entry_points.txt +0 -0
  14. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere.egg-info/not-zip-safe +0 -0
  15. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere.egg-info/requires.txt +0 -0
  16. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/featrixsphere.egg-info/top_level.txt +0 -0
  17. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/requirements.txt +0 -0
  18. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/setup.cfg +0 -0
  19. {featrixsphere-0.2.1231 → featrixsphere-0.2.1232}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: featrixsphere
3
- Version: 0.2.1231
3
+ Version: 0.2.1232
4
4
  Summary: Transform any CSV into a production-ready ML model in minutes, not months.
5
5
  Home-page: https://github.com/Featrix/sphere
6
6
  Author: Featrix
@@ -0,0 +1 @@
1
+ 0.2.1232
@@ -38,7 +38,7 @@ Example:
38
38
  ... labels=['Experiment A', 'Experiment B'])
39
39
  """
40
40
 
41
- __version__ = "0.2.1231"
41
+ __version__ = "0.2.1232"
42
42
  __author__ = "Featrix"
43
43
  __email__ = "support@featrix.com"
44
44
  __license__ = "MIT"
@@ -1727,6 +1727,33 @@ class FeatrixSphereClient:
1727
1727
  # File Upload
1728
1728
  # =========================================================================
1729
1729
 
1730
+ def upload_file(self, file_path: str) -> str:
1731
+ """
1732
+ Upload a file to the server without creating a session.
1733
+ Returns the filename that can be used in training requests.
1734
+
1735
+ Args:
1736
+ file_path: Path to the file to upload
1737
+
1738
+ Returns:
1739
+ Filename (relative path) that can be used in training requests
1740
+ """
1741
+ from pathlib import Path as PathLib
1742
+ file_path_obj = PathLib(file_path)
1743
+ if not file_path_obj.exists():
1744
+ raise FileNotFoundError(f"File not found: {file_path}")
1745
+
1746
+ with open(file_path_obj, 'rb') as f:
1747
+ files = {'file': (file_path_obj.name, f, 'text/csv' if file_path_obj.suffix == '.csv' else 'application/gzip')}
1748
+ response = self._make_request("POST", "/compute/upload_file", files=files)
1749
+
1750
+ response_data = response.json()
1751
+ filename = response_data.get('filename')
1752
+ if not filename:
1753
+ raise ValueError("Server did not return filename in upload response")
1754
+
1755
+ return filename
1756
+
1730
1757
  def upload_file_and_create_session(self, file_path: Path, session_name_prefix: str = None, name: str = None, webhooks: Dict[str, str] = None) -> SessionInfo:
1731
1758
  """
1732
1759
  Upload a CSV, Parquet, JSON, or JSONL file and create a new session.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: featrixsphere
3
- Version: 0.2.1231
3
+ Version: 0.2.1232
4
4
  Summary: Transform any CSV into a production-ready ML model in minutes, not months.
5
5
  Home-page: https://github.com/Featrix/sphere
6
6
  Author: Featrix
@@ -1 +0,0 @@
1
- 0.2.1231