semvec/pypi-packages huggingface dataset:
lenspy 1.1.0
Plot big data with Python.
License: MIT
Requires Python: >=3.6.0

# LensPy: Plot millions of data points

[![Documentation Status](https://readthedocs.org/projects/lenspy/badge/?version=latest)](https://lenspy.readthedocs.io/en/latest/?badge=latest)
[![PyPI](https://img.shields.io/pypi/v/lenspy.svg)](https://pypi.python.org/pypi)
![PyPI - License](https://img.shields.io/pypi/l/lenspy)

LensPy extends Plotly's Dash to allow you to plot very large datasets (millions of points) while ensuring that figures are still fast, fluid, and responsive.

![alt text](https://github.com/serant/lenspy/blob/master/img/demo.gif?raw=true)

This is achieved by adjusting the visible data based on the position of the viewport and how _zoomed in_ the figure is. When you're zoomed out, only a subset of the data is shown. When you zoom in, LensPy will render more detail in your plot. By doing this, LensPy can build dynamic figures of very large datasets without overwhelming the browser when viewing the figures.

## Contents

- [Features](#features)
- [Installation](#installation)
- [Getting Started](#getting-started)
- [Jupyter](#jupyter)
- [Advanced Usage](#advanced-usage)
- [License](#license)
- [Contributing](#contributing)

## Features

- Ability to specify number of points to display at once
- Ability to define a custom function for downsampling data
- Ability to run in [Jupyter](#jupyter) notebooks
- Ability to use with Dash applications

## Installation

Install LensPy using pip

```
pip install lenspy
```

## Getting Started

Use LensPy by passing any [Figure](https://plotly.com/python-api-reference/generated/plotly.graph_objects.Figure.html) to the DynamicPlot constructor.

```
import numpy as np
import plotly.graph_objects as go
from lenspy import DynamicPlot

# First, let's create a very large figure
x = np.arange(1, 11, 1e-6)
y = 1e-2*np.sin(1e3*x) + np.sin(x) + 1e-3*np.sin(1e10*x)
fig = go.Figure(data=[go.Scattergl(x=x, y=y)])
fig.update_layout(title=f"{len(x):,} Data Points.")

# Use DynamicPlot.show to view the plot
plot = DynamicPlot(fig)
plot.show()

# Plot will be available in the browser at http://127.0.0.1:8050/
```

![alt text](https://github.com/serant/lenspy/blob/master/img/demo2.gif?raw=true)

You can still access any of the [Plotly Figure methods/attributes](https://plotly.com/python-api-reference/generated/plotly.graph_objects.Figure.html) and modify them as needed.

## Jupyter

LensPy starts a [Flask](https://flask.palletsprojects.com/en/1.1.x/) web server, therefore plots won't be rendered in your notebook as widget. You can always access your plot in a seperate tab (default url is http://127.0.0.1:8050/)

## Advanced Usage

For the full reference and detailed information, please see the [documentation](https://lenspy.readthedocs.io/en/latest/).

## License

Copyright (c) 2020 Seran Thirugnanam under the MIT License.

## Contributing

Help is always welcome. Feel free to open issues or PRs if there is a feature missing, or a bug to be addressed.
parler 1.0.1
Parler Social Media Python API SDK
License: MIT
Requires Python: >=3.6

# Parler Python API
Parler Social Media Python API

### Install
```sh
$ pip install parler
```

### Authentication
After you login to Parler.com you can get the `MST` and `JST` tokens:

`Open DevTools -> Storage -> Cookies`

### Usage
```python
from parler import Parler

mst = 'XXX' # see authentication section
jst = 'YYY'

client = Parler(mst, jst)

print(client.getFeed());
```

### Methods
```sh
$ python
Python 3.7.3 (default, May 31 2019, XX:XX:XX)
[GCC 5.4.0 2016XXXX] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import parler
>>> help(parler)
```
pytest-asgi-server 0.2.4
Convenient ASGI client/server fixtures for Pytest
License: MIT
Requires Python: >=3.8,<4.0

<h1 align="center">pytest-asgi-server</h1>
<h3 align="center">Convenient ASGI client/server fixtures for Pytest</h3>
<p align="center">
<a href="https://github.com/garytyler/pytest-asgi-server/actions">
  <img alt="Actions Status" src="https://github.com/garytyler/pytest-asgi-server/workflows/tests/badge.svg">
</a>
<a href="https://codecov.io/gh/garytyler/pytest-asgi-server">
  <img src="https://codecov.io/gh/garytyler/pytest-asgi-server/branch/master/graph/badge.svg?token=q7mUlqR3jF" />
</a>
<a href="https://pypi.org/project/pytest-asgi-server/">
  <img alt="PyPI" src="https://img.shields.io/pypi/v/pytest-asgi-server">
</a>
<a href="https://pypi.org/project/pytest-asgi-server/">
  <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/pytest-asgi-server">
</a>
<img alt="GitHub" src="https://img.shields.io/github/license/garytyler/pytest-asgi-server">
<a href="https://github.com/psf/black">
  <img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg">
</a>
</p>

### NOTE: This is a beta product
fortnitepyr 3.3.5
Library for interacting with fortnite services
License: MIT
Requires Python: >=3.5.3

# fortnitepy

[![Supported py versions](https://img.shields.io/pypi/pyversions/fortnitepy.svg)](https://pypi.org/project/fortnitepy/)
[![Current pypi version](https://img.shields.io/pypi/v/fortnitepy.svg)](https://pypi.org/project/fortnitepy/)
[![Donate link](https://img.shields.io/badge/paypal-donate-blue.svg)](https://www.paypal.me/terbau)

Asynchronous library for interacting with Fortnite and EpicGames' API and XMPP services.

**Note:** This library is still under developement so breaking changes might happen at any time.

**Some key features:**
- Full support for Friends.
- Support for XMPP events including friend and party messages + many more.
- Support for Parties.
- Support for Battle Royale stats.

# Documentation
https://fortnitepy.readthedocs.io/en/latest/

# Installing
```
# windows
py -3 -m pip install -U fortnitepy

# linux
python3 -m pip install -U fortnitepy
```

# Basic usage
```py
import fortnitepy
import json
import os

from fortnitepy.ext import commands

email = 'email@email.com'
password = 'password1'
filename = 'device_auths.json'

def get_device_auth_details():
    if os.path.isfile(filename):
        with open(filename, 'r') as fp:
            return json.load(fp)
    return {}

def store_device_auth_details(email, details):
    existing = get_device_auth_details()
    existing[email] = details

    with open(filename, 'w') as fp:
        json.dump(existing, fp)

device_auth_details = get_device_auth_details().get(email, {})
bot = commands.Bot(
    command_prefix='!',
    auth=fortnitepy.AdvancedAuth(
        email=email,
        password=password,
        prompt_authorization_code=True,
        delete_existing_device_auths=True,
        **device_auth_details
    )
)

@bot.event
async def event_device_auth_generate(details, email):
    store_device_auth_details(email, details)

@bot.event
async def event_ready():
    print('----------------')
    print('Bot ready as')
    print(bot.user.display_name)
    print(bot.user.id)
    print('----------------')

@bot.event
async def event_friend_request(request):
    await request.accept()

@bot.command()
async def hello(ctx):
    await ctx.send('Hello!')

bot.run()
```

# Credit
Thanks to [Kysune](https://github.com/SzymonLisowiec), [iXyles](https://github.com/iXyles), [Vrekt](https://github.com/Vrekt) and [amrsatrio](https://github.com/Amrsatrio) for ideas and/or work that this library is built upon.

Also thanks to [discord.py](https://github.com/Rapptz/discord.py) for much inspiration code-wise.

# Need help?
If you need more help feel free to join this [discord server](https://discord.gg/rnk869s).