semvec/pypi-packages huggingface dataset:
mPython-bluebit 0.1.7
blue:bit modules library for mPython(blue:bit掌控板驱动库)
License: MIT

# blue:bit套装 掌控板驱动库
</br>

![extboard](http://wiki.labplus.cn/images/0/07/Bluebit套件1.png)

</br>
</br>

该repository提供bluebit套件的掌控板库.

**blue:bit** http://wiki.labplus.cn/index.php?title=Bluebit

## 库的安装方法

可通过以下任一方法进行安装。
1. 将项目中的`bluebit.py` 拷到掌控板文件系统上
2. 在掌控板REPL界面中，使用upip安装，步骤如下：
    * 前置条件需要掌控板连接网络
    * 导入upip模块，执行`import upip`
    * 执行`upip.install('mPython-bluebit'）

```python
>>> import upip
>>> upip.install('mPython-bluebit')
```


## API 说明

详见:https://mpython-lib.readthedocs.io/

## 执照

所有代码均在MIT许可下发布。
buzzsprout 0.22
Buzzsprout Podcasts Python class
License: MIT

A Python Buzzsprout class.
=======
## Prerequisites
* Python 3.7 and above
* A Buzzsprout account (and your API token)

## Summary
Provide an API Token and a Profile ID, to create a Buzzsprout object containing all episodes for that profile matching the given parameters. 

## Installation
```
pip install buzzsprout
```

## Getting started
Instantiate the Buzzsprout class.
```
$ from buzzsprout import Buzzsprout
$ buzzsprout = Buzzsprout()
```

You then pass your profile id and token into the **get** method. By default, this will pull all episodes:
```
$ buzzsprout.get('profileid='PROFILEID', token='TOKEN')
```

## Attributes
- title
- audio_url
- episode_url
- description
- summary
- artist
- tags
- published_at
- episode_number
- season_number

## Filtering
You can currently filter by:
- Date
- Tag
- Random

(and these can be used in combination).

To return only episodes newer than 2019-03-01
```
$ recent_episodes = buzzsprout.get(profileid='PROFILEID', token='TOKEN', datefilter='2019-03-01')
```
To return only episodes that contain the tag "Interviews"
```
$ interview_episodes = buzzsprout.get(profileid='PROFILEID', token='TOKEN', tagfilter='Interviews')
```
To return one random episode from the results, use the random switch
```
$ random_episode = buzzsprout.get(profileid='PROFILEID', token='TOKEN', random=True)
```

## Things to note
Weirdly, Buzzsprout's API does not return an episode URL. I have therefore implemented a *slightly* hacky solution which modifies the audio URL.
By default this URL will not use any custom URL's you have set. I have therefore implemented a workaround. If you pass in your custom URL, the **episode_url** property will be updated:
```
$ custom_url_episode = buzzsprout.get(profileid='PROFILEID', token='TOKEN', random=True, customurl='subdomain.example.com')
```
reusegen 0.1.2
Cache generator's results and reuse them
License: MIT

# reusegen

![PyPI](https://img.shields.io/pypi/v/reusegen.svg)
![Travis (.org)](https://img.shields.io/travis/whoiscc/reusegen.svg)

Generators are exhausted during iteration:

```Python
xs = (x * x for x in range(10))
ys = [x + 1 for x in xs]  # [1, 2, ...]
zs = [x + 2 for x in xs]  # []
```

Sometimes this is not expected. With reusegen, you can reuse generators like lists:

```Python
from reusegen import reuse
xs = reuse(x * x for x in range(10))
ys = [x + 1 for x in xs]
zs = [x + 1 for x in xs]
print(ys == zs)  # True
```

And it also works as decorator:

```Python
@reuse
def double(xs):
  for x in xs:
    yield x * 2
```

By default, the results of generator is cached. You could make it cacheless to save memory as original generator:

```Python
xs = reuse(x * x for x in range(10), cache=False)
```

The generator will be executed multiple times.


## TODO

Add cacheless version of `reuse`.