wp_python 0.1.0__tar.gz → 0.1.1__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.
Files changed (68) hide show
  1. {wp_python-0.1.0 → wp_python-0.1.1}/PKG-INFO +1 -2
  2. wp_python-0.1.0/replit.md → wp_python-0.1.1/README.md +0 -6
  3. {wp_python-0.1.0 → wp_python-0.1.1}/pyproject.toml +2 -3
  4. {wp_python-0.1.0 → wp_python-0.1.1}/tests/test_models.py +19 -21
  5. {wp_python-0.1.0 → wp_python-0.1.1}/uv.lock +291 -397
  6. wp_python-0.1.0/.local/state/replit/agent/.agent_state_2ddded56ae980e3f29e14d5e8c13009fb4ad1a4f.bin +0 -0
  7. wp_python-0.1.0/.local/state/replit/agent/.agent_state_6fef9536b7d5d424352266929f9e8d3c0d730d2e.bin +0 -0
  8. wp_python-0.1.0/.local/state/replit/agent/.agent_state_78b84fafd6a75604a1d57a28ac963d49da322f72.bin +0 -0
  9. wp_python-0.1.0/.local/state/replit/agent/.agent_state_7def335c85217e842310c4b479ef939993f05120.bin +0 -0
  10. wp_python-0.1.0/.local/state/replit/agent/.agent_state_7e6838273eb88dceaa7b3e6af3caf02d797c204f.bin +0 -0
  11. wp_python-0.1.0/.local/state/replit/agent/.agent_state_875dbf9e16939f4b7e5f45c84b36d817380cdd10.bin +0 -0
  12. wp_python-0.1.0/.local/state/replit/agent/.agent_state_b4b41f6ffde7a22231d122e2e7e07c47643d4d88.bin +0 -0
  13. wp_python-0.1.0/.local/state/replit/agent/.agent_state_da50bf0e1d6cb24664d2feeaccd7efc1e9910e02.bin +0 -0
  14. wp_python-0.1.0/.local/state/replit/agent/.agent_state_main.bin +0 -0
  15. wp_python-0.1.0/.local/state/replit/agent/.latest.json +0 -1
  16. wp_python-0.1.0/.local/state/replit/agent/repl_state.bin +0 -0
  17. wp_python-0.1.0/.replit +0 -30
  18. wp_python-0.1.0/demo.py +0 -604
  19. wp_python-0.1.0/main.py +0 -6
  20. {wp_python-0.1.0 → wp_python-0.1.1}/.gitignore +0 -0
  21. {wp_python-0.1.0 → wp_python-0.1.1}/data.db +0 -0
  22. {wp_python-0.1.0 → wp_python-0.1.1}/pytest.ini +0 -0
  23. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/__init__.py +0 -0
  24. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/auth.py +0 -0
  25. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/client.py +0 -0
  26. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/__init__.py +0 -0
  27. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/application_passwords.py +0 -0
  28. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/autosaves.py +0 -0
  29. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/base.py +0 -0
  30. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/blocks.py +0 -0
  31. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/categories.py +0 -0
  32. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/comments.py +0 -0
  33. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/media.py +0 -0
  34. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/menus.py +0 -0
  35. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/pages.py +0 -0
  36. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/plugins.py +0 -0
  37. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/post_types.py +0 -0
  38. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/posts.py +0 -0
  39. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/revisions.py +0 -0
  40. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/search.py +0 -0
  41. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/settings.py +0 -0
  42. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/statuses.py +0 -0
  43. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/tags.py +0 -0
  44. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/taxonomies.py +0 -0
  45. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/themes.py +0 -0
  46. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/endpoints/users.py +0 -0
  47. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/exceptions.py +0 -0
  48. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/__init__.py +0 -0
  49. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/base.py +0 -0
  50. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/category.py +0 -0
  51. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/comment.py +0 -0
  52. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/media.py +0 -0
  53. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/menu.py +0 -0
  54. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/page.py +0 -0
  55. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/plugin.py +0 -0
  56. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/post.py +0 -0
  57. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/settings.py +0 -0
  58. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/tag.py +0 -0
  59. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/taxonomy.py +0 -0
  60. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/theme.py +0 -0
  61. {wp_python-0.1.0 → wp_python-0.1.1}/src/wordpress_api/models/user.py +0 -0
  62. {wp_python-0.1.0 → wp_python-0.1.1}/tests/__init__.py +0 -0
  63. {wp_python-0.1.0 → wp_python-0.1.1}/tests/conftest.py +0 -0
  64. {wp_python-0.1.0 → wp_python-0.1.1}/tests/test_application_passwords.py +0 -0
  65. {wp_python-0.1.0 → wp_python-0.1.1}/tests/test_auth.py +0 -0
  66. {wp_python-0.1.0 → wp_python-0.1.1}/tests/test_client.py +0 -0
  67. {wp_python-0.1.0 → wp_python-0.1.1}/tests/test_endpoints.py +0 -0
  68. {wp_python-0.1.0 → wp_python-0.1.1}/tests/test_exceptions.py +0 -0
