tenkan
Command line tool to convert HTTP RSS/Atom feeds to gemini format.
Installation
pip install tenkan
Usage
Add a feed
# Any valid RSS/Atom feed
tenkan add feedname url
Update content of feed list
tenkan update
Delete feed
tenkan delete feedname
List subscripted feeds
tenkan list
Options
A debug mode is avaible via --debug option. If you want to use your configuration or feeds file in another place than default one, you can use --config and --feedsfile options.
Configuration
tenkan searches for a configuration file at the following location:
$XDG_CONFIG_HOME/tenkan/tenkan.conf
Example config
This can be found in tenkan.conf.example.
[tenkan]
gemini_path = /usr/local/gemini/
gemini_url = gemini://foo.bar/feeds/
# will purge feed folders having more than defined element count
# purge_feed_folder_after = 100
[filters]
# authors we don't want to read
# authors_blacklist = foo, bar
# blacklist of article titles, if provided, it won't be processed
# titles_blacklist = foo, bar
# blacklist of article links, if provided, it won't be processed
# links_blacklist = foo/bar.com, bar/foo, bla
[formatting]
# maximum article title size, 120 chars if not provided
# title_size = 120
# feeds with a truncated content
# will be fetched and converted using readability
# truncated_feeds = foo, bar
Todolist
- Add a edit command
- Add a --feedname option to update command, to update a single feed
- Rewrite configuration checks
- add configuration option to log output into a logfile
- Improve tests
- Refactor needed parts like write_article
- (not sure if relevant) migrate images too, for gemini clients that can handle it
Development
I recommend using pre-commit. The pre-commit configuration I use is located in .pre-commit-config.yamlfile.
Run pre-commit command before every pull request and fix the warnings or errors it produces.
Metadata
Release files for tenkan 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tenkan-0.2.5.tar.gz | 11.3 kB | Without provenance | Details for tenkan-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tenkan-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for tenkan-0.2.5-py3-none-any.whl |
Total release size: 23.9 kB
Release files / tenkan-0.2.5.tar.gz
| Download URL | tenkan-0.2.5.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cada65f05a25a9ff74b4ebc44f7ae354e3ff31002a1300c434680d9a123a67b5
|
|
BLAKE2b-256 checksum How to use checksums |
62a2cdcf11799787ff28a97d7b51da4a245df656eaf15eb03682d73ec1b8ef2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.9 Linux/6.1.7-arch1-1
|
Release files / tenkan-0.2.5-py3-none-any.whl
| Download URL | tenkan-0.2.5-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0014027ba584c8aabd0231be0cecee781a832c82d0bb6a7c7f3adbd671dd26ee
|
|
BLAKE2b-256 checksum How to use checksums |
c4f1fcdff6b21e492e8bd907f569429b6fda49dc50a787d88c9b52dd97cb90b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.10.9 Linux/6.1.7-arch1-1
|
Security for tenkan 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.