polyapi-python 0.0.29__tar.gz → 0.0.30__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.
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/PKG-INFO +1 -1
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/cli.py +7 -2
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/config.py +7 -1
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi_python.egg-info/PKG-INFO +1 -1
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/pyproject.toml +1 -1
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/LICENSE +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/README.md +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/__init__.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/__main__.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/api.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/constants.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/exceptions.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/function_cli.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/generate.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/py.typed +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/schema.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/typedefs.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/utils.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi/variables.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi_python.egg-info/SOURCES.txt +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi_python.egg-info/dependency_links.txt +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi_python.egg-info/requires.txt +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi_python.egg-info/top_level.txt +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/setup.cfg +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/tests/test_function_cli.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/tests/test_generate.py +0 -0
- {polyapi-python-0.0.29 → polyapi-python-0.0.30}/tests/test_utils.py +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import argparse
|
|
2
|
+
|
|
3
|
+
from .config import clear_config
|
|
3
4
|
from .generate import generate, clear
|
|
4
5
|
from .function_cli import function_add_or_update
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
CLI_COMMANDS = ["generate", "clear", "function", "help"]
|
|
8
|
+
CLI_COMMANDS = ["generate", "config", "clear", "function", "help"]
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
def execute_from_cli():
|
|
@@ -25,6 +26,10 @@ def execute_from_cli():
|
|
|
25
26
|
elif command == "generate":
|
|
26
27
|
print("Generating...")
|
|
27
28
|
generate()
|
|
29
|
+
elif command == "config":
|
|
30
|
+
print("Clearing old config...")
|
|
31
|
+
clear_config()
|
|
32
|
+
generate()
|
|
28
33
|
elif command == "clear":
|
|
29
34
|
print("Clearing the generated library...")
|
|
30
35
|
clear()
|
|
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.2", "wheel"]
|
|
|
3
3
|
|
|
4
4
|
[project]
|
|
5
5
|
name = "polyapi-python"
|
|
6
|
-
version = "0.0.
|
|
6
|
+
version = "0.0.30"
|
|
7
7
|
description = "The PolyAPI Python Client"
|
|
8
8
|
authors = [{ name = "Dan Fellin", email = "dan@polyapi.io" }]
|
|
9
9
|
dependencies = ["requests", "typing_extensions", "jsonschema-gentypes", "pydantic>=2.5.3", "stdlib_list"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{polyapi-python-0.0.29 → polyapi-python-0.0.30}/polyapi_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|