Name | echostream-function-context JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | Micro library for typing function contexts in EchoStream functions |
upload_time | 2024-07-18 00:08:13 |
maintainer | None |
docs_url | None |
author | EchoStream |
requires_python | >=3.12 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# echostream-function-context
Micro library for typing function contexts in EchoStream functions
> Note: Version >= 0.1.0 requires Python 3.12
## Installation
### For production
```shell
pip install echostream-function-context
```
Production install has no requirements.
### For development
```shell
pip install echostream-function-context[dev]
```
Development install will also install `boto3-stubs[dynamodb]`.
## Usage
```python
def processor(*, context, message, source, **kwargs):
from typing import TYPE_CHECKING, cast
if TYPE_CHECKING:
from echostream_function_context import Context
else:
Context = object
context = cast(Context, context)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "echostream-function-context",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": null,
"author": "EchoStream",
"author_email": "pypi@echo.stream",
"download_url": "https://files.pythonhosted.org/packages/7e/36/8bf3cf15419f259da01c9b06da778c922e3eb5fee2f0c01f2ac5641957b0/echostream_function_context-0.1.0.tar.gz",
"platform": null,
"description": "# echostream-function-context\n\nMicro library for typing function contexts in EchoStream functions\n\n> Note: Version >= 0.1.0 requires Python 3.12\n \n## Installation\n\n### For production\n```shell\npip install echostream-function-context\n```\n\nProduction install has no requirements.\n\n### For development\n```shell\npip install echostream-function-context[dev]\n```\n\nDevelopment install will also install `boto3-stubs[dynamodb]`.\n\n## Usage\n```python\ndef processor(*, context, message, source, **kwargs):\n\n from typing import TYPE_CHECKING, cast\n\n if TYPE_CHECKING:\n from echostream_function_context import Context\n else:\n Context = object\n\n context = cast(Context, context)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Micro library for typing function contexts in EchoStream functions",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "75eb9b82d5686ce9c2af5bbcc3e302e5b94b5229054daf23b1efe4fb7f88a80c",
"md5": "a931df71e84abe6c2ef524ac8a603527",
"sha256": "090aee41dbd93182522d5f98e8ba13b06021e7bf70a2e022de9435b443a8a3cd"
},
"downloads": -1,
"filename": "echostream_function_context-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a931df71e84abe6c2ef524ac8a603527",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 6317,
"upload_time": "2024-07-18T00:08:12",
"upload_time_iso_8601": "2024-07-18T00:08:12.229037Z",
"url": "https://files.pythonhosted.org/packages/75/eb/9b82d5686ce9c2af5bbcc3e302e5b94b5229054daf23b1efe4fb7f88a80c/echostream_function_context-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7e368bf3cf15419f259da01c9b06da778c922e3eb5fee2f0c01f2ac5641957b0",
"md5": "1436d1c845cae0f6c5e163b6a2187bd6",
"sha256": "fd714da336bd6e7e2b58b6fb247f38cdbe4de8939ae2e45bc4c4038cc12ffce6"
},
"downloads": -1,
"filename": "echostream_function_context-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "1436d1c845cae0f6c5e163b6a2187bd6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 5836,
"upload_time": "2024-07-18T00:08:13",
"upload_time_iso_8601": "2024-07-18T00:08:13.618543Z",
"url": "https://files.pythonhosted.org/packages/7e/36/8bf3cf15419f259da01c9b06da778c922e3eb5fee2f0c01f2ac5641957b0/echostream_function_context-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-18 00:08:13",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "echostream-function-context"
}