You can use boolean logic (e.g. AND/OR/NOT) for complex search queries. For more help and examples, see the search documentation.
Search by package name:
my-package (implicit)
name:my-package (explicit)
Search by package filename:
filename:my-package.ext
Search by package tag:
tag:latest
Search by package version:
version:1.0.0
prerelease:true (prereleases)
prerelease:false (no prereleases)
Search by package architecture:
architecture:x86_64
Search by package distribution:
distribution:el
Search by package license:
license:MIT
Search by package format:
format:deb
Search by package status:
status:in_progress
Search by package file checksum:
checksum:5afba
Search by package security status:
severity:critical
Search by package vulnerabilities:
vulnerabilities:>1
vulnerabilities:<1000
Search by # of package downloads:
downloads:>8
downloads:<100
Search by package type:
type:binary
type:source
Search by package size (bytes):
size:>50000
size:<10000
Search by dependency name/version:
dependency:log4j
dependency:log4j=1.0.0
dependency:log4j>1.0.0
Search by uploaded date:
uploaded:>"1 day ago"
uploaded:<"August 14, 2022 EST"
Search by entitlement token (identifier):
entitlement:3lKPVJPosCsY
Search by policy violation:
policy_violated:true
deny_policy_violated:true
license_policy_violated:true
vulnerability_policy_violated:true
Search by repository:
repository:repo-name
Search by last download date:
last_downloaded:<"30 days ago"
last_downloaded:>"August 14, 2022 EST"
Search queries for all Debian-specific (and related) package types
Search by component:
deb_component:unstable
Search queries for all Maven-specific (and related) package types
Search by group ID:
maven_group_id:org.apache
Search queries for all Docker-specific (and related) package types
Search by image digest:
docker_image_digest:sha256:7c5..6d4
(full hashref only)
Search by layer digest:
docker_layer_digest:sha256:4c4..ae4
(full hashref only)
Search queries for all Generic-specific package types
Search by file path:
generic_filepath:path/to/file.txt
Search by directory:
generic_directory:path/to
Field type modifiers (depending on the type, you can influence behaviour)
For all queries, you can use:
~foo for negation
For string queries, you can use:
^foo to anchor to start of term
foo$ to anchor to end of term
foo*bar for fuzzy matching
For number/date or version queries, you can use:
>foo for values greater than
>=foo for values greater / equal
<foo for values less than
<=foo for values less / equal
Need a secure and centralised artifact repository to deliver Alpine,
Cargo,
CocoaPods,
Composer,
Conan,
Conda,
CRAN,
Dart,
Debian,
Docker,
Generic,
Go,
Helm,
Hex,
HuggingFace,
LuaRocks,
Maven,
MCP,
npm,
NuGet,
P2,
Python,
RedHat,
Ruby,
Swift,
Terraform,
Vagrant,
VSX,
Raw & More packages?
Cloudsmith is the new standard in Package / Artifact Management and Software Distribution.
With support for all major package formats, you can trust us to manage your software supply chain.
article-to-podcast
0.1.13
One-liner (summary)
Description
# Article to Podcast
[](https://pypi.org/project/article-to-podcast/) [](https://github.com/ivankovnatsky/article-to-podcast/releases) [](https://github.com/ivankovnatsky/article-to-podcast/actions?query=workflow%3ATest) [](https://github.com/ivankovnatsky/article-to-podcast/blob/main/LICENSE.md)
CLI tool for converting articles to podcasts using OpenAI's Text-to-Speech API.
## Requirements
You need to have ffmpeg installed before running this CLI tool.
`console brew install ffmpeg `
Since JS based articles can't be rendered with requests we're using playwright and chromium web driver to tackle that:
`console pip install playwright playwright install chromium `
## Usage
Install article-to-podcast with:
`console pipx install article-to-podcast `
```console article-to-podcast --help Usage: article-to-podcast [OPTIONS]
- Options:
--url TEXT URL of the article to be fetched. [required] --directory DIRECTORY Directory where the output audio file will be saved. The filename will be derived from the article title. [required] - --audio-format [mp3|opus|aac|flac|pcm]
- The audio format for the output file. Default is mp3.
- --model [tts-1|tts-1-hd] The model to be used for text-to-speech
- conversion.
- --voice [alloy|echo|fable|onyx|nova|shimmer]
- The voice to be used for the text-to-speech conversion. Voice options: alloy: A balanced and neutral voice. echo: A more dynamic and engaging voice. fable: A narrative and storytelling voice. onyx: A deep and resonant voice. nova: A bright and energetic voice. shimmer: A soft and soothing voice. Experiment with different voices to find one that matches your desired tone and audience. The current voices are optimized for English.
--help Show this message and exit.
```console export OPENAI_API_KEY="your-api-key" article-to-podcast
--url 'https://blog.kubetools.io/kopylot-an-ai-powered-kubernetes-assistant-for-devops-developers'
## Development
If you're using Nix you can start running the tool by entering:
`console nix develop `
```console export OPENAI_API_KEY="your-api-key" python
-m article_to_podcast --model tts-1-hd --voice nova --directory . --url 'https://blog.kubetools.io/kopylot-an-ai-powered-kubernetes-assistant-for-devops-developers'
## Testing
If you used nix develop all necessary dependencies should have already been installed, so you can just run:
`console pytest `
## TODO
- [ ] Add elevenlabs.io support - [ ] We can utilize at first 10k chars once a month I think
- [ ] Minimize costs on tests
- [ ] Send to device right away
- [ ] Handle redirects
- [ ] Replace print with logger
- [ ] Remove redundant warnings in pytest
- [ ] Make sure pytest shows quota errors
## Manual configurations
- OPENAI_API_KEY secret was added to repository secrets
- PYPI_TOKEN was added to release environment secrets
## Inspired by
- Long frustration of unread articles
- https://github.com/simonw/ospeak
License
Size
8.4 KB
Downloads
5
Tags
bdist/wheel whl noarch py3 python-upstream-pro… upstream latest
| Status | Completed |
|---|---|
| Checksum (MD5) | b04a199723ebedcb4401f4d977ed1bec |
| Checksum (SHA-1) | 471cb986b6cc48f36f26f3d9fec8f19679790165 |
| Checksum (SHA-256) | 868acca2595ef06c5cb5b0081515123bb4b429cbe9458bcc748d11d77243b476 |
| Checksum (SHA-512) | 0ae1fa831f270d79cfe65d5a2907ec08e4b9686e926fe3dd9f04148b27d5090e7f… |
| GPG Signature | |
| GPG Fingerprint | 6811684bac0b8895434e97bdd4391b8fb999e537 |
| Storage Region | Dublin, Ireland |
| Type | Binary (contains binaries and binary artifacts) |
| Uploaded At | 4 months, 3 weeks ago |
| Uploaded By |
|
| Slug Id | article_to_podcast-0113-py3-none-anywhl-o5bd |
| Unique Id | Q1hR9Ehwo39o28zz |
| Version (Raw) | 0.1.13 |
| Version (Parsed) |
|
| extended metadata | |
| Classifiers | License :: OSI Approved :: MIT License |
| Metadata Version | 2.1 |
| Project Urls | CI, https://github.com/ivankovnatsky/article-to-podcast/actions | Changelog, https://github.com/ivankovnatsky/article-to-podcast/releases | Homepage, https://github.com/ivankovnatsky/article-to-podcast | Issues, https://github.com/ivankovnatsky/article-to-podcast/issues |
| Py Filetype | bdist_wheel |
| Py Version | py3 |
| Requires Dist | beautifulsoup4 | click | cogapp ; extra == 'test' | lxml[html_clean] | openai >=1.0 | playwright | pydub | pytest ; extra == 'test' | readability-lxml | requests | simpleaudio ; sys_platform == "darwin" |
| Requires Python | >=3.8 |
| pkg | article_to_podcast-0.1.13-py3-n… |
5
8.4 KB |
md5 | sha1 | sha256 | sha512 |
This package has 17 files/directories.
|
|
article-to-podcast |
5 |
|
|||
| Older |
|
article-to-podcast |
5 |
|
||
| Older |
|
article-to-podcast |
4 |
|
||
| Older |
|
article-to-podcast |
5 |
|
||
| Older |
|
article-to-podcast |
5 |
|
Last scanned
4 months, 3 weeks ago
Scan result
Clean
Vulnerability count
0
Max. severity
UnknownPackage statistics are no longer available on cloudsmith.io. Please visit our new web app to access this feature.
You can embed a badge in another website that shows this or the latest version of this package.
To embed the badge for this specific package version, use the following:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/article-to-podcast/0.1.13/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/)
|This version of 'article-to-podcast' @ Cloudsmith|
.. |This version of 'article-to-podcast' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/article-to-podcast/0.1.13/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/?render=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/article-to-podcast/0.1.13/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/article-to-podcast/0.1.13/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/article-to-podcast/0.1.13/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/",title="This version of 'article-to-podcast' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/article-to-podcast/0.1.13/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/article-to-podcast/0.1.13/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/?render=true" alt="This version of 'article-to-podcast' @ Cloudsmith" /></a>
rendered as:
To embed the badge for the latest package version, use the following:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/article-to-podcast/latest/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/)
|Latest version of 'article-to-podcast' @ Cloudsmith|
.. |Latest version of 'article-to-podcast' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/article-to-podcast/latest/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/?render=true&show_latest=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/article-to-podcast/latest/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/article-to-podcast/latest/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/article-to-podcast/latest/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/",title="Latest version of 'article-to-podcast' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/article-to-podcast/latest/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/article-to-podcast/latest/a=noarch;xf=bdist_wheel;xn=article-to-podcast;xv=py3/?render=true&show_latest=true" alt="Latest version of 'article-to-podcast' @ Cloudsmith" /></a>
rendered as:
These instructions assume you have setup the repository first (or read it).
To install/use article-to-podcast @ version 0.1.13 ...
pip install 'article-to-podcast==0.1.13'
You can also install the latest version of this package:
pip install --upgrade 'article-to-podcast'
If necessary, you can specify the repository directly:
pip install \
--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/ \
article-to-podcast==0.1.13
If you've got a project requirements.txt file, you can specify this as a dependency:
--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
article-to-podcast==0.1.13
In addition, you can use this repository as an extra index url. However, please read our documentation on this parameter before using it. For example in a requirements.txt file:
--extra-index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
article-to-podcast==0.1.13