pro-craft 0.1.2__tar.gz → 0.1.3__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.

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