enthusiast-source-wordpress 1.3.0__tar.gz → 2.0.0__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.
- {enthusiast_source_wordpress-1.3.0 → enthusiast_source_wordpress-2.0.0}/PKG-INFO +3 -2
- {enthusiast_source_wordpress-1.3.0 → enthusiast_source_wordpress-2.0.0}/enthusiast_source_wordpress/source.py +4 -5
- {enthusiast_source_wordpress-1.3.0 → enthusiast_source_wordpress-2.0.0}/pyproject.toml +2 -2
- {enthusiast_source_wordpress-1.3.0 → enthusiast_source_wordpress-2.0.0}/README.md +0 -0
- {enthusiast_source_wordpress-1.3.0 → enthusiast_source_wordpress-2.0.0}/enthusiast_source_wordpress/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: enthusiast-source-wordpress
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: A plugin for Enthusiast that provides a Wordpress documents importer.
|
|
5
5
|
Author: Rafal Cymerys
|
|
6
6
|
Author-email: rafal@upsidelab.io
|
|
@@ -11,7 +11,8 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
-
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
15
|
+
Requires-Dist: enthusiast-domain-common (>=2.0.0)
|
|
15
16
|
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
16
17
|
Description-Content-Type: text/markdown
|
|
17
18
|
|
|
@@ -3,10 +3,11 @@ import re
|
|
|
3
3
|
import urllib.parse
|
|
4
4
|
|
|
5
5
|
import requests
|
|
6
|
-
from
|
|
7
|
-
from
|
|
6
|
+
from enthusiast_domain_common.interfaces import DocumentSourcePlugin
|
|
7
|
+
from enthusiast_domain_common.structures import DocumentDetails
|
|
8
8
|
from pydantic import Field
|
|
9
9
|
from requests import Response
|
|
10
|
+
from suvereo_common.utils import RequiredFieldsModel
|
|
10
11
|
|
|
11
12
|
logger = logging.getLogger(__name__)
|
|
12
13
|
|
|
@@ -17,12 +18,10 @@ class WordpressConfig(RequiredFieldsModel):
|
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
class WordpressDocumentSource(DocumentSourcePlugin):
|
|
21
|
+
TYPE = "wordpress"
|
|
20
22
|
NAME = "WordPress"
|
|
21
23
|
CONFIGURATION_ARGS = WordpressConfig
|
|
22
24
|
|
|
23
|
-
def __init__(self, data_set_id, **kwargs):
|
|
24
|
-
super().__init__(data_set_id)
|
|
25
|
-
|
|
26
25
|
def fetch(self) -> list[DocumentDetails]:
|
|
27
26
|
session = self._create_http_session()
|
|
28
27
|
results = []
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "enthusiast-source-wordpress"
|
|
3
|
-
version = "
|
|
3
|
+
version = "2.0.0"
|
|
4
4
|
description = "A plugin for Enthusiast that provides a Wordpress documents importer."
|
|
5
5
|
authors = ["Rafal Cymerys <rafal@upsidelab.io>"]
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
|
|
8
8
|
[tool.poetry.dependencies]
|
|
9
9
|
python = "^3.10"
|
|
10
|
-
enthusiast-common = ">=
|
|
10
|
+
enthusiast-domain-common = ">=2.0.0"
|
|
11
11
|
requests = "^2.32.3"
|
|
12
12
|
|
|
13
13
|
|
|
File without changes
|
|
File without changes
|