Skip to content

Commit

Permalink
Merge pull request #67 from astropenguin/#64-release-v0.4.0
Browse files Browse the repository at this point in the history
Release v0.4.0
  • Loading branch information
astropenguin authored Oct 30, 2021
2 parents 55f7343 + f9a64ba commit 5a5cb21
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 44 deletions.
24 changes: 7 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ Translate and post arXiv articles to various apps

## Installation

Use pip or other package manager to install the Python package.

```shell
$ pip install arxiv-post
```
Expand All @@ -19,13 +17,13 @@ $ pip install arxiv-post

After installation, command line interface, `arxiv-post`, 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).
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 galaxy,galaxies \
--categories astro-ph.GA,astro-ph.IM \
--language_to ja \
--webhook_url https://hooks.slack.com/services/***/***
$ arxiv-post slack --keywords deshima \
--categories astro-ph.IM \
--language_to ja \
--webhook_url <Slack webhook URL>
```

The posted article looks like this.
Expand All @@ -47,13 +45,5 @@ Here is a live example in which daily (2 days ago) arXiv articles in [astro-ph.G

## References

- [fkubota/Carrier-Owl: arxiv--> DeepL --> Slack](https://github.com/fkubota/Carrier-Owl)
- The arxiv-post 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 arxiv-post 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
- [fkubota/Carrier-Owl: arxiv--> DeepL --> Slack](https://github.com/fkubota/Carrier-Owl): The arxiv-post 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 arxiv-post package.
2 changes: 1 addition & 1 deletion arxiv_post/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# flake8: noqa
# type: ignore
__author__ = "Akio Taniguchi"
__version__ = "0.3.1"
__version__ = "0.4.0"


# submodules
Expand Down
2 changes: 2 additions & 0 deletions arxiv_post/apps/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

# constants
PAYLOAD_TOML = """
text = "{header}"
[[blocks]]
type = "header"
Expand Down
Binary file modified docs/_static/arxiv-post-slack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 21 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "arxiv-post"
version = "0.3.1"
version = "0.4.0"
description = "Translate and post arXiv articles to various apps"
authors = ["Akio Taniguchi <[email protected]>"]
keywords = ["arxiv", "slack", "translation"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# constants
AUTHOR = "Akio Taniguchi"
VERSION = "0.3.1"
VERSION = "0.4.0"


# test functions
Expand Down

0 comments on commit 5a5cb21

Please sign in to comment.