astro-ph-0.3.1


توضیحات

Translate and post arXiv articles to various apps
ویژگی مقدار
سیستم عامل -
نام فایل astro-ph-0.3.1
نام astro-ph
نسخه کتابخانه 0.3.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Akio Taniguchi
ایمیل نویسنده taniguchi@a.phys.nagoya-u.ac.jp
آدرس صفحه اصلی https://github.com/astropenguin/astro-ph/
آدرس اینترنتی https://pypi.org/project/astro-ph/
مجوز MIT
# astro-ph [![PyPI](https://img.shields.io/pypi/v/astro-ph.svg?label=PyPI&style=flat-square)](https://pypi.org/project/astro-ph/) [![Python](https://img.shields.io/pypi/pyversions/astro-ph.svg?label=Python&color=yellow&style=flat-square)](https://pypi.org/project/astro-ph/) [![Test](https://img.shields.io/github/workflow/status/astropenguin/astro-ph/Test?logo=github&label=Test&style=flat-square)](https://github.com/astropenguin/astro-ph/actions) [![License](https://img.shields.io/badge/license-MIT-blue.svg?label=License&style=flat-square)](LICENSE) Translate and post arXiv articles to various apps ## Installation Use pip or other package manager to install the Python package. ```shell $ pip install astro-ph ``` ## Usage After installation, command line interface, `astro-ph`, is available, with which you can translate and post arXiv articles to various apps. Note that only `slack` app is currently available. In this case, 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 $ astro-ph slack --keywords galaxy,galaxies \ --categories astro-ph.GA,astro-ph.IM \ --language_to ja \ --webhook_url https://hooks.slack.com/services/***/*** ``` The posted article looks like this. ![astro-ph-slack.png](https://raw.githubusercontent.com/astropenguin/astro-ph/master/docs/_static/astro-ph-slack.png) For detailed information, see the built-in help by the following command. ```shell $ astro-ph slack --help ``` ## Example It would be nice to regularly run the command by GitHub Actions. Here is a live example in which daily (2 days ago) arXiv articles in [astro-ph.GA](https://arxiv.org/list/astro-ph.GA/new) and [astro-ph.IM](https://arxiv.org/list/astro-ph.IM/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 astro-ph package is highly inspired by their work - [a-lab-nagoya/astro-ph-slack: Translate and post arXiv articles to Slack](https://github.com/a-lab-nagoya/astro-ph-slack) - A live example using the astro-ph package - [pyppeteer/pyppeteer: Headless chrome/chromium automation library (unofficial port of puppeteer)](https://github.com/pyppeteer/pyppeteer) - Used for async Chromium operation - [aio-libs/aiohttp: Asynchronous HTTP client/server framework for asyncio and Python](https://github.com/aio-libs/aiohttp) - Used for async article posts to Slack - [google/python-fire: Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.](https://github.com/google/python-fire) - Used for creating command line interface


نیازمندی

مقدار نام
>=1.4,<2.0 arxiv
>=1.1,<2.0 dateparser
>=0.4,<0.5 fire
>=1.16,<2.0 playwright
>=2.26,<3.0 requests
>=1.2,<2.0 tomli


زبان مورد نیاز

مقدار نام
>=3.8,<4.0 Python


نحوه نصب


نصب پکیج whl astro-ph-0.3.1:

    pip install astro-ph-0.3.1.whl


نصب پکیج tar.gz astro-ph-0.3.1:

    pip install astro-ph-0.3.1.tar.gz