semvec/pypi-packages huggingface dataset:
jupyterhub-feishu-oauthenticator 0.1.1
FeiShu OAuthenticator for Jupyterhub

# JupyterHub FeiShu OAuthenticator
JupyterHub FeiShu Authenticator is a FeiShu OAuth authenticator built on top of [OAuthenticator](https://github.com/jupyterhub/oauthenticator).

![](https://img.shields.io/badge/python-3.6%2B-blue.svg) ![](https://img.shields.io/badge/PYPI-0.1.1-orange.svg)

## Installing

jupyterhub-feishu-oauthenticator is a package available on PyPI and can be installed using pip or cloning the repository.

```
pip3 install jupyterhub-feishu-oauthenticator
```

or clone the repository

```
git clone https://github.com/tezignlab/jupyterhub-feishu-oauthenticator.git

cd jupyterhub-feishu-oauthenticator

pip3 install -e .
```


## Setup

**1、Create FeiShu App**

see feishu doc [Create a custom app](https://open.feishu.cn/document/uQjL04CN/ukzM04SOzQjL5MDN)


**2、Config Your FeiShu App**

"Security Settings" --> "Redirect URL" --> Add `http://[your-host]/hub/oauth_callback`

![](https://user-images.githubusercontent.com/595772/114486465-f675f200-9bdb-11eb-87cf-49eb1a13e60f.png)


**3、Edit JupyterHub Config File `jupyterhub_config.py`**

```python
from feishuoauthenticator import FeiShuOAuthenticator
c.JupyterHub.authenticator_class = FeiShuOAuthenticator

app_id = '[your-feishu-app-id]'
app_secret = '[your-feishu-app-secret]'
c.FeiShuOAuthenticator.authorize_url = 'https://open.feishu.cn/open-apis/authen/v1/index'
c.FeiShuOAuthenticator.extra_authorize_params = {
    'redirect_uri': 'http://[your-host]/hub/oauth_callback',
    'app_id': app_id
}
c.FeiShuOAuthenticator.client_id = app_id
c.FeiShuOAuthenticator.client_secret = app_secret
```


## Team

- [Anoyi](https://anoyi.com)
- [Qiang Ju](https://github.com/F1And)
- [Harry Wang](http://harrywang.me/)
python-reddcoinrpc 1.1
Enhanced version of python-jsonrpc for use with Reddcoin

==================
python-reddcoinrpc
==================

AuthServiceProxy is an improved version of python-jsonrpc.

It includes the following generic improvements:

* HTTP connections persist for the life of the AuthServiceProxy object
* sends protocol 'version', per JSON-RPC 1.1
* sends proper, incrementing 'id'
* uses standard Python json lib
* can optionally log all RPC calls and results
* JSON-2.0 batch support

It also includes the following reddcoin-specific details:

* sends Basic HTTP authentication headers
* parses all JSON numbers that look like floats as Decimal,
  and serializes Decimal values to JSON-RPC connections.
* read config from ~/.reddcoin/reddcoin.conf as default or specify a different path

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

1. change the first line of setup.py to point to the directory of your installation of python 2.*
2. run setup.py

Note: This will only install reddcoinrpc. If you also want to install jsonrpc to preserve
backwards compatibility, you have to replace 'reddcoinrpc' with 'jsonrpc' in setup.py and run it again.

Or simply install the library using pip::

    pip install python-reddcoinrpc

Example
=======
.. code:: python

    from reddcoinrpc.authproxy import AuthServiceProxy, JSONRPCException

    # rpc_user and rpc_password are set in the bitcoin.conf file
    rpc_connection = AuthServiceProxy()
    best_block_hash = rpc_connection.getbestblockhash()
    print(rpc_connection.getblock(best_block_hash))

    # batch support : print timestamps of blocks 0 to 99 in 2 RPC round-trips:
    commands = [ [ "getblockhash", height] for height in range(100) ]
    block_hashes = rpc_connection.batch_(commands)
    blocks = rpc_connection.batch_([ [ "getblock", h ] for h in block_hashes ])
    block_times = [ block["time"] for block in blocks ]
    print(block_times)

Logging all RPC calls to stderr
===============================
.. code:: python

    from reddcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
    import logging

    logging.basicConfig()
    logging.getLogger("ReddcoinRPC").setLevel(logging.DEBUG)

    rpc_connection = AuthServiceProxy()
    print(rpc_connection.getinfo())

Produces output on stderr like

    DEBUG:ReddcoinRPC:-1-> getinfo []
    DEBUG:ReddcoinRPC:<-1- {"connections": 8, ...etc }

Socket timeouts under heavy load
================================
Pass the timeout argument to prevent "socket timed out" exceptions:

.. code:: python

    rpc_connection = AuthServiceProxy(
                rpctimeout=120)
slicer-img 2.1.1
Slices an image into its constituent parts
Requires Python: >=3.6

![GitHub release (latest by date)](https://img.shields.io/github/v/release/fl1ghtly/slicer?style=flat-square)
![PyPI - Downloads](https://img.shields.io/pypi/dm/slicer-img)
![GitHub](https://img.shields.io/github/license/fl1ghtly/slicer)
# Description
This script takes images and uses transparent pixel grids in order to seperate each object into smaller files. A test image is included in order to see how this script works.

# Requirements
This package needs Pillow which can be done through:
```
pip install Pillow
```

# Installation
To install:
```
pip install slicer-img
```

# Usage
```
cd {main folder}
slice {path to image file} {format}
```

# Examples
Uses test.png and outputs in default png format
```
slice test.png
```

To specify a different format, type the format like below
```
slice test.png jpg
```

This format works too
```
slice test.png .jpg
```