aio-sf 0.1.0b5__py3-none-any.whl → 0.1.0b6__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.
aio_sf/__init__.py CHANGED
@@ -14,9 +14,8 @@ from .api.auth import ( # noqa: F401
14
14
  SfdxCliAuth,
15
15
  )
16
16
 
17
- # Core package only exports client functionality
18
- # Users import exporter functions directly: from aio_sf.exporter import bulk_query
19
-
17
+ # Core package exports client functionality
18
+ # Exporter functionality is included by default, but gracefully handles missing deps
20
19
  __all__ = [
21
20
  "SalesforceClient",
22
21
  "SalesforceAuthError",
@@ -26,3 +25,37 @@ __all__ = [
26
25
  "StaticTokenAuth",
27
26
  "SfdxCliAuth",
28
27
  ]
28
+
29
+ # Try to import exporter functionality if dependencies are available
30
+ try:
31
+ from .exporter import ( # noqa: F401
32
+ bulk_query,
33
+ get_bulk_fields,
34
+ resume_from_locator,
35
+ write_records_to_csv,
36
+ QueryResult,
37
+ batch_records_async,
38
+ ParquetWriter,
39
+ create_schema_from_metadata,
40
+ write_query_to_parquet,
41
+ salesforce_to_arrow_type,
42
+ )
43
+
44
+ __all__.extend(
45
+ [
46
+ "bulk_query",
47
+ "get_bulk_fields",
48
+ "resume_from_locator",
49
+ "write_records_to_csv",
50
+ "QueryResult",
51
+ "batch_records_async",
52
+ "ParquetWriter",
53
+ "create_schema_from_metadata",
54
+ "write_query_to_parquet",
55
+ "salesforce_to_arrow_type",
56
+ ]
57
+ )
58
+
59
+ except ImportError:
60
+ # Exporter dependencies not available - this is fine for core-only installs
61
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aio-sf
3
- Version: 0.1.0b5
3
+ Version: 0.1.0b6
4
4
  Summary: Async Salesforce library for Python
5
5
  Project-URL: Homepage, https://github.com/callawaycloud/aio-salesforce
6
6
  Project-URL: Repository, https://github.com/callawaycloud/aio-salesforce
@@ -35,13 +35,16 @@ Classifier: Programming Language :: Python :: 3
35
35
  Classifier: Programming Language :: Python :: 3.11
36
36
  Classifier: Programming Language :: Python :: 3.12
37
37
  Requires-Python: >=3.11
38
+ Requires-Dist: boto3>=1.34.0
38
39
  Requires-Dist: httpx>=0.25.0
40
+ Requires-Dist: pandas>=2.0.0
41
+ Requires-Dist: pyarrow>=10.0.0
39
42
  Requires-Dist: pydantic>=2.0.0
40
43
  Requires-Dist: python-dotenv>=1.0.0
41
- Provides-Extra: all
42
- Requires-Dist: boto3>=1.34.0; extra == 'all'
43
- Requires-Dist: pandas>=2.0.0; extra == 'all'
44
- Requires-Dist: pyarrow>=10.0.0; extra == 'all'
44
+ Provides-Extra: core
45
+ Requires-Dist: httpx>=0.25.0; extra == 'core'
46
+ Requires-Dist: pydantic>=2.0.0; extra == 'core'
47
+ Requires-Dist: python-dotenv>=1.0.0; extra == 'core'
45
48
  Provides-Extra: dev
46
49
  Requires-Dist: black>=23.0.0; extra == 'dev'
47
50
  Requires-Dist: mypy>=1.5.0; extra == 'dev'
@@ -88,16 +91,16 @@ An async Salesforce library for Python.
88
91
 
89
92
  ## Installation
90
93
 
91
- ### Core (Connection Only)
94
+ ### Full Package (Default - Includes Everything)
92
95
  ```bash
93
96
  uv add aio-sf
94
97
  # or: pip install aio-sf
95
98
  ```
96
99
 
97
- ### With Export Capabilities
100
+ ### Core Only (Minimal Dependencies)
98
101
  ```bash
99
- uv add "aio-sf[exporter]"
100
- # or: pip install "aio-sf[exporter]"
102
+ uv add "aio-sf[core]"
103
+ # or: pip install "aio-sf[core]"
101
104
  ```
102
105
 
103
106
  ## Quick Start
@@ -157,7 +160,11 @@ The Exporter library contains a streamlined and "opinionated" way to export data
157
160
 
158
161
  ### 3. Export to Parquet
159
162
  ```python
160
- from aio_sf.exporter import bulk_query, write_query_to_parquet
163
+ # With full installation (default), you can import directly from aio_sf
164
+ from aio_sf import SalesforceClient, ClientCredentialsAuth, bulk_query, write_query_to_parquet
165
+
166
+ # Or import from the exporter module (both work)
167
+ # from aio_sf.exporter import bulk_query, write_query_to_parquet
161
168
 
162
169
  async def main():
163
170
  # ... authentication code from above ...
@@ -1,4 +1,4 @@
1
- aio_sf/__init__.py,sha256=p1WqfaXQ0ldxDkLCK2hc07rMeq9ywenUYUBQc2SfQOE,707
1
+ aio_sf/__init__.py,sha256=jWZkLTyHyOyHDJBfZORC2KcdtTBbI9pyVoSRxMbcJ1U,1603
2
2
  aio_sf/api/__init__.py,sha256=gLa2cbEvXPMLdcZVV7vhUQ-I9yJJitSaRN9mLn3Qhas,2299
3
3
  aio_sf/api/client.py,sha256=2epNf31HN1WpAVRSV0MtYthFkXlYiwwgMJ1Qms8-LKc,9750
4
4
  aio_sf/api/types.py,sha256=hpdCfzOzq32ESStQAewJc4j4NXQluENKjJEhUeGEI1Y,7738
@@ -23,7 +23,7 @@ aio_sf/api/query/types.py,sha256=Wfk75kJpNDCGpTHonCbzjWvayy8guA3eyZp3hE7nBt0,845
23
23
  aio_sf/exporter/__init__.py,sha256=waTegrvw_SvJzREAWD4twSDldSL-HfvhLTLLT1o765o,771
24
24
  aio_sf/exporter/bulk_export.py,sha256=JmlVwDcXqvBYYY9o7DjdfcJ9jIKiVAPrcnk5Bz4sLoU,13159
25
25
  aio_sf/exporter/parquet_writer.py,sha256=EysoeFI8TptcAfhor8FeJsJO0eNAuw9i250JdlHPoug,13078
26
- aio_sf-0.1.0b5.dist-info/METADATA,sha256=GL__z4LmVTaxTO_soOtE0JwR95tl2hxyDzMAMj7MkNk,6439
27
- aio_sf-0.1.0b5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- aio_sf-0.1.0b5.dist-info/licenses/LICENSE,sha256=gu0Cbpiqs-vX7YgJJhGI1jH1mHup3dZMrZc-gmpEG60,1071
29
- aio_sf-0.1.0b5.dist-info/RECORD,,
26
+ aio_sf-0.1.0b6.dist-info/METADATA,sha256=M3zr4b7K05jcTm4QRdnQqH6mErFVRMKg7EJ_mXrpZRE,6780
27
+ aio_sf-0.1.0b6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ aio_sf-0.1.0b6.dist-info/licenses/LICENSE,sha256=gu0Cbpiqs-vX7YgJJhGI1jH1mHup3dZMrZc-gmpEG60,1071
29
+ aio_sf-0.1.0b6.dist-info/RECORD,,