semvec/pypi-packages huggingface dataset:
poebot 0.2.2
A library for building GitHub apps.
Requires Python: >=3.6
Keywords: async github-app github-bot probot

# Poebot

[![PyPI version](https://badge.fury.io/py/poebot.svg)](https://badge.fury.io/py/poebot)
[![Build Status](https://travis-ci.com/olivertso/poebot.svg?branch=master)](https://travis-ci.com/olivertso/poebot)
[![Coverage Status](https://coveralls.io/repos/github/olivertso/poebot/badge.svg?branch=master)](https://coveralls.io/github/olivertso/poebot?branch=master)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

Poebot is a Python library for building [GitHub apps][gh-apps]. Inspired by [Probot][probot] and
powered by [Starlette][starlette].

## Requirements

Python 3.6+

## Installation

```
pip install poebot
```

You'll also need to install an ASGI server, such as [uvicorn][uvicorn]:
```
pip install uvicorn
```

## Environment variables

### Required

- `GITHUB_APP_IDENTIFIER`
- `GITHUB_PRIVATE_KEY`
- `GITHUB_WEBHOOK_SECRET`

### Optional

- `GITHUB_PRIVATE_KEY_BASE64` (default: `False`)\
Docker doesn't support multiline variables in `.env` file. So if you are using them together, you
can set this variable to `True` and set `GITHUB_PRIVATE_KEY` to the base64 encoded version of your
private key.
- `GITHUB_WEBHOOK_ROUTE` (default: `/`)

## Usage

Create a file `main.py` with the following code:
```python
from poebot import Poebot

app = Poebot(debug=True)

@app.on_gh_event("issues", "opened")
async def add_bug_label(github, payload):
    repo = github.get_repo(payload["repository"]["full_name"])
    issue = repo.get_issue(payload["issue"]["number"])
    issue.add_to_labels("bug")
```

Then, in your terminal, run:
```
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
```

The `Poebot` class provides:

- a webhook that listens to GitHub events and verifies the incoming webhook signature;
- a decorator `on_gh_event` for you to register GitHub event handlers.

The `on_gh_event` decorator has two parameters: the **event type** and **action** (can be `None`)
to listen to.

The event handler receives two arguments:
- an authenticated `Github` object (from [PyGithub][pygithub]) to interact with GitHub API;
- the event payload as a dictionary.

## Release

- [ ] Checkout to `master` branch.
- [ ] Pull changes.
- [ ] Checkout to a new branch `release/x.x.x`.
- [ ] Bump version in `setup.py`.
- [ ] Update `CHANGELOG.md`.
  - [ ] Add a blank line and `## [x.x.x] - YYYY-MM-DD` bellow `## [Unreleased]`.
  - [ ] Update compare links at the bottom section.
- [ ] Commit with message `Release x.x.x` and push.
- [ ] Open and merge a PR with title `Release x.x.x`.
- [ ] Delete branch `release/x.x.x`.
- [ ] Checkout to `master` branch.
- [ ] Pull changes.
- [ ] Create a tag `x.x.x`.
- [ ] Push the tag.
- [ ] Create a release with title `x.x.x`.
  - [ ] Copy and paste the newest section from `CHANGELOG.md` to the release description.

[gh-apps]: https://developer.github.com/apps/
[probot]: https://github.com/probot/probot
[pygithub]: https://github.com/PyGithub/PyGithub
[starlette]: https://github.com/encode/starlette
[uvicorn]: https://github.com/encode/uvicorn
focused 1.1.3
Focused is a Python library that removes clutter from webpages. Read articles without distractions.
Requires Python: >=3.6

# Focused

Focused is a Python library that removes clutter from webpages. Read articles without distractions.

Before: [medium.com](https://towardsdatascience.com/predicting-wine-quality-using-text-reviews-8bddaeb5285d)

After: [focused](https://github.com/Imperator26/focused/blob/master/examples/Predicting%20Wine%20Quality%20using%20Text%20Reviews%20-%20Towards%20Data%20Science.pdf)
portalnews 0.1.1
대한민국 3대 포털뉴스(네이버, 다음, 네이트)의 기사, 반응, 댓글, 답글 수집기

# portalnews

대한민국 3대 포털뉴스(네이버, 다음, 네이트)의 기사, 반응, 댓글, 답글 수집기

## 설치

```
pip install portalnews
```

## 예시

```
from portalnews.naver import NaverNewsCrawler

articles = NaverNewsCrawler.get_daily_articles_by_category('20180511')
```

## 공통 지원 함수 목록

| Method                   | Parameters | Naver | Daum | Nate |
| :-                       |:-:                   |:-:|:-:|:-:|
| get_daily_articles_by_category    | date, category id |O|O|O|
| get_daily_most_read_articles      | date, category id |O|O|O|
| get_daily_most_commented_articles | date, category id |O|O|O|
| get_main_articles                 | date, category id |O|O|-|
| get_article_content               | article id        |O|O|O|
| get_article_reactions             |article id         |O|O|O|
| get_comment_metadata              |article id         |O|O|O|
| get_all_comments                  |article id         |O|O|O|
| get_all_replies              | article id, comment id |O|O|X|

공통 지원 함수에 대한 더 더 자세한 설명, 그리고 각 모듈별로 다르게 지원하는 함수는 각 모듈의 README에 작성할 예정입니다.
flask-easylog 1.0.0
flask_easylog extension for flask application

Flask-easylog
=============

help log management for flask application


Installation
------------

::

    pip install flask-easylog
        
Or

::

    git clone https://github.com/fraoustin/flask-easylog.git
    cd flask-easylog
    python setup.py install

You can load test by

::

    python -m unittest discover -s test

Usage
-----

::

    from flask import Flask, request, current_app
    from logging import DEBUG, INFO, ERROR

    from flask_easylog import EasyLog, FMT_ACCESS_LOG, log, SpecificLevelLog, Api, Ui 

    app = Flask(__name__)
    app.secret_key = 'super secret string'
    app.logger.setLevel(INFO)

    app.logger.info("before add EasyLog")

    EasyLog(app,
        fmt = FMT_ACCESS_LOG,
        afterlog = True,
        beforelog = True)
    app.register_blueprint(Api(url_prefix='/api'))
    app.register_blueprint(Ui(url_prefix='/ui'))
    app.logger.info("after add EasyLog")

    @app.route("/")
    def hello():
        current_app.logger.critical("critical from hello")
        current_app.logger.error("error from hello")
        current_app.logger.info("info from hello")
        current_app.logger.debug("debug from hello")
        return "Hello World!"

    @app.route("/one")
    @log(DEBUG)
    def one():
        current_app.logger.critical("critical from one")
        current_app.logger.error("error from one")
        current_app.logger.info("info from one")
        current_app.logger.debug("debug from one")
        return "Hello World!"

    @app.route("/two")
    @log
    def two():
        current_app.logger.critical("critical from two")
        current_app.logger.error("error from two")
        current_app.logger.info("info from two")
        current_app.logger.debug("debug from two")
        return "Hello World!"

    @app.route("/three")
    @log(ERROR)
    def three():
        current_app.logger.critical("critical from three")
        current_app.logger.error("error from three")
        current_app.logger.info("info from three")
        current_app.logger.debug("debug from three")
        return "Hello World!"

    @app.route("/four")
    def four():
        current_app.logger.critical("critical from four")
        current_app.logger.error("error from four")
        current_app.logger.info("info from four")
        current_app.logger.debug("debug from four")
        return "Hello World!"

    SpecificLevelLog['four']=ERROR

    if __name__ == "__main__":
        app.logger.info("before run")
        app.run(host="0.0.0.0", port=8080)

Documentation
-------------

`Plugin EasyLog <https://github.com/fraoustin/flask-easylog/tree/master/doc/plugin.rst>`_

`Api EasyLog <https://github.com/fraoustin/flask-easylog/tree/master/doc/api.rst>`_

`Ui EasyLog <https://github.com/fraoustin/flask-easylog/tree/master/doc/ui.rst>`_

Feature
=======

- manage request too long by Filter and @
- manage level by rule (change by api)
- change work of print function
- test access.log with goaccess
- add fct for debug if status >= 500 and not mode debug

V. 0.1.0
========

- init
- add request_id
- add info from config and request
- add info timestamp
tuesday 3.0.0
A python package for automation
Requires Python: >=3

# Tuesday

You can easily automize and control most of the functions of system by your voice.
By using this package u can easily build jarvis like programme, irrespective of your knowledge of coding.
Easy voice commands to work with.


## Requirements
You have to follow the steps given below before installing package:
## 1: Install Microsoft Redistributable
[MicrosoftRedistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) select version according to your system.
## 2: Install visual studio build tools c++ 2015 or above
[visual studio build tools c++ 2015](https://www.microsoft.com/en-in/download/details.aspx?id=48159) and should have windows 10
## 3: Download geckodriver version according to your system
[geckodriver](https://github.com/mozilla/geckodriver/releases).
Paste and extract file in your python folder or PATH.
## 4: Download chromedriver version according to your system
[chromedriver](https://chromedriver.chromium.org/downloads).
Paste and extract file in your python folder or PATH.
## 5: Download wheel version according to your python version
[wheel](https://www.lfd.uci.edu/~gohlke/pythonlibs/).
Paste this wheel file in your project folder.
## 6: Allow access to less secured apps
[lesssecureapps](https://myaccount.google.com/lesssecureapps).
Allow it.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install tuesday.
```python
# step 1: Python should be istalled in "C:\Folder" location
#step 2: Python interpreter should be installed in "C:\new folder" location 
#step 3: Project should be located in "C:\name of project" location
# step 4: Paste the downloaded file in your project folder and in python interpretor use "pip install nameofthewheelfile"
```

## Speak

```python
from tuesday import speech

speech.speak("hello") #speak function
```
## Voice Search

```python
from tuesday import search
search.google()
```
Interactive voice programme

## Send a email through gmail

you can send a mail using your voice
```python
from tuesday import sendmail
sendmail.send()
```
From next update mail can be sent by other email platforms also,
But now it is limited to GMAIL only.

## Jarvis structure
```python
if __name__=='__main__':
    speech.speak("hello my name is tuesday")
    speech.intro()

    while True:

        comm=speech.takecommand().lower()
        if "open a website" in comm:
            websites.Open(".com") #use capital 'Open'
        elif "google" in comm:
            search.google()
        elif "play youtube" in comm:
            search.youtubeplay()
        elif "search youtube" in comm:
            search.youtubesearch()
        elif "open facebook by mail" in comm:
            social.facebookemail()
        elif "open gmail" in comm:
            social.gmail()
        elif "send a mail" in comm:
            sendmail.send()     
        elif "tuesday stop" in comm:
            sys.exit() 
```
More commands are available try to explore them.
Next update will include many more commands.
Thank you.