ApiLogicServer 15.2.3__py3-none-any.whl → 15.2.10__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.
- api_logic_server_cli/api_logic_server.py +3 -1
- api_logic_server_cli/prototypes/base/.github/.copilot-instructions.md +114 -52
- api_logic_server_cli/prototypes/base/docs/training/testing.md +95 -9
- api_logic_server_cli/prototypes/base/test/api_logic_server_behave/behave_logic_report.py +19 -6
- api_logic_server_cli/prototypes/basic_demo/.github/.copilot-instructions.md +744 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/logic/declare_logic.py +17 -1
- api_logic_server_cli/prototypes/basic_demo/readme.md +13 -5
- api_logic_server_cli/prototypes/basic_demo/tutor.md +1436 -0
- api_logic_server_cli/prototypes/manager/.github/.copilot-instructions.md +50 -23
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/.github/.copilot-instructions.md +3 -0
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/customizations/logic/declare_logic.py +17 -1
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/docs/training/testing.md +95 -9
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/iteration/logic/declare_logic.py +17 -1
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/logic/declare_logic.py +38 -1
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/features/order_processing.feature +59 -50
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/features/steps/order_processing_steps.py +395 -248
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/behave.log +66 -62
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Carbon_Neutral_Discount_A.log +51 -41
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Change_Order_Customer.log +29 -0
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Change_Product_in_Item.log +35 -0
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Delete_Item_Reduces_Order.log +39 -19
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Exceed_Credit_Limit_Rejec.log +36 -45
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Good_Order_Placed_via_B2B.log +50 -40
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Item_Quantity_Change.log +33 -0
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Multi-Item_Order_via_B2B_.log +67 -0
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Ship_Order_Excludes_from_.log +24 -14
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Transaction_Processing.log +26 -17
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/logs/scenario_logic_logs/Unship_Order_Includes_in_.log +24 -14
- api_logic_server_cli/prototypes/manager/samples/basic_demo_sample/test/api_logic_server_behave/reports/Behave Logic Report.md +361 -146
- api_logic_server_cli/prototypes/manager/system/ApiLogicServer-Internal-Dev/copilot-dev-context.md +270 -2
- {apilogicserver-15.2.3.dist-info → apilogicserver-15.2.10.dist-info}/METADATA +25 -16
- {apilogicserver-15.2.3.dist-info → apilogicserver-15.2.10.dist-info}/RECORD +36 -30
- {apilogicserver-15.2.3.dist-info → apilogicserver-15.2.10.dist-info}/WHEEL +0 -0
- {apilogicserver-15.2.3.dist-info → apilogicserver-15.2.10.dist-info}/entry_points.txt +0 -0
- {apilogicserver-15.2.3.dist-info → apilogicserver-15.2.10.dist-info}/licenses/LICENSE +0 -0
- {apilogicserver-15.2.3.dist-info → apilogicserver-15.2.10.dist-info}/top_level.txt +0 -0
|
@@ -32,7 +32,23 @@ def declare_logic():
|
|
|
32
32
|
from logic.logic_discovery.auto_discovery import discover_logic
|
|
33
33
|
discover_logic()
|
|
34
34
|
|
|
35
|
-
# Logic from GenAI
|
|
35
|
+
# Logic from GenAI
|
|
36
|
+
'''
|
|
37
|
+
You can enter logic in 2 ways:
|
|
38
|
+
1. Using your IDE and code completion (Rule.)
|
|
39
|
+
|
|
40
|
+
2. Use your AI Assistant and enter logic in Natural Language, e.g.:
|
|
41
|
+
Create Business Logic for Use Case = Check Credit:
|
|
42
|
+
1. The Customer's balance is less than the credit limit
|
|
43
|
+
2. The Customer's balance is the sum of the Order amount_total where date_shipped is null
|
|
44
|
+
3. The Order's amount_total is the sum of the Item amount
|
|
45
|
+
4. The Item amount is the quantity * unit_price
|
|
46
|
+
5. The Item unit_price is copied from the Product unit_price
|
|
47
|
+
|
|
48
|
+
Use case: App Integration
|
|
49
|
+
1. Send the Order to Kafka topic 'order_shipping' if the date_shipped is not None.
|
|
50
|
+
Also, using logic/logic_discovery is a Best Practice - see logic/readme_logic.md
|
|
51
|
+
'''
|
|
36
52
|
from database.models import Product, Order, Item, Customer, SysEmail
|
|
37
53
|
|
|
38
54
|
# Ensure the customer's balance is less than their credit limit
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Instant Microservices - with Logic and Security
|
|
3
3
|
notes: gold is proto (-- doc); alert for apostrophe
|
|
4
|
+
do_process_code_block_titles: True
|
|
4
5
|
version: 0.23 from docsite, for readme 7/11/2025
|
|
5
6
|
---
|
|
6
7
|
<style>
|
|
@@ -18,14 +19,19 @@ This illustrates basic [GenAI-Logic](https://www.genai-logic.com/product/key-fea
|
|
|
18
19
|
2. Adding declarative logic and security, and
|
|
19
20
|
3. Customizing your project using your IDE and Python<br><br>
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
**🤖 Two Ways to Explore:**
|
|
23
|
+
|
|
24
|
+
* **Self-Paced:** Follow the sections below at your own speed
|
|
25
|
+
* **AI-Guided Tour:** Say to Copilot: *"Guide me through basic_demo"*
|
|
26
|
+
|
|
27
|
+
**Bootstrap Copilot:**
|
|
28
|
+
```bash title='🤖 Bootstrap Copilot by pasting the following into the chat'
|
|
23
29
|
Please find and read `.github/.copilot-instructions.md`.
|
|
24
30
|
```
|
|
25
31
|
|
|
26
32
|
<br>
|
|
27
33
|
|
|
28
|
-
The entire process takes
|
|
34
|
+
The entire process takes 45 minutes; usage notes:
|
|
29
35
|
|
|
30
36
|
* Important: look for **readme files** in created projects
|
|
31
37
|
* You may find it more convenient to view this [in your Browser](https://apilogicserver.github.io/Docs/Sample-Basic-Tour)
|
|
@@ -152,9 +158,10 @@ And you are ready to Vibe:
|
|
|
152
158
|
* Instead of creating data mockups, you have a **running API server with real data**
|
|
153
159
|
* Instead of starting from scratch, you have a **running multi-page app**
|
|
154
160
|
* And, you'll have projects that are **architecturally correct:** shared logic, enforced in the server, available for both User Interfaces and services.
|
|
155
|
-
* Then, use you favorite Vibe tools with your running API
|
|
161
|
+
* Then, use you favorite Vibe tools with your running API:
|
|
156
162
|
|
|
157
163
|
|
|
164
|
+
**Customize using Natural Language:**
|
|
158
165
|
```txt title='Customize using Natural Language'
|
|
159
166
|
In the ui/react app, Update the Product list to provide users an option to see results in a list, or in cards.
|
|
160
167
|
```
|
|
@@ -294,7 +301,7 @@ Note that it's a `Multi-Table Transaction`, as indicated by the indentation. Th
|
|
|
294
301
|
|
|
295
302
|
**b. 40X More Concise**
|
|
296
303
|
|
|
297
|
-
The 5 spreadsheet-like rules represent the same logic as 200 lines of code, [shown here](https://github.com/
|
|
304
|
+
The 5 spreadsheet-like rules represent the same logic as 200 lines of code, [shown here](https://apilogicserver.github.io/Docs/https://github.com/ApiLogicServer/basic_demo/blob/main/logic/procedural/declarative-vs-procedural-comparison). That's a remarkable 40X decrease in the backend half of the system.
|
|
298
305
|
|
|
299
306
|
> 💡 No FrankenCode<br>Note the rules look like syntactically correct requirements. They are not turned into piles of unmanageable "frankencode" - see [models not frankencode](https://www.genai-logic.com/faqs#h.3fe4qv21qtbs).
|
|
300
307
|
|
|
@@ -358,6 +365,7 @@ Or, use the command line.
|
|
|
358
365
|
> Since the CLI does not pass an auth token,
|
|
359
366
|
you must first stop the server and disable security.
|
|
360
367
|
|
|
368
|
+
**MCP from the command line:**
|
|
361
369
|
```bash title='MCP from the command line'
|
|
362
370
|
python integration/mcp/mcp_client_executor.py mcp
|
|
363
371
|
```
|