semvec/pypi-packages huggingface dataset:
PyAstroGeeks 0.3.7
PyAstroGeeks Horoscope Package
Keywords: python


# PyAstroGeek Package

A perfect python package for those who love astrology stuff and always want to stay up-to-date about their horoscopes


## Installation

Install my PyAstroGeeks Package using pip

```bash
  pip install PyAstroGeeks
```
    
## Usage/Examples

```python

    from PyAstroGeeks import horoscope as h

    h.get_yesterday_Horoscope(zodiac_sign='capricorn')

    h.get_today_Horoscope(zodiac_sign='capricorn')

    h.get_tomorrow_Horoscope(zodiac_sign='capricorn')

    h.get_weekly_Horoscope(zodiac_sign='capricorn')

    h.get_monthly_Horoscope(zodiac_sign='capricorn')

    h.get_yearly_Horoscope(zodiac_sign='capricorn')

```

## Authors

- [@krishna sonune](https://www.github.com/krishnasonune)

- [@hardik pawar](https://www.github.com/hardikps)
zz-spider 1.0.0
python使用MQ的场景

# 本代码是有关消息中间件组件的一些使用

##rabbimq
```
import zz_spider
from zz_spider.rabbit_mq.MqDeal import DealRabbitMQ
```
### 使用
```
# -*- coding: utf-8 -*-
# @Time    : 10/14/21 5:38 PM
# @Author  : ZZK
# @File : test_spider.py
# @describe ：
from zz_spider.RabbitMq import DealRabbitMQ

host = xxx
port = xxx
user = xxx
password = xxx
queue_name = xxx
url_port = xxx


def spider(res):
    """
    :param res:
    :return:
    """

    for i in res:
        data =i
        #mongo(data)
        print(i)

mqobeject = DealRabbitMQ(host,user=user,passwd=password,port=port,url_port=url_port)

#spider_main 放置抓取的主要函数
mqobeject.consumer_mq(spider_main=spider,queue_name=queue_name)

#将错误数据写入失败队列中，后缀名必须为_error
mqobeject.send_mq(queue_name='123_error',msg={'1':1})

```

##kafka
```
# 发送
producer = KkProducer(
    bootstrap_servers=bootstrap_servers,
    options_name=options_name,
    try_max_times=try_max_times
    )

params：
    bootstrap_servers 创建连接域名:端口; (例：127.0.0.1:9092)
    options_name 话题名称：topics (例：topic_{flow_id}_{execute_id}_{data_time})
    try_max_times 失败重试最大次数, 默认为 3

test：测试连接 test_send.py

# 接收
```
> 如需帮助请联系 zzk_python@163.com
gui2html 0.0.5
.
Requires Python: >=2

# gui2html
##### This is a package that turns GUI into HTML
> # install
>> ```shell
>>pip install gui2html
>>```
> # use
>>```python
>>from gui2html import *
>>Label(text='hello',_class='class',id='id',stylesheet='color: red;')
>>Button(text='hello',_class='class',stylesheet='',onclick='console.log("click")',id='id')
>>create()
>>```
> # Updata Info
>> ##### 2022.1.24 0.0.1
>>> updata Label class
>>
>> ##### 2022.1.24 0.0.2
>>> updata Button class
>>
>> ##### 2022.1.24 0.0.3
>>> Repair Bug
>>
>> ##### 2022.1.24 0.0.4
>>> Repair Bug
>>
>> ##### 2022.1.24 0.0.5
>>> Repair Bug
>>
>
GetTsite 0.0.3
Get gene TSS/TES site and export bed format from GTF annotation file
Requires Python: >=3.6

# GetTsite python Package

### extract gene TSS/TES site form gencode/ensembl/gencode database GTF file and export bed format file.

## Install

```shell
$ pip install GetTsite
```

## Usage

help infomation:

```shell
$ GetTss -h
usage: GetTss --database ucsc --gtffile hg19.ncbiRefSeq.gtf --tssfile testTSS.bed

Get gene TSS site and export bed format from GTF annotation file.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -d {ucsc,ensembl,gencode}, --database {ucsc,ensembl,gencode}
                        which annotation database you choose. (default="ensembl")
  -g GTFFILE, --gtffile GTFFILE
                        input your GTF file. (ucsc/ensembl/gencode)
  -t TSSFILE, --tssfile TSSFILE
                        output your TSS file. (test-TSS.bed)

Thank your for your support, if you have any questions or suggestions please contact me: 3219030654@stu.cpu.edu.cn.
```

for ucsc gtf file:

```shell
$ GetTss -d ucsc -g hg19.ncbiRefSeq.gtf -t ucsc-TSS.bed
Your job is starting, please wait!
You GTF file have: 104178 transcripts.
 
Your task has down!

$ head -n 3 ucsc-TSS.bed
chrMT   16023   16024   TRNP    .       -
chrMT   15887   15888   TRNT    .       +
chrMT   14746   14747   CYTB    .       +
```

for gencode/ensembl gtf file:

```shell
$ GetTss -d gencode -g gencode.v19.annotation.gtf -t test-TSS.bed
Your job is starting, please wait!
You GTF file have: 57820 genes.

Your task has down!

$ head -n 3 test-TSS.bed
chr1    11868   11869   ENSG00000223972.4       .       +
chr1    29806   29807   ENSG00000227232.4       .       -
chr1    29553   29554   ENSG00000243485.2       .       +
```

the usage of GetTes is same as GetTss:

```shell
$ GetTes -d ucsc -g hg19.ncbiRefSeq.gtf -t ucsc-TSS.bed

$ GetTes -d gencode -g gencode.v19.annotation.gtf -t test-TES.bed
```
## plot peaks density around TSS

compute matrix:

```shell
$ computeMatrix reference-point -S normal.bw treat.bw \
                -R myTSS.bed \
                --referencePoint center \
                -a 3000 -b 3000 -p 25 \
                -out matrix.tab.gz
```

plot Profile:

```shell
$ plotProfile -m matrix.tab.gz \
              -out profile.pdf \
              --perGroup \
              --plotTitle 'test profile'
```
GetTss 0.0.2
Get gene TSS site and export bed format from GTF annotation file
Requires Python: >=3.6

# GetTss python Package

### extract gene TSS site form gencode/ensembl/gencode database GTF file and export bed format file.

## Install

```shell
$ pip install GetTss
```

## Usage

help infomation:

```shell
$ GetTss -h
usage: GetTss --database ucsc --gtffile hg19.ncbiRefSeq.gtf --tssfile testTSS.bed

Get gene TSS site and export bed format from GTF annotation file.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -d {ucsc,ensembl,gencode}, --database {ucsc,ensembl,gencode}
                        which annotation database you choose. (default="ensembl")
  -g GTFFILE, --gtffile GTFFILE
                        input your GTF file. (ucsc/ensembl/gencode)
  -t TSSFILE, --tssfile TSSFILE
                        output your TSS file. (test-TSS.bed)

Thank your for your support, if you have any questions or suggestions please contact me: 3219030654@stu.cpu.edu.cn.
```

for ucsc gtf file:

```shell
$ GetTss -d ucsc -g hg19.ncbiRefSeq.gtf -t ucsc-TSS.bed
Your job is starting, please wait!
You GTF file have: 104178 transcripts.
 
Your task has down!

$ head -n 3 ucsc-TSS.bed
chrMT   16023   16024   TRNP    .       -
chrMT   15887   15888   TRNT    .       +
chrMT   14746   14747   CYTB    .       +
```

for gencode/ensembl gtf file:

```shell
$ GetTss -d gencode -g gencode.v19.annotation.gtf -t test-TSS.bed
Your job is starting, please wait!
You GTF file have: 57820 genes.

Your task has down!

$ head -n 3 test-TSS.bed
chr1    11868   11869   ENSG00000223972.4       .       +
chr1    29806   29807   ENSG00000227232.4       .       -
chr1    29553   29554   ENSG00000243485.2       .       +
```

## plot peaks density around TSS

compute matrix:

```shell
$ computeMatrix reference-point -S normal.bw treat.bw \
                -R myTSS.bed \
                --referencePoint center \
                -a 3000 -b 3000 -p 25 \
                -out matrix.tab.gz
```

plot Profile:

```shell
$ plotProfile -m matrix.tab.gz \
              -out profile.pdf \
              --perGroup \
              --plotTitle 'test profile'
```