semvec/pypi-packages huggingface dataset:
sliceparser 0.9.1b0
Parse numpy style advanced indexing notation from string.
License: MIT

sliceparser
===========


Introduction
------------

As per [this question](https://stackoverflow.com/q/680826/7881370), creating from string slice object, or even advanced indexing tuple, is a common requirement.
However, there exists few robust and safe solution, if at all, to solve the problem.
Therefore I attempt to solve it and expose programmatic interface via PyPI.
I also put my [answer](https://stackoverflow.com/a/57574429/7881370) to the question above.

This repo is adapted from [my Gist](https://gist.github.com/kkew3/d1eed0984a3a44087c700215e99eefd2).


Install
-------

```bash
pip install sliceparser
# or pip3 install sliceparser
```


Usage
-----

```python
import sliceparser
a = [1,2,3,4]
assert a[sliceparser.parse_slice('2:')] == a[2:]
assert a[sliceparser.parse_slice('::2')] == a[::2]
assert a[sliceparser.parse_slice('1')] == a[1]

import numpy as np
A = np.eye(3)
assert np.array_equal(A[sliceparser.parse_slice('0, 1:')], A[0,1:])
assert np.array_equal(A[sliceparser.parse_slice('..., 2')], A[..., 2])
```

etc.
python4kyoani 0.9.2
僕たちはPythonで京アニに何ができるだろうか
License: MIT
Keywords: PrayForKyoani

=================
python4kyoani
=================

Pythonで、京都アニメーションにお返しするプロジェクト

機能 (Features)
=================

任意の画像から PrayForKyoani と文字を入れた画像を新たに作成します

.. image:: https://raw.githubusercontent.com/ftnext/2019_slides/f63ec19ffa798391be80fbb7b412268eacf964de/stapy_Aug_PrayForKyoani/assets/pray_candles.jpg

インストール方法 (Installation)
==================================

.. code-block:: shell

    $ pip install python4kyoani

使い方 (Usage)
=================

.. code-block:: shell

    $ py4ka ./candle.jpg
    $ open pray_candle.jpg

このプロジェクトって何よ？ (About this project)
===================================================

| 2019/07/18 京都アニメーションに放火事件という悲劇が起きました。
| プロジェクト発案者nikkieは、京都アニメーションの大ファンのPython使いです。
| 京都アニメーションの作品に、ときに奮い立たされ、ときに癒やされ、エンジニアとして前に進んできました。
| Python使いとしての今があるのは、京都アニメーションからいただいたもののおかげでもあると思っています。

| この事件で辛いのは、自分が心から大切にしている存在が傷つけられたことです。
| 時間が経つにつれて、優秀なアニメーターの方々を失ったことが分かり、悲しみが重なっていきます。
| それでも、前を向く時間を増やすという選択をしたくて、私ができることで京都アニメーションへの祈りをなんとかして表現したいと思いました。
| 私ができること＝Pythonで京都アニメーションからいただいたものへのお返しを試みていきます（今後も機能を追加します）。
| このプロジェクトで、悲しみに沈む京アニファンを一人でも、ほんの少しの時間でも、前を向くお手伝いができたら、それ以上に嬉しいことはありません。

Python for Kyoani.

開発に参加したい方へ (Development)
==================================

.. code-block:: shell

    $ git clone git@github.com:ftnext/python4kyoani.git python4kyoani
    $ cd python4kyoani
    $ pip install -e .[dev]
openhltspirent 2.0.324
OpenHLTest Python Client
License: MIT
Requires Python: >=2.7, <4
Keywords: openhltspirent spirent automation

# OpenHlTest Python Client
The openhltest folder is the repository for the OpenHlTest python client module.

## Auto generated python client
The auto generated library will follow these guidelines:
1) It will be auto-generated every time there is a model change that has been successfully validated.
2) It will be hierarchical and match the hierarchy of the yang model.
3) It will consist of base infrastructure that encapsulates transport, serialization and errors.
4) Once the library has been generated and unit tests pass it will be packaged and posted on pypi.python.org.  
5) The library will be available for install using the command:
```
pip install openhltspirent
```

