s3shift 0.1.0__tar.gz → 0.1.2__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.
@@ -1,10 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: s3shift
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A truly serverless Redshift on your own AWS account: Redshift SQL on DuckDB in a Lambda, over your S3 and RDS data, ≈ $0 when idle. redshift_connector API: from s3shift import redshift_connector.
5
5
  Author: Frank Zhang
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://github.com/cloudformer/s3shift
8
+ Project-URL: IdleFree, https://cloudformer.github.io/
8
9
  Project-URL: Repository, https://github.com/cloudformer/s3shift
9
10
  Project-URL: Deploy, https://github.com/cloudformer/s3shift#quick-start
10
11
  Project-URL: Compatibility, https://github.com/cloudformer/s3shift/blob/main/tests/compat/REPORT.md
@@ -18,12 +19,19 @@ Classifier: Programming Language :: Python :: 3
18
19
  Classifier: Topic :: Database
19
20
  Requires-Python: >=3.9
20
21
  Description-Content-Type: text/markdown
22
+ Provides-Extra: server
23
+ Requires-Dist: duckdb==2.0.0; extra == "server"
24
+ Requires-Dist: pymysql==1.1.1; extra == "server"
25
+ Requires-Dist: psycopg2-binary==2.9.10; extra == "server"
26
+ Requires-Dist: boto3; extra == "server"
21
27
 
22
28
  # s3shift
23
29
 
24
30
  **Python client for [s3shift](https://github.com/cloudformer/s3shift) — a truly serverless Redshift: Redshift
25
31
  SQL on DuckDB in a Lambda, over your own S3 and RDS data, ≈ $0 when idle.** The redshift_connector API,
26
- standard library only. Part of [Redefine AWS Serverless](https://github.com/topics/redefine-aws-serverless).
32
+ standard library only. Part of [IdleFree](https://cloudformer.github.io/).
33
+
34
+ ![s3shift architecture](https://raw.githubusercontent.com/cloudformer/s3shift/main/docs/architecture.svg)
27
35
 
28
36
  ```bash
29
37
  pip install s3shift
@@ -2,7 +2,9 @@
2
2
 
3
3
  **Python client for [s3shift](https://github.com/cloudformer/s3shift) — a truly serverless Redshift: Redshift
4
4
  SQL on DuckDB in a Lambda, over your own S3 and RDS data, ≈ $0 when idle.** The redshift_connector API,
5
- standard library only. Part of [Redefine AWS Serverless](https://github.com/topics/redefine-aws-serverless).
5
+ standard library only. Part of [IdleFree](https://cloudformer.github.io/).
6
+
7
+ ![s3shift architecture](https://raw.githubusercontent.com/cloudformer/s3shift/main/docs/architecture.svg)
6
8
 
7
9
  ```bash
8
10
  pip install s3shift
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "s3shift"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "A truly serverless Redshift on your own AWS account: Redshift SQL on DuckDB in a Lambda, over your S3 and RDS data, ≈ $0 when idle. redshift_connector API: from s3shift import redshift_connector."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -20,8 +20,12 @@ classifiers = [
20
20
  ]
21
21
  dependencies = [] # standard library only (pandas only for fetch_dataframe)
22
22
 
23
+ [project.optional-dependencies]
24
+ server = ["duckdb==2.0.0", "pymysql==1.1.1", "psycopg2-binary==2.9.10", "boto3"] # the Lambda's runtime (server/requirements.txt + boto3)
25
+
23
26
  [project.urls]
24
27
  Homepage = "https://github.com/cloudformer/s3shift"
28
+ IdleFree = "https://cloudformer.github.io/"
25
29
  Repository = "https://github.com/cloudformer/s3shift"
26
30
  Deploy = "https://github.com/cloudformer/s3shift#quick-start"
27
31
  Compatibility = "https://github.com/cloudformer/s3shift/blob/main/tests/compat/REPORT.md"
@@ -29,4 +33,7 @@ Changelog = "https://github.com/cloudformer/s3shift/blob/main/CHANGELOG.md"
29
33
  Issues = "https://github.com/cloudformer/s3shift/issues"
30
34
 
31
35
  [tool.setuptools]
32
- packages = ["s3shift"]
36
+ packages = ["s3shift", "s3shift.server"] # s3shift.server = the Lambda (zip root = this dir, handler lambda_function.lambda_handler)
37
+
38
+ [tool.setuptools.package-data]
39
+ "s3shift.server" = ["index.html", "requirements.txt"] # the console, the Layer's pins
@@ -6,4 +6,4 @@
6
6
  """
7
7
  from . import redshift_connector # noqa: F401
8
8
 
9
- __version__ = "0.1.0"
9
+ __version__ = "0.1.2"
@@ -0,0 +1,3 @@
1
+ """The Lambda behind the Function URL: lambda_function.lambda_handler serves the console (index.html) and the
2
+ HTTP API; engine.py runs Redshift SQL on DuckDB. Deployed from this package: handler lambda_function.lambda_handler
3
+ with this directory as the zip root (modules import each other flat); requirements.txt pins the Layer."""