semvec/pypi-packages huggingface dataset:
django-sendpdf 2.0.1
Generate PDF from html templates and print, view or send via email
License: MIT License
Keywords: django,PDF

========
Sendpdf
========

Sendpdf is a simple Django app that can be used to generate PDF documents from html templates.

It can handle images and css very well. The generated PDF can then be displayed in the browser for printing and saving.

Alternatively, one can send the PDF to one or many email addresses.

Has been tested with Django 3+. Versions prior to 2.0.0 has been tested with Django==1.9.

Detailed documentation is in the `official page <http://django-sendpdf.readthedocs.io/en/latest>`_.

Checkout the latest code in the repo `wanderijames/django-sendpdf <https://github.com/wanderijames/django-sendpdf>`_
and use docker and docker compose to test its functionality.

Quick start
--------------

1. Install django-sendpdf:

.. code-block:: bash

  $ pip install django-sendpdf

2. Install wkhtmltopdf:

* Debian/Ubuntu:

.. code-block:: bash

  $ sudo apt-get install wkhtmltopdf

**Warning!** Version in debian/ubuntu repos have reduced functionality (because it compiled without the wkhtmltopdf QT patches), such as adding outlines, headers, footers, TOC etc. To use this options you should install static binary from `wkhtmltopdf <http://wkhtmltopdf.org/>`_ site or you can use `this script <https://github.com/JazzCore/python-pdfkit/blob/master/travis/before-script.sh>`_.

* Windows and other options: check wkhtmltopdf `homepage <http://wkhtmltopdf.org/>`_ for binary installers


3. Add "sendpdf" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = (
        ...
        'sendpdf',
    )

4. In your Django settings add the location of wkhtmltopdf, default location is **/usr/local/bin/wkhtmltox/bin/wkhtmltopdf**, like this::

    WKTHMLTOPDF_PATH = "/usr/local/bin/wkhtmltopdf"

4. Include the sendpdf URLconf in your project urls.py like this::

    path(r'^sendpdf/', include('sendpdf.urls', namespace='sendpdf')),

5. Run `python manage.py runserver` to see some demos:

    `Template example <http://127.0.0.1:8000/sendpdf/>`_

    `View PDF inline <http://127.0.0.1:8000/sendpdf/show/>`_

    `Dewnload PDF <http://127.0.0.1:8000/sendpdf/download/>`_

    `Send PDF <http://127.0.0.1:8000/sendpdf/send/>`_
yundama 0.1.5
使用 斐斐打码 对验证码进行打码
License: MIT License
Keywords: dama 打码 云打码 斐斐

## 前言
本来是想找一个python 识别二维码的。可是网上网上找到的教程都是教人怎么自己写一个用例去请求打码请求，或是自己找第三方库实现。
显然这都不是我想要的。我想要的就是拿来即用。

上诉两种方案其一需要自己写，代码复用率不高，或是直接从平台复制用例对代码侵入比较大。其二的识别率不高。

## 解决痛点

1. `pip` 直接安装无需关注实现细节
2. 保持更新。稳定可用
3. 识别率搞
4. 识别结果记录log 识别失败可退款

## todo

1. 接入其他打码平台

## 斐斐云打码

> 使用 斐斐打码 对验证码进行打码。一次封装简单使用

## 测试账号

PD账号:119208

PD秘钥:gfPmvlxPWdGEplGZtr3aIuaWP1/fyZW3


[打码平台地址](http://www.fateadm.com/)

## 如何使用

[官方文档地址](http://docs.fateadm.com/web/#/1?page_id=1)

测试用例 `test/test.py`

### 引入

```
pip install yundama
```

### 实例化
```
from yundama.Yundama import Yundama
yundama = Yundama(app_id="你的pd_id", app_key="你的pd_key")
```

### 查询余额

```
yundama.get_balance()
```

### 提交需要验证的图片

[类型说明](http://docs.fateadm.com/web/#/1?page_id=36)
```
img = open('../data/image.png', 'rb')
yundama.get_code_result(img.read(), '验证码类型')
```
### 退款

```
yundama.refund('订单id')
```
### 充值

```
yundama.recharge('充值卡号', '充值卡密')
```