## Base infrastructure that is not auto-generated
1) Https transport class encapsulated in HttpTransport
2) Crudx and utility methods encapsulated in Base

## The pyang plugin python_client_plugin.py will auto generate the following
1) classes for the following yang keywords:
   - container
   - list
2) class @property accessors for the following yang keywords:
   - leaf
   - leaf-list
   - container
   - list
3) class methods for the following yang keywords:
   - action
   - rpc
4) class @property accessors to access child container, list classes


### Documentation
upload the [python package](https://pypi.org/project/openhltspirent/) and the [documentation browser](https://openhltest.github.io/docs/index.html)

### Sample code
Sample code is located in the openhltest/samples folder.
bonnette 0.1.1
ASGI adapter for Azure Functions
License: MIT

# Bonnette

ASGI adapter for Azure Functions.

<a href="https://pypi.org/project/bonnette/">
    <img src="https://badge.fury.io/py/bonnette.svg" alt="Package version">
</a>
<a href="https://travis-ci.org/erm/bonnette">
    <img src="https://travis-ci.org/erm/bonnette.svg?branch=master" alt="Build Status">
</a>

**Requirements**: Python 3.6

## Installation

```shell
pip3 install bonnette
```

## Example

```python
import logging
import azure.functions as func
from bonnette import Bonnette


async def app(scope, receive, send):
    assert scope["type"] == "http"
    await send(
        {
            "type": "http.response.start",
            "status": 200,
            "headers": [[b"content-type", b"text/html; charset=utf-8"]],
        }
    )
    await send(
        {"type": "http.response.body", "body": b"<html><h1>Hello, world!</h1></html>"}
    )


def main(req: func.HttpRequest) -> func.HttpResponse:
    logging.info("Python HTTP trigger function processed a request.")
    handler = Bonnette(app)
    return handler(req)

```
went 0.2.0
Tools for implementing a webmention enpoint.
License: MIT

**went** stands for *webmention endpoint tools*.

.. code-block:: python

    import went

    try:
        webmention = went.Webmention(source_url, target=target_url)
        # or webmention = went.Webmention(source_html, target=target_url)
    except (went.NoContent, went.NoURLInSource):
        webmention = None

    webmention.date == '2015-02-26'
    webmention.url == 'http://someone.com/blog/hello.html'
    webmention.name == 'Hello world'
    webmention.html == '<a href="http://otherpage.com/">to see my <i>hello world</i> go to this other page</a>'
    webmention.body == '[to see my _hello world_ go to this other page](http://otherpage.com/)'
    webmention.via == 'twitter.com' # bridgy-specific
    webmention.like == False # like and like-of become this.
    webmention.author.name == 'Someone'
    webmention.author.url == 'http://someone.com/'
    webmention.author.photo == 'http://someone.com/photo.jpg'
durasftp 1.0.0
Durable SFTP connections
License: MIT
Requires Python: >=3.5

# DuraSFTP

A durable extension the pysftp SFTP client: https://pysftp.readthedocs.io/

## Installation

```bash
pip install durasftp
```

## Command Line Usage

Show the help:

```bash
python -m durasftp --help
```

Mirror an SFTP endpoint to your local with private keys:

```bash
python -m durasftp --host some.sftp.server.com --port 22 --username your_username \
  --private-key ~/.ssh/id_rsa --private-key-pass 'ULTRASECUREPASSWORD' \
  --local-base /tmp/local_copy_of_server
```

Mirror an SFTP endpoint to your local with a password:

```bash

python -m durasftp --host some.sftp.server.com --port 22 --username your_username \
  --password 'ULTRASECUREPASSWORD' \
  --local-base /tmp/local_copy_of_server
```

## Package Usage

This package very closely mirrors the functionality of pysftp, except it automatically 
recovers a connection in the event that network connectivity is intermittent.

It also introduces a mirroring functionality, where you can copy a local directory to
a remote server, or copy a remote directory to the local. It will ignore files that
already exist on the destination, if the file size and modification time are identical.

### Basic Usage

The DurableSFTPConnection class is intended to be a drop-in replacement for the
pysftp.Connection class. With a stable network connection, it should be identical in
every way.

```python
from durasftp import DurableSFTPConnection

conn = DurableSFTPConnection(host="some.sftp.server.com", port=22, username="your_username", password="ULTRASECUREPASSWORD")
conn.listdir('/')
```

### Mirror from remote server to local

```python
from durasftp import Mirrorer

mirrorer = Mirrorer(
    local_base="/tmp/local_copy_of_server",
    host="some.sftp.server.com",
    port=22,
    username="your_username",
    password="ULTRASECUREPASSWORD",
    timeout=3,
)
mirrorer.mirror_from_remote(dry_run=True)
```
igql 1.1.2
InstagramGraphQL Unofficial API
License: MIT

# End of support
According to this issue [#1](https://github.com/FKLC/IGQL/issues/1) [Instaloader](https://github.com/instaloader/instaloader) is already doing what this library does so why reinvent the wheel while it exists also I'm so sorry about wasting your time using this library instead of Instaloader it is much better than IGQL. @ogencoglu actually created issue about it but I think when I checked the source of [Instaloader](https://github.com/instaloader/instaloader) I accidentally typed something else instead of `graphql`.

# InstagramGraphQL Unofficial API
Unofficial Instagram GraphQL API to collet data without authentication.

### Features
* Search for people, hashtags and locations
* Get media data
* Get hashtag data
* Get location data
* Get all comments
* Get all likes
* Get specific user posts
* With sessionid supplied you can get data from private accounts
* There is a lot of cool data returned by GraphQL. For example `accessibility_caption` which you can train your image classifier through it

###### NOTE: This is basically a API to collet data not for uploading or interacting with media. If you want more advanced IG library you should check [LevPasha's Instagram-API-python](https://github.com/LevPasha/Instagram-API-python) package.

### Getting all media of a user
```python
from igql import InstagramGraphQL


igql_api = InstagramGraphQL()

user = igql_api.get_user('instagram')
for media in user.timeline():
    print(media)
```

## Installation
Library is avaible on PyPi so just run

```
pip install igql
```


# To learn more check [wiki page](https://github.com/FKLC/IGQL/wiki).
marshmallow-enum 1.5.1
Enum field for Marshmallow
License: MIT

# marshmallow-enum

Enum field for use with Marshmallow.

## Installation

```bash
pip install --user marshmallow_enum
```

If you're on a version before 3.4, you'll also need to install `enum34`.

## Using The Field

To make use of the field, you must have an existing Enum:

```python
from enum import Enum


class StopLight(Enum):
    green = 1
    yellow = 2
    red = 3
```

Then, declare it as a field in a schema:

```python
from marshmallow import Schema
from marshmallow_enum import EnumField


class TrafficStop(Schema):
    light_color = EnumField(StopLight)
```

By default, the field will load and dump based on the _name_ given to an enum value.

```python
schema = TrafficStop()
schema.dump({'light_color': EnumField.red}).data
# {'light_color': 'red'}

schema.load({'light_color': 'red'}).data
# {'light_color': StopLight.red}
```

### Customizing loading and dumping behavior

To customize how an enum is serialized or deserialized, there are three options:

-   Setting `by_value=True`. This will cause both dumping and loading to use the value of the enum.
-   Setting `load_by=EnumField.VALUE`. This will cause loading to use the value of the enum.
-   Setting `dump_by=EnumField.VALUE`. This will cause dumping to use the value of the enum.

If either `load_by` or `dump_by` are unset, they will follow from `by_value`.

Additionally, there is `EnumField.NAME` to be explicit about the load and dump behavior, this
is the same as leaving both `by_value` and either `load_by` and/or `dump_by` unset.

### Custom Error Message

A custom error message can be provided via the `error` keyword argument. It can accept three
format values:

-   `{input}`: The value provided to the schema field
-   `{names}`: The names of the individual enum members
-   `{values}`: The values of the individual enum members

Previously, the following inputs were also available but are deprecated and will be removed in 1.6:

-   `{name}`
-   `{value}`
-   `{choices}`


Version 1.5
===========

Allow unicode enum values (sergeyzsg)
Add support for Marshmallow 3 (svidela)

Version 1.4
===========

* Deprecate the `{choices}`, `{name}` and `{value}` format keys for custom error messages
* Allow configure loading and dumping independently