semvec/pypi-packages huggingface dataset:
shanbay-assistant 0.3.0
shanbay.com team assistant
License: MIT
Keywords: shanbay,扇贝网

# shanbay team assistant

[![Build Status](https://travis-ci.org/mozillazg/python-shanbay-team-assistant.svg)](https://travis-ci.org/mozillazg/python-shanbay-team-assistant)

[扇贝网](http://www.shanbay.com) 小组管理助手(Powered by [python-shanbay](https://github.com/mozillazg/python-shanbay]))。

目前专为 [彪悍的人生无需解释](http://www.shanbay.com/team/detail/3352/) 小组定制。

如要用于其他小组，修改 settings.ini.example 和模板文件即可。


## 功能

* 更新小组成员加入条件
* 获取所有小组成员的打卡等情况
* 通过规则判断是否需要执行踢人等操作
* 发站内短信
* 发帖
* 回帖
* 发送欢迎、恭喜、警告、踢人站内短信
* 支持半自动/全自动执行查卡操作


## 使用

下载：
https://github.com/mozillazg/python-shanbay-team-assistant/releases

### 安装依赖
```pip install -r requirements.txt```

### 修改配置文件
复制 settings.ini.example 为 settings.ini，修改其中的配置项。

### 修改模板文件
复制 templates 目录下的 .example 文件为 .txt 文件，并修改 txt 文件的内容。

### 查卡
命令行下执行 ```python assistant.py```

可以通过 -s 指定配置文件： ``` python assistant.py -s settings_biaohan.ini```

## 谁在使用

* [彪悍的人生无需解释小组](http://www.shanbay.com/team/detail/3352/)
* [轻舞飞扬小组](http://www.shanbay.com/team/detail/2320/)
* [35000单词不是梦小组](http://www.shanbay.com/team/detail/10879/)


# 更新日志

## 0.3.0 (2017-03-05)

* 删除群发短信的功能，因为扇贝网已经有了这个功能。
* 改为先设置入组条件，然后再进行后续操作。防止在查卡过程中有人加入小组导致误杀。

## 0.2.8 (2017-02-09)

* 修复无法登录的问题

## 0.2.7 (2015-08-25)

* 修复无法发送短信的问题

## 0.2.6 (2015-04-03)

* 待踢人数大于 `max_dismiss` 时，改为继续更新查卡帖子
  (之前只是记录异常信息，但是并没有继续更新查卡帖子)

## 0.2.5 (2015-01-13)

* 修复扇贝改版导致"无法获取组员用户名导致发送短信失败"的问题
* 修复扇贝改版导致"无法成功踢人"的问题

## 0.2.4 (2014-08-22)

* 小组管理页面改版


## 0.2.3 (2014-08-05)

* 修复"小组成员页面改版导致无法获取组员信息"


## 0.2.2 (2014-07-27)

* 新增配置项： `max_dismiss`


## 0.2.1 (2014-07-19)

* 使用 `shanbay==0.3.0`，fix "扇贝更改小组成员页面的 URL 导致无法获取组员信息"


## 0.2.0 (2014-06-24)

* 重构(功能未发生变化)
* 使用 `shanbay==0.2.1`
* 发布到 PyPI


## 0.1.6 (2014-05-20)

* 支持以“昨天是否打卡”为条件进行查卡
* 将项目内的示例模板文件改为 \*.example，防止更新程序时覆盖掉自定义的模板文件
* 移动模板文件到 templates 目录下
* 支持在配置文件中指定短信模板文件位置
* 支持配置是否更新查卡相关的帖子
* 改用 [python-shanbay](https://github.com/mozillazg/python-shanbay) 操作扇贝网


## 0.1.5 (2014-05-01)

* 修复页面变动导致无法发送短信的问题
* 修复页面变动导致无法正确获取用户名的问题
* 修复之前把提醒给删了
* 增加命令行选项 -i 控制是否进入交互模式
* 恢复误删的 setup.py 文件
* 增加发送通知短信的功能
pocketcasts-api 0.2.2
Unofficial API for pocketcasts.com
License: MIT
Keywords: podcasts pocketcasts

# Pocket-Casts
[![Build Status](https://travis-ci.org/exofudge/Pocket-Casts.svg?branch=master)](https://travis-ci.org/exofudge/Pocket-Casts)
[![Coverage Status](https://coveralls.io/repos/github/exofudge/Pocket-Casts/badge.svg?branch=master)](https://coveralls.io/github/exofudge/Pocket-Casts?branch=master)

Unofficial Pocket Casts API writter in Python 3.
## Installation
```sh
$ pip install pocketcasts-api
```
or clone repo and install from source
```sh
$ python setup.py install
```

## Usage
```python
>>> import pocketcasts
>>> pocket = pocketcasts.Pocketcasts('user@email.com')
# alternatively
>>> pocket = pocketcasts.Pocketcasts('user@email.com', password='optional')
```
### Methods
#### Summary
- pocket. **get_top_charts()**
- pocket. **get_featured()**
- pocket. **get_trending()**
- pocket. **get_episode(podcast, episode_uuid)**
- pocket. **get_podcast(uuid)**
- pocket. **get_podcast_episodes(podcast, sort)**
- pocket. **get_episode_notes(episode_uuid)**
- pocket. **get_subscribed_podcasts()**
- pocket. **get_new_releases()**
- pocket. **get_in_progress()**
- pocket. **get_starred()**
- pocket. **update_starred(podcast, episode, starred)**
- pocket. **update_playing_status(podcast, episode, status)**
- pocket. **update_played_position(podcast, episode, position)**
- pocket. **subscribe_podcast(podcast)**
- pocket. **unsubscribe_podcast(podcast)**
- pocket. **search_podcasts(search_str)**

#### get_top_charts()
Returns the top charts currently on the pocketcasts website, as a list of Podcast classes
```python
>>> pocket = pocketcasts.Pocketcasts('user@email.com')
>>> print(pocket.get_top_charts())
[<class 'pocketcasts.podcast.Podcast'> (
    {'_media_type': 'Audio',
     '_uuid': '3782b780-0bc5-012e-fb02-00163e1b201c',
     '_description': '...',
     '_episodes_sort_order': 3,
     '_url': 'https://www.thisamericanlife.org',
     '_thumbnail_small': '',
     '_thumbnail_url': '...',
     '_author': 'This American Life',
     '_id': '',
     '_language': 'en',
     '_api': <pocketcasts.api.Pocketcasts object at 0x0000016F0E6E6390>,
     '_title': 'This American Life',
     '_categories': ['Society & Culture', 'Arts']}
    ), ...
]
```
#### get_featured()
Returns the featured podcasts currently on the pocketcasts website, as a list of Podcast classes
```python
>>> pocket = pocketcasts.Pocketcasts('user@email.com')
>>> print(pocket.get_featured())
[<class 'pocketcasts.podcast.Podcast'>, ...]
```
#### get_trending()
Returns the trending podcasts currently on the pocketcasts website, as a list of Podcast classes
```python
>>> pocket = pocketcasts.Pocketcasts('user@email.com')
>>> print(pocket.get_trending())
[<class 'pocketcasts.podcast.Podcast'>, ...]
```
partypi 0.1.4
Party Pi is a computer vision emotion detection game with OpenCV and Microsoft Oxford Emotion API.
License: MIT
Keywords: OpenCV,cv2,emotion,detection,game

Party Pi
########

Emotion detection game for parties using computer vision.

Description
===========

Interactive game that prompts players to show an emotion (eg, "Show surprise"), and displays the winner. Can be used on raspberry pi with piCamera module.

Demo
====

`Screenshot <https://www.partypi.net/img/demo.png>`_
   
Install
=======
Install OpenCV3 with python3 bindings

Get Authorization Keys
======================

`Microsoft/Oxford Emotion API Reference <https://dev.projectoxford.ai/docs/services/5639d931ca73072154c1ce89>`_

- Place your subscription key in config.json: "Ocp-Apim-Subscription-Key: {subscription key}"

`Imgur API Reference <https://api.imgur.com/endpoints>`_

Getting Started
===============

Clone repository:

.. code-block:: python

    git clone https://github.com/JustinShenk/party-pi.git
    cd party-pi

Install dependencies:

.. code-block:: python

    pip install -r requirements.txt

Change ``config.json.example`` to ``config.json`` and add your Emotion_API and Imgur keys. Then start the game:

.. code-block:: python

    python main.py

Additional (optional)  arguments: ``--picam`` for piCamera module and ``--resolution`` to specify resolution.

Select Easy or Hard Mode (left or right arrow keys).

TODO
====
- Fix alignment of analyzing text
- Redesign mode selection boxes
- Add PyQT for font and sizing support
- Add Python 2 compatibility
- Add camera detection feature to recognize if raspberry pi

Author
======

`Justin Shenk`_ (`@JustinShenk`_) created Party Pi.

.. _Justin Shenk: https://linkedin.com/in/JustinShenk/
.. _@JustinShenk: https://github.com/JustinShenk/

License
=======

`MIT <https://github.com/JustinShenk/party-pi/blob/master/LICENSE>`_
mono-require 0.1.1
lock the file when access local resource
License: MIT
Keywords: lock when access local file

mono-require
============
.. image:: https://travis-ci.org/yeyuexia/mono-require.svg?branch=master
   :target: https://travis-ci.org/yeyuexia/mono-require

Use `mono-require` to access local resource for avoid read/write conflict.

Requirements
------------
* Python 3.6+
* Works on Linux, Windows, Mac OSX, BSD

Install
-------

pip::

  pip install mono-require

Usage
-----

Use `require` to access local resource.

.. code-block::python
    from monorequire import require

    with require("resource") as f:
        f.write("some")


`require` support all arguments except `closefd` and `opener` of built-in method `open` (https://docs.python.org/3/library/functions.html?highlight=open#open).

And `require` have three more arguments with default value:

* `timeout=1` and `delay=0.001`. When require a resource has been used, `require` could waiting till timeout and throw `LockTimeoutException`.
* `lock_path="."` to set the lock file location. By default we create lock file in resource directory.