Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

contributter-ranking-bot

MIT PyPI Maintainability

pages-build-deployment pre-commit.ci

Run Bot for test Run Bot Release Package

Deployment on Twitter

  • Original: Twitter Follow @who_is_king
    • → Forked: Twitter Follow @ContribRankBot

Installation

pip install contributter-ranking-bot
# or:
pip install git+https://github.com/eggplants/contributter-ranking-bot

Tweet Format

✨Contribution Ranking - {YYYY/MM/DD}✨
{prefix} {num}🟩: @{mention_interrupt}{name}
...
{prefix} {num}🟩: @{mention_interrupt}{name}
📊<[ppl: {contrib_n}👤, sum: {contrib_sum}🟩, avg: {avg:.2f}🟩]
#contributter_ranking

CLI Usage

$ crb -h
usage: crb [-h] [-k PATH] [-d DAY] [-w SEC] [-n N] [-q] [-D] [-V]

This command makes Contributter Ranking Bot easier to run.

optional arguments:
  -h, --help                show this help message and exit
  -k PATH, --key PATH       key file (default: None)
  -d DAY, --day-before DAY  n days before (default: 1)
  -w SEC, --wait-sec SEC    interval of retrieving tweets (default: 10)
  -n N, --top-n N           top n to tweet (default: 3)
  -q, --quiet               suppress log print (default: False)
  -D, --dry-run             tweet without mentions (default: False)
  -V, --version             show program's version number and exit

$ cat .twitter.key
CONSUMER_KEY="***"
CONSUMER_SECRET="***"
ACCESS_TOKEN="***"
ACCESS_TOKEN_SECRET="***"

$ crb -k .twitter.key
# Running Bot was successful!
# See at: https://twitter.com/satoch_bot/status/1517223447868448768
{
    "created_at": "Thu Apr 21 19:27:13 +0000 2022",
...
}

# 5 days before, tweet top-five ranking
$ crb -d 5 -n 5 -k .twitter.key

License

MIT

Metadata

Release files for contributter-ranking-bot 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for contributter-ranking-bot 0.1.2
File Size Uploaded
contributter_ranking_bot-0.1.2.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for contributter-ranking-bot 0.1.2
File Interpreter ABI Platform
contributter_ranking_bot-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / contributter_ranking_bot-0.1.2.tar.gz

Download URL contributter_ranking_bot-0.1.2.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d1d1a64720e06aec53edefcdcf4b79ee6dc1cd8280bd6211f8dd5f49439de228
BLAKE2b-256 checksum
How to use checksums
0e995bc4aa4cc41d5c85cfc7c6bca96a9beb252be820aadb63baa08cb5026bbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12

Release files / contributter_ranking_bot-0.1.2-py3-none-any.whl

Download URL contributter_ranking_bot-0.1.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99dc862730bffb5c345de03e05fb8719140cf27010fa3f04338aeba4e8aa5d76
BLAKE2b-256 checksum
How to use checksums
5aa54a8aa3bd6bd83fbd6f429e282860d5dbab2bad6bb8e0c5e7e0841d7c849e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page