content-core 1.2.1__tar.gz → 1.2.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.
Potentially problematic release.
This version of content-core might be problematic. Click here for more details.
- content_core-1.2.2/.claude/commands/pr-review.md +6 -0
- {content_core-1.2.1 → content_core-1.2.2}/PKG-INFO +1 -1
- {content_core-1.2.1 → content_core-1.2.2}/pyproject.toml +1 -1
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/processors/url.py +2 -2
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/processors/youtube.py +4 -3
- {content_core-1.2.1 → content_core-1.2.2}/uv.lock +1 -1
- {content_core-1.2.1 → content_core-1.2.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/.github/workflows/claude-code-review.yml +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/.github/workflows/claude.yml +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/.github/workflows/publish.yml +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/.gitignore +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/.python-version +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/CONTRIBUTING.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/LICENSE +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/Makefile +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/README.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/docs/macos.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/docs/mcp.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/docs/processors.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/docs/raycast.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/docs/usage.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/mcp.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/new_pdf.pdf +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/prompts/content/cleanup.jinja +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/prompts/content/summarize.jinja +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/.eslintrc.json +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/CHANGELOG.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/README.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/assets/command-icon.png +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/package-lock.json +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/package.json +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/raycast-env.d.ts +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/src/extract-content.tsx +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/src/quick-extract.tsx +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/src/summarize-content.tsx +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/src/utils/content-core.ts +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/src/utils/types.ts +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/raycast-content-core/tsconfig.json +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/__init__.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/cc_config.yaml +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/common/__init__.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/common/exceptions.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/common/state.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/common/types.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/common/utils.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/config.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/content/__init__.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/content/cleanup/__init__.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/content/cleanup/core.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/content/extraction/__init__.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/content/extraction/graph.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/content/identification/__init__.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/content/summary/__init__.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/content/summary/core.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/logging.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/mcp/__init__.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/mcp/server.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/models.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/models_config.yaml +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/notebooks/run.ipynb +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/notebooks/urls.ipynb +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/processors/audio.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/processors/docling.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/processors/office.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/processors/pdf.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/processors/text.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/processors/video.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/py.typed +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/templated_message.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/tools/__init__.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/tools/cleanup.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/tools/extract.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/src/content_core/tools/summarize.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/test.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file.docx +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file.epub +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file.md +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file.mp3 +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file.mp4 +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file.pdf +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file.pptx +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file.txt +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file.xlsx +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/input_content/file_audio.mp3 +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/integration/test_cli.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/integration/test_extraction.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/unit/test_config.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/unit/test_docling.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/unit/test_mcp_server.py +0 -0
- {content_core-1.2.1 → content_core-1.2.2}/tests/unit/test_pymupdf_ocr.py +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
When I ask you to do a PR, you will commit the necessary files and open up a pull request. As soon as you open the pull request, an automatic review process will start. The review process will provide feedback on the code quality and best practices, potential bugs or issues, performance considerations, security concerns, and test coverage.
|
|
3
|
+
|
|
4
|
+
You should query the PR after opening it to get the commends from the review tool. Then, you will assess the comments and propose me which of them we need to address.
|
|
5
|
+
|
|
6
|
+
Then, we'll do the changes, commit them and add a comment back to the PR so that the review tool undertands what we changed and what we ignored.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "content-core"
|
|
3
|
-
version = "1.2.
|
|
3
|
+
version = "1.2.2"
|
|
4
4
|
description = "Extract what matters from any media source. Available as Python Library, macOS Service, CLI and MCP Server"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
homepage = "https://github.com/lfnovo/content-core"
|
|
@@ -38,10 +38,10 @@ async def url_provider(state: ProcessSourceState):
|
|
|
38
38
|
or mime in SUPPORTED_FITZ_TYPES
|
|
39
39
|
or mime in SUPPORTED_OFFICE_TYPES
|
|
40
40
|
):
|
|
41
|
-
logger.
|
|
41
|
+
logger.debug(f"Identified type for {url}: {mime}")
|
|
42
42
|
return_dict["identified_type"] = mime
|
|
43
43
|
else:
|
|
44
|
-
logger.
|
|
44
|
+
logger.debug(f"Identified type for {url}: article")
|
|
45
45
|
return_dict["identified_type"] = "article"
|
|
46
46
|
return return_dict
|
|
47
47
|
|
|
@@ -3,12 +3,13 @@ import ssl
|
|
|
3
3
|
|
|
4
4
|
import aiohttp
|
|
5
5
|
from bs4 import BeautifulSoup
|
|
6
|
+
from youtube_transcript_api import YouTubeTranscriptApi # type: ignore
|
|
7
|
+
from youtube_transcript_api.formatters import TextFormatter # type: ignore
|
|
8
|
+
|
|
6
9
|
from content_core.common import ProcessSourceState
|
|
7
10
|
from content_core.common.exceptions import NoTranscriptFound
|
|
8
11
|
from content_core.config import CONFIG
|
|
9
12
|
from content_core.logging import logger
|
|
10
|
-
from youtube_transcript_api import YouTubeTranscriptApi # type: ignore
|
|
11
|
-
from youtube_transcript_api.formatters import TextFormatter # type: ignore
|
|
12
13
|
|
|
13
14
|
ssl._create_default_https_context = ssl._create_unverified_context
|
|
14
15
|
|
|
@@ -172,7 +173,7 @@ async def extract_youtube_transcript(state: ProcessSourceState):
|
|
|
172
173
|
"""
|
|
173
174
|
|
|
174
175
|
assert state.url, "No URL provided"
|
|
175
|
-
logger.
|
|
176
|
+
logger.debug(f"Extracting transcript from URL: {state.url}")
|
|
176
177
|
languages = CONFIG.get("youtube_transcripts", {}).get(
|
|
177
178
|
"preferred_languages", ["en", "es", "pt"]
|
|
178
179
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{content_core-1.2.1 → content_core-1.2.2}/src/content_core/content/identification/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|