neops_worker_sdk 0.1.0__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.
- neops_worker_sdk-0.1.0/PKG-INFO +37 -0
- neops_worker_sdk-0.1.0/README.md +26 -0
- neops_worker_sdk-0.1.0/neops_worker_sdk/__init__.py +0 -0
- neops_worker_sdk-0.1.0/neops_worker_sdk/cli/__init__.py +0 -0
- neops_worker_sdk-0.1.0/neops_worker_sdk/cli/neops_worker.py +2 -0
- neops_worker_sdk-0.1.0/neops_worker_sdk/function_block/__init__.py +0 -0
- neops_worker_sdk-0.1.0/neops_worker_sdk/function_block/function_block.py +3 -0
- neops_worker_sdk-0.1.0/neops_worker_sdk/registry/__init__.py +0 -0
- neops_worker_sdk-0.1.0/pyproject.toml +36 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: neops_worker_sdk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary:
|
|
5
|
+
Author: zebbra AG
|
|
6
|
+
Requires-Python: >=3.12,<4.0
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
9
|
+
Requires-Dist: neops_graphql (>=1.7.31,<2.0.0)
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# Neops Task Runner for Python
|
|
13
|
+
|
|
14
|
+
This repository provides the base infrastructure and SDK to create workers for your own function blocks.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Run nepos Worker
|
|
18
|
+
|
|
19
|
+
To run th neops worker, simply execute
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
poetry run neops_worker
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Code Style
|
|
26
|
+
|
|
27
|
+
We enforce typing for all python files. You can check if typing is correct by running the following command
|
|
28
|
+
|
|
29
|
+
```shell
|
|
30
|
+
poetry run mypy ./neops_worker_sdk examples/
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Formatting is enforced by black
|
|
34
|
+
|
|
35
|
+
```shell
|
|
36
|
+
poetry run black ./neops_worker_sdk examples/
|
|
37
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Neops Task Runner for Python
|
|
2
|
+
|
|
3
|
+
This repository provides the base infrastructure and SDK to create workers for your own function blocks.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Run nepos Worker
|
|
7
|
+
|
|
8
|
+
To run th neops worker, simply execute
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
poetry run neops_worker
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Code Style
|
|
15
|
+
|
|
16
|
+
We enforce typing for all python files. You can check if typing is correct by running the following command
|
|
17
|
+
|
|
18
|
+
```shell
|
|
19
|
+
poetry run mypy ./neops_worker_sdk examples/
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Formatting is enforced by black
|
|
23
|
+
|
|
24
|
+
```shell
|
|
25
|
+
poetry run black ./neops_worker_sdk examples/
|
|
26
|
+
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "neops_worker_sdk"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = ""
|
|
5
|
+
authors = ["zebbra AG"]
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
|
|
8
|
+
[tool.poetry.dependencies]
|
|
9
|
+
python = "^3.12"
|
|
10
|
+
neops_graphql = "^1.7.31"
|
|
11
|
+
|
|
12
|
+
[tool.poetry.dev-dependencies]
|
|
13
|
+
black = "*"
|
|
14
|
+
mypy = "*"
|
|
15
|
+
|
|
16
|
+
[tool.poetry.scripts]
|
|
17
|
+
neops_worker = 'neops_worker_sdk.cli.neops_worker:main'
|
|
18
|
+
|
|
19
|
+
[tool.black]
|
|
20
|
+
line-length = 120
|
|
21
|
+
|
|
22
|
+
[tool.mypy]
|
|
23
|
+
disallow_untyped_defs = true
|
|
24
|
+
check_untyped_defs = true
|
|
25
|
+
disallow_incomplete_defs = true
|
|
26
|
+
disallow_any_unimported = true
|
|
27
|
+
disallow_any_expr = true
|
|
28
|
+
disallow_any_decorated = true
|
|
29
|
+
disallow_any_explicit = true
|
|
30
|
+
disallow_any_generics = true
|
|
31
|
+
disallow_subclassing_any = true
|
|
32
|
+
disallow_untyped_calls = true
|
|
33
|
+
|
|
34
|
+
[build-system]
|
|
35
|
+
requires = ["poetry-core"]
|
|
36
|
+
build-backend = "poetry.core.masonry.api"
|