semvec/pypi-packages huggingface dataset:
rpi-mail-cam-capture 0.0.1
You can capture through raspberry pi camera and mail the image

# Example Package

This is a simple example package. You can use
[Github-flavored Markdown](https://github.com/ultimus11/email_via_raspberry_pi)
to write your content.

to learn how to use the package visit https://github.com/ultimus11/email_via_raspberry_pi
see the example t.py listed in repository
drf-optional-fields 0.0.1
A django-restframework extension to dynamically specify the returned field.
Requires Python: >=3.6

drf-optional-fields
=============
A django-restframework extension to dynamically specify the returned field.


Requirements
------------

* **Python**: 3.6, 3.7
* **Django**: 2.0, 2.1, 2.2
* **DRF**: 3.9

Installation
------------

Install using pip:

    pip install django-queryset-exts
    pip install drf-optional-fields

Example:
------------
Use ``fields`` in query parameters to specify the returned field.
For example, ``fields=id,name,info{city{name},location}`` will return a dict like below: 
```
{
    "id": "id",
    "name": "A",
    "info": {
        "city": {
            "name": "city name"
        },
        "location": "localtion"
    }
}
```

Obviously, it refers to [facebook field](https://developers.facebook.com/docs/graph-api/using-graph-api/#fields)

Usage
------------

First, make your serializer class inherit from ``drf_optional_fields.serializers.OptionalFieldsMixin``

```Python
from django.db.models.query import Prefetch
from rest_framework import serializers

from django_queryset_exts.query import SelectAPIRelated
from drf_optional_fields.serializers import OptionalFieldsMixin


class MyModelsOptionalFieldsSerializer(OptionalFieldsMixin, serializers.ModelSerializer):
    class Meta:
        models = MyModel
        fields = ('field1', 'field2', 'foreign_key_field', 'reverse_many_to_one_field', 'remote_uuid_field')

        # use those configs to reduce queries to db 
        fields_related_query = {
            'foreign_key_field': ('foreign_key_field',),  # use foreign key field name directly
            'remote_uuid_field': (SelectAPIRelated('remote_uuid_field'),),
            'reverse_many_to_one_field': (Prefetch('reverse_many_to_one_field'))
        }

        default_fields = deepcopy(fields)  # change this line to specify default fields, for example: default_fields = ('field1', )

```

Then, make your api view inherit from ``drf_optional_fields.views.OptionalFieldViewMixin``

```Python
from rest_framework.generics import ListAPIView
from drf_optional_fields.views import OptionalFieldViewMixin

class MyModelListView(OptionalFieldViewMixin, ListAPIView):
    queryset = MyModel.objects.filter(is_deleted=False)
    serializer_class = MyModelsOptionalFieldsSerializer

```
It's done.
xmind2xls 1.0.4
Xmind2Xlsx基于Python实现，提供了一个高效测试用例设计的解决方案！
Requires Python: >=3.0, <4

# XMind2Xls

> **XMind2Xls** 工具，提供了从思维导图格式转换成Excel格式的解决方案


### 一、背景

软件测试过程中，最重要、最核心就是测试用例的设计。
而实施情况并非如此，实际上在测试活动过程中书写测试用例占用了大量的重复性劳动时间。特别是在敏捷开发模式下，以下的痛点暴露的尤为明显。

- 1、将大量的测试用例组织到Excel内进行案例评审，会带来内容冗余，组织层级不立体，过程繁琐，更新效率低，对参加评审的与会人员造成视觉疲劳...
- 2、快速迭代周期内，书写测试用例时间严重挤占了案例设计的时间。造成案例覆盖率不足，遗漏；
- 3、需求变更后，excel内的案例更新不完整，不利于集成测试的开展；
- 4、...

基于这些情况，现在越来越多公司选择使用**思维导图**这种高效的生产力工具进行用例设计，特别是敏捷开发团队。

但是与此同时，使用思维导图进行测试用例设计的过程中也带来不少问题：
- 1、测试用例难以量化管理、执行情况难以统计；
- 2、测试用例执行结果与BUG管理系统难以打通；
- 3、团队成员用思维导图设计用例的风格各异，沟通成本巨大；
- 4、...

### 二、设计思路
综合以上的优劣情况，我们能不能将xmind 和 excel 结合起来。在提升效率的同时，兼顾到实用的效果

## 我的设计思路是这样的：
![flowchart](https://github.com/taoyu0429/xmid2excel/blob/master/flowchart.png?raw=true)




### 三、环境搭建

#### 1、安装python
https://jingyan.baidu.com/article/25648fc19f61829191fd00d4.html

#### 2、运行命令行安装xmind2xls
```
pip3 install xmind2xls
```

### 四、使用方式

#### 1、新建模版
![xmind-demo](https://github.com/taoyu0429/xmid2excel/blob/master/xmind-demo.png?raw=true)

#### 2、编辑模版

#### 3、运行命令行
```
 xmind2xls [path_to_xmind_file] [-xlsx]
```
#### 4、在模版同目录下查看excel结果
![xmind-demo](https://github.com/taoyu0429/xmid2excel/blob/master/result-demo.png?raw=true)


### 五、版本升级
```
pip3 install -U xmind2xls

```
### 六、致谢
**XMind2Xls** 工具的产生，受益于以下两个开源项目，并在此基础上扩展、优化。

- 1、**[XMind](https://github.com/zhuifengshen/xmind)**：XMind思维导图创建、解析、更新的一站式解决方案(Python实现)！  
- 2、**[xmind2testcase](https://github.com/zhuifengshen/xmind2testcase)**：践行了XMind通用测试用例模板设计思路，同时提供了Web转换工具！

### 七、持续集成部署
```
为了应对后期项目的维护和持续优化，本项目引入了travis+github的持续集成部署模式
每次本地代码打上tag推送到github仓库后，travis会自动触发构建、测试、部署到pypi等操作
欢迎有志于持续改进测试流程和提高效率的小伙伴为本项目添砖加瓦
```
### LICENSE
```
MIT License
Copyright (c) 2019 taoyu
Copyright (c) 2019 Devin https://zhangchuzhao.site
Copyright (c) 2017 Toby Qin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
exonum-precheck 0.1.5
Exonum precheck deployment script
Requires Python: >=3.4

# Exonum deployment precheck script

`exonum_precheck` is a script which verifies that all the expected checks are OK for code you're about to push.
It is supposed that you'll run this script before every push at the [Exonum](https://github.com/exonum/exonum) repository.

This command loads `.travis.yml` and performs all the checks (tests and lints) exactly as they will be performed on the CI server.
Also if installed rustc version doesn't match the one in the travis config, a warning will be shown.

## Prerequirements

You should have `clippy`, `rustfmt`, `deadlinks`, `cspell` and `md` installed:

```sh
cargo install cargo-deadlinks
rustup component add rustfmt
rustup component add clippy
npm install cspell
npm install md
```

## Example

```sh
cd exonum_folder
python3 -m exonum_precheck
```

Example output (actually it's colored):
```sh
 Tests results:
 Error: cargo test --all
 Success: cargo run -p exonum --example explorer
 Success: cargo run -p exonum-testkit --example timestamping
 Success: cargo run -p exonum-time --example simple_service
 Lints results:
 Success: npm run cspell
 Success: npm run md
 Success: cargo clippy --all --benches --features "long_benchmarks"
 Success: cargo fmt --all -- --check
 Success: cargo clean --doc
 Success: cargo doc --no-deps
 Success: mkdir -p target/doc/exonum_configuration
 Success: mkdir -p target/std/string
 Success: touch target/std/string/struct.String.html
 Success: touch target/std/primitive.usize.html
 Success: touch target/doc/enum.HashTag.html
 Success: cargo deadlinks --dir target/doc
```

You can also specify jobs to run manually.

```sh
python3 -m exonum_precheck --jobs linux-tests sample-job lints tests
```

Those jobs will be executed instead of default ones ("unit-test", "lints") in the provided order.

This maybe helpful if you want to use this script on another repository.

## Using as a git hook

This script can be also used as a prepush hook:
```sh
echo '#!/bin/sh\npython3 -m exonum_precheck || exit 1\n' > ./exonum_folder/.git/hooks/pre-push
chmod +x ./exonum_folder/.git/hooks/pre-push
```

With that hook you won't be able to push unless all the expected CI checks are passed.
However, be careful: if you're going to work on a work-in-progress branch which'll have broken tests, you'll have to temporary remove the hook.

Example of more advanced hook:

```sh
#!/bin/sh
npm install && git checkout package-lock.json package.json

export RUST_BACKTRACE=0
export RUST_LOG=off
export RUST_TEST_THREADS=4
export CARGO_BUILD_JOBS=4
ulimit -n 2048

python3 -m exonum_precheck || exit 1
```

## Installing

Install and update using [pip](https://pip.pypa.io/en/stable/quickstart/):

```
pip install -U exonum_precheck
```

## LICENSE

`exonum_precheck` is licensed under the MIT License.
See [LICENSE](LICENSE) for details.