pro-craft 0.1.2__tar.gz → 0.1.4__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.
Potentially problematic release.
This version of pro-craft might be problematic. Click here for more details.
- pro_craft-0.1.4/PKG-INFO +52 -0
- pro_craft-0.1.4/README.md +34 -0
- pro_craft-0.1.4/pyproject.toml +14 -0
- pro_craft-0.1.4/src/pro_craft/code_helper/coder.py +660 -0
- pro_craft-0.1.4/src/pro_craft/database.py +233 -0
- pro_craft-0.1.4/src/pro_craft/designer.py +115 -0
- pro_craft-0.1.4/src/pro_craft/evals.py +68 -0
- pro_craft-0.1.4/src/pro_craft/file_manager.py +118 -0
- pro_craft-0.1.4/src/pro_craft/prompt_helper.py +538 -0
- pro_craft-0.1.4/src/pro_craft/prompt_helper_async.py +566 -0
- pro_craft-0.1.4/src/pro_craft/server/__main__.py +154 -0
- pro_craft-0.1.4/src/pro_craft/server/models.py +6 -0
- pro_craft-0.1.4/src/pro_craft/server/router/recommended.py +283 -0
- pro_craft-0.1.4/src/pro_craft/utils.py +161 -0
- pro_craft-0.1.4/src/pro_craft.egg-info/PKG-INFO +52 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft.egg-info/SOURCES.txt +13 -12
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft.egg-info/requires.txt +3 -0
- pro_craft-0.1.4/tests/test22.py +146 -0
- pro_craft-0.1.4/tests/test_33.py +39 -0
- pro_craft-0.1.4/tests/test_coder.py +187 -0
- pro_craft-0.1.4/tests/test_designer.py +30 -0
- pro_craft-0.1.2/PKG-INFO +0 -14
- pro_craft-0.1.2/README.md +0 -0
- pro_craft-0.1.2/pyproject.toml +0 -14
- pro_craft-0.1.2/src/pro_craft/core.py +0 -1
- pro_craft-0.1.2/src/pro_craft/server/__init__.py +0 -0
- pro_craft-0.1.2/src/pro_craft/server/__main__.py +0 -160
- pro_craft-0.1.2/src/pro_craft/server/models/__init__.py +0 -0
- pro_craft-0.1.2/src/pro_craft/server/models/models.py +0 -48
- pro_craft-0.1.2/src/pro_craft/server/routers/__init__.py +0 -2
- pro_craft-0.1.2/src/pro_craft/server/routers/admin.py +0 -42
- pro_craft-0.1.2/src/pro_craft/server/routers/user.py +0 -24
- pro_craft-0.1.2/src/pro_craft/server/utils/__init__.py +0 -3
- pro_craft-0.1.2/src/pro_craft/server/utils/auth_backends.py +0 -15
- pro_craft-0.1.2/src/pro_craft/server/utils/database.py +0 -27
- pro_craft-0.1.2/src/pro_craft/server/utils/user_manager.py +0 -87
- pro_craft-0.1.2/src/pro_craft/utils.py +0 -1
- pro_craft-0.1.2/src/pro_craft.egg-info/PKG-INFO +0 -14
- pro_craft-0.1.2/tests/test_main.py +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/setup.cfg +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft/__init__.py +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft/log.py +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft/server/mcp/__init__.py +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft/server/mcp/content.py +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft/server/mcp/math.py +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft/server/mcp/resource.py +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft/server/mcp/weather.py +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft/server.py +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft.egg-info/dependency_links.txt +0 -0
- {pro_craft-0.1.2 → pro_craft-0.1.4}/src/pro_craft.egg-info/top_level.txt +0 -0
pro_craft-0.1.4/PKG-INFO
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pro-craft
|
|
3
|
+
Version: 0.1.4
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Requires-Python: >=3.12
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: anyio>=4.11.0
|
|
8
|
+
Requires-Dist: db-help>=0.2.2
|
|
9
|
+
Requires-Dist: fastapi>=0.119.0
|
|
10
|
+
Requires-Dist: llmada>=1.1.11
|
|
11
|
+
Requires-Dist: pytest>=8.4.2
|
|
12
|
+
Requires-Dist: pytest-asyncio>=1.2.0
|
|
13
|
+
Requires-Dist: pytest-tornasync>=0.6.0.post2
|
|
14
|
+
Requires-Dist: pyyaml>=6.0.3
|
|
15
|
+
Requires-Dist: toml>=0.10.2
|
|
16
|
+
Requires-Dist: utils-tool==0.1.3
|
|
17
|
+
Requires-Dist: uvicorn>=0.38.0
|
|
18
|
+
|
|
19
|
+
uv run mcp dev src/prompt_writing_assistant/mcp.py
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@mcp.tool()
|
|
27
|
+
async def my_tool(x: int, ctx: Context) -> str:
|
|
28
|
+
"""Tool that uses context capabilities.
|
|
29
|
+
|
|
30
|
+
The Context object provides the following capabilities:
|
|
31
|
+
|
|
32
|
+
ctx.request_id - Unique ID for the current request
|
|
33
|
+
ctx.client_id - Client ID if available
|
|
34
|
+
ctx.fastmcp - Access to the FastMCP server instance (see FastMCP Properties)
|
|
35
|
+
ctx.session - Access to the underlying session for advanced communication (see Session Properties and Methods)
|
|
36
|
+
ctx.request_context - Access to request-specific data and lifespan resources (see Request Context Properties)
|
|
37
|
+
await ctx.debug(message) - Send debug log message
|
|
38
|
+
await ctx.info(message) - Send info log message
|
|
39
|
+
await ctx.warning(message) - Send warning log message
|
|
40
|
+
await ctx.error(message) - Send error log message
|
|
41
|
+
await ctx.log(level, message, logger_name=None) - Send log with custom level
|
|
42
|
+
await ctx.report_progress(progress, total=None, message=None) - Report operation progress
|
|
43
|
+
await ctx.read_resource(uri) - Read a resource by URI
|
|
44
|
+
await ctx.elicit(message, schema) - Request additional information from user with validation
|
|
45
|
+
|
|
46
|
+
"""
|
|
47
|
+
# The context parameter can have any name as long as it's type-annotated
|
|
48
|
+
return ctx.client_id
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
uv run mcp dev src/prompt_writing_assistant/mcp.py
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
```python
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@mcp.tool()
|
|
9
|
+
async def my_tool(x: int, ctx: Context) -> str:
|
|
10
|
+
"""Tool that uses context capabilities.
|
|
11
|
+
|
|
12
|
+
The Context object provides the following capabilities:
|
|
13
|
+
|
|
14
|
+
ctx.request_id - Unique ID for the current request
|
|
15
|
+
ctx.client_id - Client ID if available
|
|
16
|
+
ctx.fastmcp - Access to the FastMCP server instance (see FastMCP Properties)
|
|
17
|
+
ctx.session - Access to the underlying session for advanced communication (see Session Properties and Methods)
|
|
18
|
+
ctx.request_context - Access to request-specific data and lifespan resources (see Request Context Properties)
|
|
19
|
+
await ctx.debug(message) - Send debug log message
|
|
20
|
+
await ctx.info(message) - Send info log message
|
|
21
|
+
await ctx.warning(message) - Send warning log message
|
|
22
|
+
await ctx.error(message) - Send error log message
|
|
23
|
+
await ctx.log(level, message, logger_name=None) - Send log with custom level
|
|
24
|
+
await ctx.report_progress(progress, total=None, message=None) - Report operation progress
|
|
25
|
+
await ctx.read_resource(uri) - Read a resource by URI
|
|
26
|
+
await ctx.elicit(message, schema) - Request additional information from user with validation
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
# The context parameter can have any name as long as it's type-annotated
|
|
30
|
+
return ctx.client_id
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pro-craft"
|
|
3
|
+
version = "0.1.4"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.12"
|
|
7
|
+
dependencies = [ "anyio>=4.11.0", "db-help>=0.2.2", "fastapi>=0.119.0", "llmada>=1.1.11", "pytest>=8.4.2", "pytest-asyncio>=1.2.0", "pytest-tornasync>=0.6.0.post2", "pyyaml>=6.0.3", "toml>=0.10.2", "utils-tool==0.1.3", "uvicorn>=0.38.0",]
|
|
8
|
+
|
|
9
|
+
[tool.setuptools.package-data]
|
|
10
|
+
pro_craft = [ "config.yaml",]
|
|
11
|
+
|
|
12
|
+
[tool.pytest.ini_options]
|
|
13
|
+
testpaths = [ "tests",]
|
|
14
|
+
pythonpath = [ "src",]
|