semvec/pypi-packages huggingface dataset:
beauty 0.3.2
convenient API to download beauty picture.
License: MIT

beauty
======

`beauty <https://github.com/zhongjiajie/beauty>`__\ 是图片网站\ `55156图库-高清套图 <http://www.55156.com/gaoqingtaotu/>`__\ 非官方的API。提供了更加清爽的套图浏览和下载接口，欢迎各位老司机使用，提issues或PR

安装依赖
--------

项目根目录运行

::

    pip install beauty

快速入门
--------

**以下命令均在项目根目录运行** ### 查看Usage及支持的套图类型

::

    beauty -h

-  **Usage**\ ：
   得知项目主要有两个方法\ ``scan``\ 和\ ``download``\ ，其中\ ``scan``\ 是浏览指定种类和数量的封面图片（小图），\ ``download``\ 是下载指定种类和数量的套图（大图）。
-  **Options**\ ： 参数的关键字及对应的解释
-  **Arguments**\ ：
   目前支持的套图种类，为\ ``scan``\ 和\ ``download``\ 方法的必填项
-  如果提示\ ``'beauty' 不是内部或外部命令，也不是可运行的程序``\ ，请将\ ``$PYTHON/Scripts``\ 添加到环境变量

直接下载套图
~~~~~~~~~~~~

::

    # 下载秀人套图 默认数量为10 默认路径是./pic
    beauty download xiuren

    # 下载秀人套图 指定数量为15 
    beauty download xiuren -n 15

    # 下载秀人套图 指定路径为D:/
    beauty download xiuren -p D:/

完成后可在相应目录下看到下载结果

.. figure:: https://github.com/zhongjiajie/beauty/raw/master/support_file/beauty_download.png
   :alt: image

   image

先浏览小图，根据个人喜好（套图质量）下载对应的大图
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    # 浏览秀人套图 默认数量为10 默认路径是./pic/scan
    beauty scan xiuren

    # 浏览秀人套图 指定数量为15
    beauty scan xiuren -n 15

    # 浏览秀人套图 指定路径为D:/scan scan方法默认的图片会下载到指定（默认目录）的scan文件夹
    beauty download xiuren -p D:/

找到浏览套图文件夹\ ``scan``\ ，打开图片编辑器查看\ ``scan``\ 文件夹的图片

.. figure:: https://github.com/zhongjiajie/beauty/raw/master/support_file/beauty_scan.png
   :alt: image

   image

从上图中找到要完整下载的套图，运行下载命令

::

    # -n参数要和scan方法的参数一样 -f参数列表内部不要留空格
    beauty download xiuren -n 10 -f [204774,204775,204832]

完成后可在相应目录下看到下载结果

.. figure:: https://github.com/zhongjiajie/beauty/raw/master/support_file/beauty_scan_download.png
   :alt: image

   image

注意事项
--------

-  项目开发环境是Python2.7，如果发现项目不兼容的欢迎提\ `issues <https://github.com/zhongjiajie/beauty/issues/new>`__

TODO
----

-  [x] 提供先浏览后选择下载的功能 finish at 20170827
-  [ ] 下载图片失败后重试
-  [ ] 重试失败后删除失效的图片，或者在单独的文件夹中备注下载失败的信息

Change Log
----------

-  20171017: 制作成pip安装包提供cli命令接口
-  20170828:
   重写了repository，重命名为\ **beauty**\ ，提供了更加人性化的api方法
-  20160220: 提供了re版本和BeautifulSoup版本的提取方法
php2json 0.2
Convert PHP serializer strings to JSON
License: MIT

php2json
========

.. image:: https://travis-ci.org/mbachry/php2json.svg?branch=master
    :alt: Build status
    :target: https://travis-ci.org/mbachry/php2json

A small library that aims to provide a fast way of decoding PHP
serialization format. Use it if you need to migrate large amount of
PHP data and performance is essential.

The library provides only one function::

    >>> import php2json
    >>> php2json.php2json(b's:3:"foo";')
    b'"foo"'

It's goal is to convert PHP serializer string into JSON string as fast
as possible. The assumption is that JSON decoders (such as standard
json module or `ujson`_) are much better optimized than
`phpserialize`_.

.. _ujson: https://pypi.python.org/pypi/ujson
.. _phpserialize: https://pypi.python.org/pypi/phpserialize/

Here's a simple benchmark where I pit phpserialize against php2json
combined with ujson and json::

    phpserialize: 6.60s
    php2json+ujson: 0.15s
    php2json+json: 0.19s
    speedup (ujson): 4337%
    speedup (json): 3485%

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

Install with::

    pip install php2json

Tests
-----

Run test with::

    pip install tox
    make clean
    tox .

Benchmark
---------

Run benchmark with::

    pip install -r requirements-test.txt
    make bench

Limitations
-----------

Few limitations apply:

* only deserialization is possible

* PHP objects are not supported

* behaviour is undefined in presence of unicode strings

* input data must adhere to JSON standards, most notably: array keys
  must be strings or values easily convertible to strings (such as
  integers)
exptools 0.3.1
Experimental tools of the Knapen lab at the Vrije Universiteit
License: MIT

This file requires editing
==========================

Note to the author: Please add something informative to this README *before*
releasing your software, as `a little documentation goes a long way`_.  Both
README.rst (this file) and NEWS.txt (release notes) will be included in your
package metadata which gets displayed in the PyPI page for your project.

You can take a look at the README.txt of other projects, such as repoze.bfg
(http://bfg.repoze.org/trac/browser/trunk/README.txt) for some ideas.

.. _`a little documentation goes a long way`: http://www.martinaspeli.net/articles/a-little-documentation-goes-a-long-way

Credits
-------

- `Distribute`_
- `Buildout`_
- `modern-package-template`_

.. _Buildout: http://www.buildout.org/
.. _Distribute: http://pypi.python.org/pypi/distribute
.. _`modern-package-template`: http://pypi.python.org/pypi/modern-package-template