wp_python 0.1.0__tar.gz → 0.1.2__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 (69) hide show
  1. {wp_python-0.1.0 → wp_python-0.1.2}/.gitignore +1 -0
  2. wp_python-0.1.2/LICENSE +19 -0
  3. {wp_python-0.1.0 → wp_python-0.1.2}/PKG-INFO +6 -2
  4. {wp_python-0.1.0 → wp_python-0.1.2}/pyproject.toml +18 -4
  5. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/__init__.py +4 -4
  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/data.db +0 -0
  19. wp_python-0.1.0/demo.py +0 -604
  20. wp_python-0.1.0/main.py +0 -6
  21. wp_python-0.1.0/pytest.ini +0 -6
  22. wp_python-0.1.0/replit.md +0 -87
  23. wp_python-0.1.0/tests/__init__.py +0 -1
  24. wp_python-0.1.0/tests/conftest.py +0 -243
  25. wp_python-0.1.0/tests/test_application_passwords.py +0 -167
  26. wp_python-0.1.0/tests/test_auth.py +0 -146
  27. wp_python-0.1.0/tests/test_client.py +0 -120
  28. wp_python-0.1.0/tests/test_endpoints.py +0 -294
  29. wp_python-0.1.0/tests/test_exceptions.py +0 -142
  30. wp_python-0.1.0/tests/test_models.py +0 -281
  31. wp_python-0.1.0/uv.lock +0 -894
  32. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/auth.py +0 -0
  33. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/client.py +0 -0
  34. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/__init__.py +0 -0
  35. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/application_passwords.py +0 -0
  36. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/autosaves.py +0 -0
  37. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/base.py +0 -0
  38. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/blocks.py +0 -0
  39. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/categories.py +0 -0
  40. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/comments.py +0 -0
  41. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/media.py +0 -0
  42. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/menus.py +0 -0
  43. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/pages.py +0 -0
  44. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/plugins.py +0 -0
  45. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/post_types.py +0 -0
  46. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/posts.py +0 -0
  47. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/revisions.py +0 -0
  48. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/search.py +0 -0
  49. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/settings.py +0 -0
  50. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/statuses.py +0 -0
  51. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/tags.py +0 -0
  52. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/taxonomies.py +0 -0
  53. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/themes.py +0 -0
  54. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/endpoints/users.py +0 -0
  55. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/exceptions.py +0 -0
  56. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/__init__.py +0 -0
  57. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/base.py +0 -0
  58. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/category.py +0 -0
  59. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/comment.py +0 -0
  60. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/media.py +0 -0
  61. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/menu.py +0 -0
  62. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/page.py +0 -0
  63. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/plugin.py +0 -0
  64. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/post.py +0 -0
  65. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/settings.py +0 -0
  66. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/tag.py +0 -0
  67. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/taxonomy.py +0 -0
  68. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/theme.py +0 -0
  69. {wp_python-0.1.0/src/wordpress_api → wp_python-0.1.2/wp_python}/models/user.py +0 -0
@@ -23,3 +23,4 @@ wheels/
23
23
  env/
24
24
  venv/
25
25
  .cache/
26
+ *.db
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2018 The Python Packaging Authority
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -1,9 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wp_python
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A Python client for interacting with the WordPress REST API.
5
+ Author-email: Andrew <andrew.neher1@gmail.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Programming Language :: Python :: 3
5
10
  Requires-Python: >=3.12
6
- Requires-Dist: django-wordpress-api>=0.2.0
7
11
  Requires-Dist: hatch>=1.16.3
8
12
  Requires-Dist: httpx>=0.28.1
9
13
  Requires-Dist: pydantic>=2.12.5
@@ -1,10 +1,18 @@
1
1
  [project]
2
2
  name = "wp_python"
3
- version = "0.1.0"
3
+ dynamic = ["version"]
4
4
  description = "A Python client for interacting with the WordPress REST API."
5
+ authors = [
6
+ { name = "Andrew", email = "andrew.neher1@gmail.com"}
7
+ ]
5
8
  requires-python = ">=3.12"
9
+ classifiers = [
10
+ "Programming Language :: Python :: 3",
11
+ "Operating System :: OS Independent",
12
+ ]
13
+ license = "MIT"
14
+ license-files = ["LICEN[CS]E*"]
6
15
  dependencies = [
7
- "django-wordpress-api>=0.2.0",
8
16
  "hatch>=1.16.3",
9
17
  "httpx>=0.28.1",
10
18
  "pydantic>=2.12.5",
@@ -18,9 +26,15 @@ requires = ["hatchling"]
18
26
  build-backend = "hatchling.build"
19
27
 
20
28
  [tool.hatch.build.targets.wheel]
21
- packages = ["src"]
29
+ packages = ["src/wp_python"]
30
+
31
+ [tool.hatch.build.targets.sdist]
32
+ packages = ["src/wp_python"]
33
+
34
+ [tool.hatch.version]
35
+ path = "src/wp_python/__init__.py"
22
36
 
23
37
  [tool.pytest.ini_options]
24
38
  testpaths = ["tests"]
25
39
  python_files = "test_*.py"
26
- python_functions = "test_*"
40
+ python_functions = "test_*"
@@ -4,18 +4,18 @@ WordPress REST API Python Client
4
4
  A full-featured Python 3.12 interface to the WordPress REST API.
5
5
  """
6
6
 
7
- from .client import WordPressClient
8
7
  from .auth import ApplicationPasswordAuth, BasicAuth, JWTAuth, OAuth2Auth
8
+ from .client import WordPressClient
9
9
  from .exceptions import (
10
- WordPressError,
11
10
  AuthenticationError,
12
11
  NotFoundError,
13
- ValidationError,
14
12
  RateLimitError,
15
13
  ServerError,
14
+ ValidationError,
15
+ WordPressError,
16
16
  )
17
17
 
18
- __version__ = "1.0.0"
18
+ __version__ = "0.1.2"
19
19
  __all__ = [
20
20
  "WordPressClient",
21
21
  "ApplicationPasswordAuth",
@@ -1 +0,0 @@
1
- {"latest": "main"}
wp_python-0.1.0/.replit DELETED
@@ -1,30 +0,0 @@
1
- modules = ["python-3.12"]
2
- [agent]
3
- expertMode = true
4
-
5
- [workflows]
6
- runButton = "Project"
7
-
8
- [[workflows.workflow]]
9
- name = "Project"
10
- mode = "parallel"
11
- author = "agent"
12
-
13
- [[workflows.workflow.tasks]]
14
- task = "workflow.run"
15
- args = "Run Tests"
16
-
17
- [[workflows.workflow]]
18
- name = "Run Tests"
19
- author = "agent"
20
-
21
- [[workflows.workflow.tasks]]
22
- task = "shell.exec"
23
- args = "python -m pytest tests/ -v"
24
-
25
- [workflows.workflow.metadata]
26
- outputType = "console"
27
-
28
- [nix]
29
- channel = "stable-25_05"
30
- packages = ["libxcrypt"]
wp_python-0.1.0/data.db DELETED
Binary file