semvec/pypi-packages huggingface dataset:
pip-update 0.4.1
A current and update package list of environment extractor.
License: MIT License
Keywords: upgradable packages extractor

* This program is an **pip list** warper to generate two python packages list files in **pip-update** folder.
* These files are upgradable packages list in environment.
* One of files is current+today.txt that is current version list.
* Anther of files is update.txt that is upgradable version list. 
* You can use "pip install -r .pip-update/update.txt" to upgrade your packages or recovery by anther file.

**This program require pip>9.0.1**

Installation
============

To install pip-update from PyPI:

    $ pip install pip-update

Usage
=====

Options::

    usage: pip-update [-h] [-v]

    A current and update package list of environment extractor.

    optional arguments:
      -h, --help            show this help message and exit
      -v, --version         show version number and exit

這程式是一個 **pip list** 的包裹器，以來自虛擬環境中可升級的python 套件版本列表的資料，在**pip-update**資料夾內產生二個檔案, current+today.txt是當前的版本號列表，update.txt則是可升級的版本號列表。
然後我們可以用pip install -r 來進行升級或還原python 虛擬環境。  
**本程式需pip>9.0.1**
ramjet 1.8.1
Scripts Manager
License: MIT License
Keywords: aiohttp

Ramjet
===

[![versions](https://img.shields.io/badge/version-v1.8.1-blue.svg)]()
[![PyPI version](https://badge.fury.io/py/ramjet.svg)](https://badge.fury.io/py/ramjet)
[![versions](https://img.shields.io/badge/license-MIT/Apache-blue.svg)]()
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

> わが征くは星の大海 —— Yang Wen-li

| ![](http://7xjvpy.dl1.z0.glb.clouddn.com/ramjet.jpg) |
|:--:|
| 后台脚本的引擎 |


## Links

  - [Documents](http://laisky.github.io/ramjet/)
  - [Github](https://github.com/Laisky/ramjet)
  - [PyPI](https://pypi.python.org/pypi/ramjet)


## Install & Run

Need Python3.5.x.

```sh
# Install from pypi

$ pip install ramjet
```

```sh
# Install from source

$ python setup.py install
$ python -m ramjet [--debug=true]
```


## Description

基于 asyncio 和 consurrent.futures 运行脚本（`tasks`）。

每一个 task 都需要实现接口 `bind_task()`。

利用 `ioloop`、`thread_executor`、`process_executor` 自行实现运行逻辑。


## Demo

### 异步

```py
import random
import asyncio

from ramjet.engines import process_executor, thread_executor, ioloop


def bind_task():
    # 将任务添加进事件循环中
    asyncio.ensure_future(async_task())


async def async_task():
    await asyncio.sleep(3)
    for i in range(10):
        asyncio.ensure_future(async_child_task(i))


async def async_child_task(n):
    await asyncio.sleep(random.random())
    print('child task {} ok!'.format(n))

```

### 多线程 & 多进程

需要注意子进程没法回收，所以请确保 task 可以很好的结束。

```py
from ramjet.engines import process_executor, thread_executor, ioloop


def bind_task():
    # 多线程
    thread_executor.submit(task, your_arguments)
    # 多进程
    process_executor.submit(task, your_arguments)


def task(*args, **kw):
    pass

```

### 定时任务

```py
from ramjet.engines import process_executor, thread_executor, ioloop


def bind_task():
    delay = 3600
    ioloop.call_later(delay, task, your_auguments)


def task(*args, **kw):
    # 可以在 task 内设置下一次执行的时间
    # ioloop.call_later(delay, task, *args, **kw)
```

### HTTP

```py
from aiohttp import web

from ramjet.settings import logger


logger = logger.getChild('tasks.web_demo')


def bind_task():
    logger.info("run web_demo")


def bind_handle(add_route):
    add_route('/', DemoHandle)


class DemoHandle(web.View):

    async def get(self):
        return web.Response(text="New hope")
```

## Versions

[更新日志](https://github.com/Laisky/ramjet/blob/master/CHANGELOG.md)
django-lint2 0.1
A linter work with Django.
License: MIT License

# django-lint2 ✅

Lint2 is a linter work with Django.

## Requirements

Python 3+
Django
Flake8

## Installation

Install using pip!

```sh
pip install flake8 django-lint2
```

Add 'lint2' to your INSTALLED_APPS setting.

```py
INSTALLED_APPS = (
  ...,
  'lint2',
)
```

## Settings

Add options of flake8 to your settings.

See flake8 documents (http://flake8.pycqa.org/en/latest/user/configuration.html).

```py
LINT2 = {
  'max_line_length': 120,
}
```