Compare commits

..

7 commits

Author SHA1 Message Date
f055b54198 ...
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-24 21:29:29 +02:00
a94dc1d48d ...
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-24 21:27:44 +02:00
279004cd58 create bordel de merde setup.py for drone
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-24 21:23:42 +02:00
bf29c63744 make tests shut up again
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-24 21:01:49 +02:00
c63841b6ac make CI great again
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-24 20:50:16 +02:00
5adc3a0efe tests updates
Some checks failed
continuous-integration/drone/push Build is failing
2022-04-21 18:24:05 +02:00
cf2c059352 Merge pull request 'add build / push steps for drone' (#2) from drone_finalize into master
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #2
2022-04-21 15:43:57 +00:00
2 changed files with 100 additions and 1 deletions

View file

@ -0,0 +1,99 @@
.. image:: https://drone.fqserv.eu/api/badges/takaoni/tenkan/status.svg
:target: https://drone.fqserv.eu/takaoni/tenkan
:alt: Build Status
tenkan
======
Command line tool to convert HTTP RSS/Atom feeds to gemini format.
Installation
------------
```shell script
pip install tenkan
.. code-block::
## Usage
Add a feed
```shell script
# Any valid RSS/Atom feed
tenkan add feedname url
Update content of feed list
```shell script
tenkan update
.. code-block::
Delete feed
```shell script
tenkan delete feedname
List subscripted feeds
```shell script
tenkan list
.. code-block::
## 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.
```ini
[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.

View file

@ -26,7 +26,7 @@ setup(
long_description=readme, long_description=readme,
name='tenkan', name='tenkan',
version='0.1.2', version='0.1.2',
description='RSS/atom feed converter from html to gemini', description='a',
python_requires='==3.*,>=3.8.0', python_requires='==3.*,>=3.8.0',
project_urls={'repository': 'https://git.fqserv.eu/takaoni/tenkan'}, project_urls={'repository': 'https://git.fqserv.eu/takaoni/tenkan'},
author='Quentin Ferrand', author='Quentin Ferrand',