semvec/pypi-packages huggingface dataset:
yiffparty 0.06
Simple tool to get images from yiff-party.com
License: MIT
Keywords: yiff,furry,porn,gay,straight,lesbian

yiffparty!
===========

*simple code for fetching yiff images from yiff-party.com*
----------------------------------------------------------

by `Icy\_\_Flames <https://www.reddit.com/user/Icy__Flames>`__

(Works better on Windows, on Linux it is unreliable)

Features
--------

-  Return random yiff image
-  Return newest yiff images in any category
   (gay/straight/animated/anthro/feral/main)
-  Iterate over submissions live as they are uploaded (new images are
   currently uploaded roughly every five minutes)

Usage 
=====

*pip install yiffparty*

.. code:: python

    from yiffparty import horni


    horni.help() # prints a brief overview like this


    print(horni.randomIMG())
    # result will be a random image url


    print(horni.newest("gay"))
    # result will be the newsest image url in the 'gay' category.

    #You can input any of the six categories or 'main' for the main page which includes all categories
    #(gay/lesbian/straight/animated/anthro/feral/main)


    for image in horni.yiff(50,"anthro"):
      print(image)

    #>this will return 50 images in the anthro category


    for image in horni.stream("main"):
      print(image)

    #>This loop will run forever, printing out the images urls as they are uploaded to the site.
imp-grpc-client 0.0.2
An rpc client for Impervious.AI (lightning network L3)
License: MIT
Requires Python: >3.6

# impgrpc
A python grpc client for Impervious Network ⚡⚡⚡

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 3.6+
- Working LND lightning node, take note of its ip address.
- Copy your admin.macaroon and tls.cert files from your node to a directoy on your machine. 


## Installation
```bash
pip install imp-grpc-client
```



### Environment Variables

These environment variables are only used when testing node connectivity and/or correct module installation from the command line. This library is primarily used through Python scripting.

```bash
export CRED_PATH=/path/to/macaroon/and/tls/cert
export LND_NODE_IP=192.168.1.xx
```

## 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
```

### 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'
)
```

## Generating LND Proto Files
```bash
virtualenv lnd
source lnd/bin/activate
pip install grpcio grpcio-tools googleapis-common-protos sh
git clone https://github.com/lightningnetwork/lnd.git
mkdir genprotos
git clone https://github.com/googleapis/googleapis.git
```


```python
from pathlib import Path
import shutil
import sh

for proto in list(Path("../imp-releases/proto").rglob("*.proto")):
    shutil.copy(proto, Path.cwd().joinpath("impgrpc/compiled"))

protos = list(Path(".").joinpath("impgrpc/compiled").glob("**/*.proto"))

args = [
    "-m",
    "grpc_tools.protoc",
    # "--proto_path=../imp-releases/proto/:.",
    # "--proto_path=../imp-releases/proto/google/api:.",
    # "--proto_path=../imp-releases/proto/protoc-gen-openapiv2/options:.",
    # "--proto_path=impgrpc/compiled/:.",
    # "--proto_path=impgrpc/compiled/protoc-gen-openapiv2/:.",
    "--proto_path=impgrpc/compiled/",
    # "--proto_path=.:.",
    "--python_out=impgrpc/compiled",
    "--grpc_python_out=impgrpc/compiled",
]

for protofile in protos:
        args.append(str(protofile) )

# Generate the compiled protofiles
sh.python(args)
```

Last Step:
In File: verrpc_pb2_grpc.py
Change:
import verrpc_pb2 as verrpc__pb2
To:
from lndgrpc import verrpc_pb2 as verrpc__pb2

## Deploy to Test-PyPi
```bash
poetry build
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
```