arxiv-post


Namearxiv-post JSON
Version 0.7.0 PyPI version JSON
download
home_pagehttps://github.com/astropenguin/arxiv-post/
SummaryTranslate and post arXiv articles to Slack and various apps
upload_time2023-05-07 15:11:13
maintainer
docs_urlNone
authorAkio Taniguchi
requires_python>=3.8,<3.12
licenseMIT
keywords arxiv deepl slack translation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # arxiv-post

[![Release](https://img.shields.io/pypi/v/arxiv-post?label=Release&color=cornflowerblue&style=flat-square)](https://pypi.org/project/arxiv-post/)
[![Python](https://img.shields.io/pypi/pyversions/arxiv-post?label=Python&color=cornflowerblue&style=flat-square)](https://pypi.org/project/arxiv-post/)
[![Downloads](https://img.shields.io/pypi/dm/arxiv-post?label=Downloads&color=cornflowerblue&style=flat-square)](https://pepy.tech/project/arxiv-post)
[![DOI](https://img.shields.io/badge/DOI-10.5281/zenodo.5633924-cornflowerblue?style=flat-square)](https://doi.org/10.5281/zenodo.5633924)
[![Tests](https://img.shields.io/github/actions/workflow/status/astropenguin/arxiv-post/tests.yml?label=Tests&style=flat-square)](https://github.com/astropenguin/arxiv-post/actions)

Translate and post arXiv articles to Slack and various apps

## Installation

```shell
$ pip install arxiv-post
$ playwright install chromium
```

## Usage

Command line interface `arxiv-post` is available after installation, with which you can translate and post arXiv articles to various apps.
Note that only `slack` app is currently available.
You need to [create a custom Slack app to get an URL of incoming webhook](https://slack.com/help/articles/115005265063-Incoming-webhooks-for-Slack).

```shell
$ arxiv-post slack --keywords deshima \
                   --categories astro-ph.IM \
                   --target_lang ja \
                   --slack_webhook_url <Slack webhook URL>
```

The posted article looks like this.

![arxiv-post-slack.png](https://raw.githubusercontent.com/astropenguin/arxiv-post/master/docs/_static/arxiv-post-slack.png)

For detailed information, see the built-in help by the following command.

```shell
$ arxiv-post slack --help
```

## Example

It would be nice to regularly run the command by some automation tools such as GitHub Actions.
Here is a live example where daily arXiv articles in [astro-ph.GA](https://arxiv.org/list/astro-ph.GA/new), [astro-ph.IM](https://arxiv.org/list/astro-ph.IM/new), and [astro-ph.HE](https://arxiv.org/list/astro-ph.HE/new) are posted to different channels of a Slack workspace.

- [a-lab-nagoya/astro-ph-slack: Translate and post arXiv articles to Slack](https://github.com/a-lab-nagoya/astro-ph-slack)

## References

- [fkubota/Carrier-Owl: arxiv--> DeepL --> Slack](https://github.com/fkubota/Carrier-Owl): The arxiv-post package is highly inspired by their work.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/astropenguin/arxiv-post/",
    "name": "arxiv-post",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<3.12",
    "maintainer_email": "",
    "keywords": "arxiv,deepl,slack,translation",
    "author": "Akio Taniguchi",
    "author_email": "taniguchi@a.phys.nagoya-u.ac.jp",
    "download_url": "https://files.pythonhosted.org/packages/48/51/11fe52847740c0be77d6e83f02c07a040a6678392682c3166a827148e484/arxiv_post-0.7.0.tar.gz",
    "platform": null,
    "description": "# arxiv-post\n\n[![Release](https://img.shields.io/pypi/v/arxiv-post?label=Release&color=cornflowerblue&style=flat-square)](https://pypi.org/project/arxiv-post/)\n[![Python](https://img.shields.io/pypi/pyversions/arxiv-post?label=Python&color=cornflowerblue&style=flat-square)](https://pypi.org/project/arxiv-post/)\n[![Downloads](https://img.shields.io/pypi/dm/arxiv-post?label=Downloads&color=cornflowerblue&style=flat-square)](https://pepy.tech/project/arxiv-post)\n[![DOI](https://img.shields.io/badge/DOI-10.5281/zenodo.5633924-cornflowerblue?style=flat-square)](https://doi.org/10.5281/zenodo.5633924)\n[![Tests](https://img.shields.io/github/actions/workflow/status/astropenguin/arxiv-post/tests.yml?label=Tests&style=flat-square)](https://github.com/astropenguin/arxiv-post/actions)\n\nTranslate and post arXiv articles to Slack and various apps\n\n## Installation\n\n```shell\n$ pip install arxiv-post\n$ playwright install chromium\n```\n\n## Usage\n\nCommand line interface `arxiv-post` is available after installation, with which you can translate and post arXiv articles to various apps.\nNote that only `slack` app is currently available.\nYou need to [create a custom Slack app to get an URL of incoming webhook](https://slack.com/help/articles/115005265063-Incoming-webhooks-for-Slack).\n\n```shell\n$ arxiv-post slack --keywords deshima \\\n                   --categories astro-ph.IM \\\n                   --target_lang ja \\\n                   --slack_webhook_url <Slack webhook URL>\n```\n\nThe posted article looks like this.\n\n![arxiv-post-slack.png](https://raw.githubusercontent.com/astropenguin/arxiv-post/master/docs/_static/arxiv-post-slack.png)\n\nFor detailed information, see the built-in help by the following command.\n\n```shell\n$ arxiv-post slack --help\n```\n\n## Example\n\nIt would be nice to regularly run the command by some automation tools such as GitHub Actions.\nHere is a live example where daily arXiv articles in [astro-ph.GA](https://arxiv.org/list/astro-ph.GA/new), [astro-ph.IM](https://arxiv.org/list/astro-ph.IM/new), and [astro-ph.HE](https://arxiv.org/list/astro-ph.HE/new) are posted to different channels of a Slack workspace.\n\n- [a-lab-nagoya/astro-ph-slack: Translate and post arXiv articles to Slack](https://github.com/a-lab-nagoya/astro-ph-slack)\n\n## References\n\n- [fkubota/Carrier-Owl: arxiv--> DeepL --> Slack](https://github.com/fkubota/Carrier-Owl): The arxiv-post package is highly inspired by their work.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Translate and post arXiv articles to Slack and various apps",
    "version": "0.7.0",
    "project_urls": {
        "Documentation": "https://astropenguin.github.io/arxiv-post/",
        "Homepage": "https://github.com/astropenguin/arxiv-post/"
    },
    "split_keywords": [
        "arxiv",
        "deepl",
        "slack",
        "translation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "745b548477c6d836785d02143c7a36ecb6d9d23ba037252e55e8430f96488598",
                "md5": "e40b2999a6f395c16c94191dc55d65f2",
                "sha256": "6a3b4a5936480f2a01f442bdb96fef857a724a8e5dd73b2bafcb62b5492d5160"
            },
            "downloads": -1,
            "filename": "arxiv_post-0.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e40b2999a6f395c16c94191dc55d65f2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<3.12",
            "size": 10275,
            "upload_time": "2023-05-07T15:11:11",
            "upload_time_iso_8601": "2023-05-07T15:11:11.295005Z",
            "url": "https://files.pythonhosted.org/packages/74/5b/548477c6d836785d02143c7a36ecb6d9d23ba037252e55e8430f96488598/arxiv_post-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "485111fe52847740c0be77d6e83f02c07a040a6678392682c3166a827148e484",
                "md5": "1ba1eae0a5fbec4cf6d1497ef8018ce1",
                "sha256": "74081d62dbb25e072b73ec52a846a40b202523fb5c0df2d5f6142418fdbcde49"
            },
            "downloads": -1,
            "filename": "arxiv_post-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1ba1eae0a5fbec4cf6d1497ef8018ce1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<3.12",
            "size": 8317,
            "upload_time": "2023-05-07T15:11:13",
            "upload_time_iso_8601": "2023-05-07T15:11:13.559729Z",
            "url": "https://files.pythonhosted.org/packages/48/51/11fe52847740c0be77d6e83f02c07a040a6678392682c3166a827148e484/arxiv_post-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-07 15:11:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "astropenguin",
    "github_project": "arxiv-post",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "arxiv-post"
}
        
Elapsed time: 0.07610s