semvec/pypi-packages huggingface dataset:
lndgrpc 0.2.0
An rpc client for LND (lightning network deamon)
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4
Keywords: lnd,lightning-network,bitcoin,grpc,rpc,async

# lndgrpc
A python grpc client for LND (Lightning Network Daemon) ⚡⚡⚡

This is a wrapper around the default grpc interface that handles setting up credentials (including macaroons). An async client is also available to do fun async stuff like listening for invoices in the background. 

## Dependencies
Python 2.7, 3.4+
Note: the async client is only available for Python 3.5+

## Installation
```bash
$ pip install lndgrpc
```

## Basic Usage
The api mirrors the underlying lnd grpc api (http://api.lightning.community/) but methods will be in pep8 style. ie. `.GetInfo()` becomes `.get_info()`.

```python
from lndgrpc import LNDClient

# pass in the ip-address with RPC port and network ('mainnet', 'testnet', 'simnet')
# the client defaults to 127.0.0.1:10009 and mainnet if no args provided
lnd = LNDClient("127.0.0.1:10009", network='simnet')

lnd.get_info()

print('Listening for invoices...')
for invoice in lnd.subscribe_invoices():
    print(invoice)
```

### Async

```python
import asyncio
from lndgrpc import AsyncLNDClient

async_lnd = AsyncLNDClient()

async def subscribe_invoices():
    print('Listening for invoices...')
    async for invoice in async_lnd.subscribe_invoices():
        print(invoice)

async def get_info():
    while True:
        info = await async_lnd.get_info()
        print(info)
        await asyncio.sleep(5)

async def run():
    coros = [subscribe_invoices(), get_info()]
    await asyncio.gather(*coros)

loop = asyncio.get_event_loop()
loop.run_until_complete(run())
```

### Specifying Macaroon/Cert files
By default the client will attempt to lookup the `readonly.macaron` and `tls.cert` files in the mainnet directory. 
However if you want to specify a different macaroon or different path you can pass in the filepath explicitly.

```python
lnd = LNDClient(macaroon_filepath='~/.lnd/invoice.macaroon', cert_filepath='path/to/tls.cert')
```

#### Admin macaroon
Use the admin macaroon to perform write actions (ie. creating invoices, creating new addresses)

```python
lnd = LNDClient(admin=True)
lnd.add_invoice(2000)
```
12306-booking 0.1.18
12306 booking assistant
License: MIT

# 12306-booking
12306订票工具

## 12306booking vs 12306 vs 第三方订票平台

为什么要写一个订票工具？

1. 12306订票体验太差。验证码识别太逆天，人眼无法识别。刷新、刷新、刷新，刷到手疼。票就在那里，你就是定不上
2. 第三方订票平台太流氓。收集用户数据，还收不可接受的手续费（美其名曰技术服务费，其实就是 CPU和 RAM），最恐怖的是还要将用户数据拿到市场交易

解决了什么问题，有什么优点？
1. 两次扫码就完成了登录、查询余票、下单到支付的所有流程
2. 本地运行，不收集任何用户数据，不用输入用户密码，不用担心任何数据泄露、交易行为
3. 完全开源，没有任何黑箱操作
4. 刷新、订票流程快，先人一步抢到票
5. 支持多车次、多席别、多乘客抢票

## 使用说明

安装
```sh
pip install 12306-booking -U --user;
```
>如果使用MacOS，使用虚拟环境安装`virtualenv venv; source venv/bin/activate; pip install 12306-booking -U`

订票
```sh
12306-booking --train-date 2020-01-01 --train-names K571 --seat-types 硬卧 --from-station 北京 --to-station 麻城 --pay-channel 微信 --passengers 任正非,王石
```
> 多车次、多席别、多乘客之间用英文的','分割

## 订票流程

![订票流程](https://processon.com/chart_image/5c372ce1e4b08a7683a2798f.png)

## 订票状态机

![订票状态机](http://processon.com/chart_image/5c371a11e4b0641c83d6eb3f.png)


## 赞助

如果有帮助到你订到票，请扫描二维码赞赏我们，你的鼓励是我们持续改进优化的动力。

<img src="https://share-static.oss-cn-hangzhou.aliyuncs.com/wx/%E5%BE%AE%E4%BF%A1%E8%B5%9E%E8%B5%8F.jpg"  width="50%" height="50%" />
py-search 2.8.0
A library of uninformed, informed and optimization search algorithms
License: MIT

.. image:: https://travis-ci.com/cmaclell/py_search.svg?branch=master
   :target: https://travis-ci.com/cmaclell/py_search
.. image:: https://coveralls.io/repos/github/cmaclell/py_search/badge.svg?branch=master
   :target: https://coveralls.io/github/cmaclell/py_search?branch=master

=========
Py Search
=========

This is a Python library of algorithms that implements various search
algorithms written by Christopher MacLellan (https://chrismaclellan.com).
In particular, there are uninformed, informed, and optimization techniques
implemented with a standard interface.

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

You can install this software using pip::

    pip install -U py_search

You can install the latest version of the code directly from github::

    pip install -U git+https://github.com/cmaclell/py_search@master

Important Links
===============

- Source code: `<https://github.com/cmaclell/py_search>`_
- Documentation: `<http://py_search.readthedocs.org>`_
torchfuel 0.1.3
Library build on top of pytorch to fuel productivity
License: MIT

# torchfuel
[![Build Status](https://travis-ci.org/vturrisi/torchfuel.svg?branch=master)](https://travis-ci.org/vturrisi/torchfuel)
[![codecov](https://codecov.io/gh/vturrisi/torchfuel/branch/master/graph/badge.svg)](https://codecov.io/gh/vturrisi/torchfuel)

Build on top of pytorch to fuel productivity.

# Features

- Generic Trainer
- Classification Trainer (with cross-entropy loss)
- MSE Trainer
- Additional utility layers
- Better dataloaders (currently only for image datasets)

# Classification Example

```python
import os
import time
from collections import namedtuple

import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
from torchvision import datasets, models, transforms

from torchfuel.data_loaders.image import ImageDataLoader
from torchfuel.trainers.classification import ClassificationTrainer
from torchfuel.transforms.noise import DropPixelNoiser


dl = ImageDataLoader(
    train_data_folder='imgs/train',
    eval_data_folder='imgs/eval',
    pil_transformations=[transforms.RandomHorizontalFlip()]
    tensor_transformations=[DropPixelNoiser()],
    batch_size=64,
    imagenet_format=True,
)

train_dataloader, eval_dataloader, n_classes = dl.prepare()

device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')

model = Model(...).to(device)

optimiser = optim.SGD(model.parameters(), lr=0.01, momentum=0.9)

scheduler = optim.lr_scheduler.ReduceLROnPlateau(optimiser, 'min', patience=20)

trainer = ClassificationTrainer(device, model, optimiser, scheduler)

fitted_model = trainer.fit(epochs, train_dataloader, eval_dataloader)

```

# How to install
Clone repository and run:
```bash
pip install .
```

Optionally (not up to date):
```bash
pip install torchfuel
```