semvec/pypi-packages huggingface dataset:
lcommit.hook 1.0.5
Reproduce the github webhook when commit.

# Commit hook (github) <img src="rope.png" alt="Logo" height="35" align="top" />

#### Reproduce Commit webhook from github.

[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)

## Motivation

Github webhook are super awesome! But are not available to everyone since only the owner of the repo can create webhook. Sometimes it's very frustrating because you would like to do action in response to an other action concerning a repo that you don't own.
That's why I created this little package.  
It checks if a new commit has been pushed, then hit a webhook.

## Install

> Python 3.6 or higher is required

`pip install ...`

## Usage

The ideal is to create a crontab of your choice that execute this script.  
For example, a crontab that check everyday if a new commit has been pushed to a repo, then react in consequence.

#### Cli usage

`lcommit [usernameGithub] [repoName] [urlToHit] [locationConfig]`

## License

MIT Paul Rosset
QCAT-Basic 0.0.4
A small package contains most useful QCAT interfaces

# Example Package

This is a simple example package. You can use
[Github-flavored Markdown](https://guides.github.com/features/mastering-markdown/)
to write your content.

# Test function to print out all list items in list recursively
def printOutAllListItems(curList):

# Function to print out the value of strItem in a well formatted list
# curList: <List> List to find out the value
# strItem: <string> matching string used to find the value
# length: <int> the number of list elements after the matching string of strItem
# example: printOutListItemValue(curList,"featureGroupIndRel10-v1060",4) will return '00000000 00101000 00000000 00000000'B
def printOutListItemValue(curList, strItem, length=1):

def printOutFGIValue(curList, strItem, length=1):

# use qcat client to merge multiple logs into single
# input: a string with all logs path combined together
#        could be qmdl, isf, dlf, qmdl2, even mixed. for now will support only 1 format at a time.
# output: path to save the merged log.
#        could be isf, dlf, TXT; details see QCAT6 User Guide <<80-V1233-6 T>>
def qcat_merge_log(targetLogPath, mergedLogPath, filterList = None):

# Use qcat to parse log file into TXT
# logpath: path of log to be parsed
# filterList: special mask IDs in a line to be filtered out, example: 0x147E
# parsedFile: output txt
def qcat_parse_log(logpath, filterList, parsedFile):

# Use qcat to parse log file into TXT
# logpath: path of log to be parsed
# filterList: special mask IDs in a line to be filtered out, example: 0x147E
# parsedFile: output txt
def qcat_filter_log(logpath, filterList, parsedFile):

# test for another method, specific for "UECapabilityInformation"
def qcat_parse_per_log_package(logpath, filterID, filterStr, parsedFile):

# filter special lines contain a list of words, example: ["l_PgaGain", "q_AdcAmpIp1mV"]
def findandsavelogs(substr, infile, outfile):

def getTimeListFromLog(logfile):

# find out words contains time format string, example: '20:56:13.945',
# and return the list of time
def getTimeFromLog(logfile, id):

# find out words contains a value after a name example: q_AdcAmpIp1mV = 111,
# and return the list of value
def getSpecialPointFromLog(logfile, id):
CrawlerFriend 1.0.11
A light weight crawler which gives search results in HTML form or in Dictionary form, given urls and keywords.

## CrawlerFriend

A light weight **Web Crawler** that supports **Python 2.7** which gives search results in HTML form or in
Dictionary form given URLs and Keywords. If you regularly visit a few websites and look for a few keywords
then this python package will automate the task for you and
return the result in a HTML file in your web browser.

### Installation
```
pip install CrawlerFriend
```

### How to use?
#### All Result in HTML
```
import CrawlerFriend

urls = ["http://www.goal.com/","http://www.skysports.com/football","https://www.bbc.com/sport/football"]
keywords = ["Ronaldo","Liverpool","Salah","Real Madrid","Arsenal","Chelsea","Man United","Man City"]

crawler = CrawlerFriend.Crawler(urls, keywords)
crawler.crawl()
crawler.get_result_in_html()
```

The above code will open the following HTML document in Browser

![](https://i.imgur.com/aPoNAYu.png)

#### All Result in Dictionary
```
result_dict = crawler.get_result()
```

#### Changing Default Arguments
CrawlerFriend uses four HTML tags 'title', 'h1', 'h2', 'h3' and max_link_limit = 50 by default for searching.
But it can be changed by passing arguments to the constructor:
 ```
crawler = CrawlerFriend.Crawler(urls, keywords, max_link_limit=200, tags=['p','h4'])
crawler.crawl()
```