semvec/pypi-packages huggingface dataset:
pytc3 0.1.1
Use the TeamCity REST API from Python
License: MIT

# Pytc3 [WIP]
**This is not production Ready yet.**
[![Latest Version](https://badge.fury.io/py/pytc3.svg)](https://pypi.python.org/pypi/pytc3/)
[![Travis CI Build Status](https://travis-ci.org/ageekymonk/pytc3.svg?branch=master)](https://travis-ci.org/ageekymonk/pytc3)

Python interface to the [REST
API](https://confluence.jetbrains.com/display/TCD10/REST+API) of
[TeamCity](https://www.jetbrains.com/teamcity/)

## Installation

```
pip install pytc3
```

## Examples

### Connect to server

```python
from pytc3 import TeamCity

# This initialises the Client with the settings passed. <port> has to be an integer.
tc = TeamCity('account', 'password', 'server', <port>)
```

or specify no parameters and it will read settings from environment
variables:

- `TEAMCITY_USER`
- `TEAMCITY_PASSWORD`
- `TEAMCITY_HOST`
- `TEAMCITY_PORT` (Defaults to 80 if not set)

```python
from pytc3 import TeamCity

# Initialises with environment variables: TEAMCITY_{USER,PASSWORD,HOST,PORT}
tc = TeamCity()
```

### Getting data

You can also look at
[sample.py](https://github.com/ageekymonk/pytc3/blob/master/sample.py)

## Acknowledgements

This is a heavily-modified fork of https://github.com/SurveyMonkey/pyteamcity so many thanks are due to [SurveyMonkey](https://github.com/SurveyMonkey)


# Changes
gcf 0.0.3.dev3
A Gadio infomation mining tool for fans of g-cores.com.
License: MIT
Requires Python: >=2.7

# gcf (g-cores.com fans)

A Gadio information mining tool for g-cores.com fans.
The project is maintained at github.com/bfdw/gcf.

## 安装gcf

```
pip install gcf
```

## 查看帮助文档

```
gcf --help
```

```
gcf career --help
gcf update --help
```

## 简单查询示例

进行查询前，请先更新数据

```
gcf update
```

列出所有西蒙参与的节目

```
gcf -d '西蒙'
gcf --dj '西蒙'
```

列出所有四十二与Ryoma这一CP参与的节目

```
gcf -d '四十二#Ryoma'
gcf --dj '四十二#Ryoma'
```

列出所有PRO节目

```
gcf -p 'GADIO pro'
gcf --prog 'GADIO pro'
```

列出所有题目中包含'兽'的节目

```
gcf -tt '兽'
gcf --title '兽'
```

列出2018年前五个月的所有节目

```
gcf -t 20180101 20180531
gcf --time 20180101 20180531
```

导出数据到当前目录下的gcf.csv

```
gcf -e
gcf --export
```

尽展示标题、栏目两个数据列 

```
gcf -c 'title#program'
gcf --col 'title#program'
```

列出最近的10期节目

```
gcf -r 10
gcf --recent 10
```

## 复合查询示例

列出最近5期由西蒙、四十二、Ryoma三人同时出场的PRO节目

```
gcf -d '西蒙#四十二#Ryoma' -p 'GADIO pro' -r 5
gcf --dj '西蒙#四十二#Ryoma' --prog 'GADIO pro' --recent 5
```

## 生涯模式示例

列出西蒙2015年以来每季度出台次数

```
gcf --dj '西蒙' --time 20150101 20190101 career --size Q --ratio 0.5
```

列出西蒙2017年以来每月出台率

```
gcf --dj '西蒙' --time 20170101 20171231 career --size M --ratio 0.2 --perc
```

## 简单统计示例

统计各栏目的数量，以及所有主持、嘉宾的出台次数

```
gcf statistic
```
substring 0.2
Multi-Operational and Flexible Substring Package
License: MIT

#SUBSTRING Version 0.2

##Multi-Operational and Flexible Substring Package

##This is indeed a need for the developer community to experience such simple, easy-to-use and extremely user friendly Python package which does your usual job of cutting out a piece of substring from the parent string without writing certain lines of code. Nobody wants to spend their valuable time in writing such simple code when they can work on the bigger and other important contributions to the developers' community. This package has the following two methods associated with it:

###1) substringByChar()
It has four parameters namely, initialString, startChar, endChar, and stepSize(default=1). It would spit out the substring on the basis of the characters entered. For example, consider a string "abcdefghijklmnopqrstuvwxyz" and I can pull out the substring "defghijkl" by just specifying the start and end characters as "d" and "l" respectively. It has also the feature of step size where you can change and get your substrings accordingly.

###2) substringByInd()
It has four parameters namely, initialString, startInd, endInd, and stepSize(default=1). It would spit out the substring on the basis of the indices entered. For example, consider a string "abcdefghijklmnopqrstuvwxyz" and I can pull out the substring "defghijkl" by just specifying the start and end indices as 3 and 11 respectively because "d" and "l" represent the indices 3 and 11 respectively. It has also the feature of step size where you can change and get your substrings accordingly.

####This package is "Multi-Operational" because it not only gets you the substring of your choice with such ease but also allows you to play around with the step sizes that you want. For example, consider the same string "abcdefghijklmnopqrstuvwxyz", and you can pull out "aceg" by entering the startChar, endChar, stepSize as "a", "g" and 2 respectively.

####With such ease of use, this package efficiently handles all the exceptions caused and lets the user know about them which makes the user experience very rich.