@@ -1,9 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wp_python
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A Python client for interacting with the WordPress REST API.
5
5
  Requires-Python: >=3.12
6
- Requires-Dist: django-wordpress-api>=0.2.0
7
6
  Requires-Dist: hatch>=1.16.3
8
7
  Requires-Dist: httpx>=0.28.1
9
8
  Requires-Dist: pydantic>=2.12.5
@@ -67,12 +67,6 @@ me = client.users.me()
67
67
  - **Block Editor**: Access block types and patterns
68
68
  - **Error Handling**: Typed exceptions for all API errors
69
69
 
70
- ## Running the Demo
71
-
72
- ```bash
73
- python demo.py
74
- ```
75
-
76
70
  ## Dependencies
77
71
 
78
72
  - httpx: Modern HTTP client
@@ -1,10 +1,9 @@
1
1
  [project]
2
2
  name = "wp_python"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "A Python client for interacting with the WordPress REST API."
5
5
  requires-python = ">=3.12"
6
6
  dependencies = [
7
- "django-wordpress-api>=0.2.0",
8
7
  "hatch>=1.16.3",
9
8
  "httpx>=0.28.1",
10
9
  "pydantic>=2.12.5",
@@ -23,4 +22,4 @@ packages = ["src"]
23
22
  [tool.pytest.ini_options]
24
23
  testpaths = ["tests"]
25
24
  python_files = "test_*.py"
26
- python_functions = "test_*"
25
+ python_functions = "test_*"
@@ -1,35 +1,33 @@
1
1
  """Tests for Pydantic models."""
2
2
 
3
- import pytest
4
3
  from datetime import datetime
5
4
 
6
5
  from wordpress_api.models import (
7
- Post,
8
- PostCreate,
9
- PostUpdate,
10
- PostStatus,
11
- PostFormat,
12
- Page,
13
- PageCreate,
14
- PageUpdate,
15
- Media,
16
- MediaCreate,
17
- User,
18
- UserCreate,
19
- UserUpdate,
6
+ Category,
7
+ CategoryCreate,
20
8
  Comment,
21
9
  CommentCreate,
22
10
  CommentStatus,
23
- Category,
24
- CategoryCreate,
11
+ Media,
12
+ MediaCreate,
13
+ Menu,
14
+ MenuItem,
15
+ Page,
16
+ PageCreate,
17
+ Plugin,
18
+ Post,
19
+ PostCreate,
20
+ PostFormat,
21
+ PostStatus,
22
+ PostUpdate,
23
+ Settings,
25
24
  Tag,
26
25
  TagCreate,
27
26
  Taxonomy,
28
- Settings,
29
- Plugin,
30
27
  Theme,
31
- Menu,
32
- MenuItem,
28
+ User,
29
+ UserCreate,
30
+ UserUpdate,
33
31
  )
34
32
 
35
33
 
@@ -42,7 +40,7 @@ class TestPostModels:
42
40
  assert post.id == 1
43
41
  assert post.slug == "hello-world"
44
42
  assert post.status == PostStatus.PUBLISH
45
- assert post.title.rendered == "Hello World"
43
+ assert post.title.rendered == "Hello World" # pyright: ignore[reportOptionalMemberAccess]
46
44
 
47
45
  def test_post_date_parsing(self, mock_post):
48
46
  """Test that dates are parsed correctly."""