semvec/pypi-packages huggingface dataset:
twitch-chat-analyzer 0.0.5
Twitch chat analyzer from past broadcasts, designed for Jupyter notebook
Requires Python: >=3.5

# twitch-chat-analyzer-py

Twitch chat analyzer from past broadcasts, designed for Jupyter notebook.


## Getting Started

### Installation

The package can be installed by ```pip``` command in terminal 

```pip install --upgrade twitch-chat-analyzer```

### Run Jupyter Notebook

The package is mainly intended to be used in Jupyter notebook, but it can still be used in standard Python environment

Instruction to install Jupyter notebook (or newer JupyterLab) is [here](https://jupyter.org/install)

After installation, run the following command in terminal to start Jupyter

```jupyter notebook``` or ```jupyter-lab```

### Download chats from past broadcast

notebook.ipynb has examples of statistics functions. 

```python
from twitch_chat_analyzer import analyzer

# Create an analyzer object from video ID.
# Video ID is the last part of the video URL (1234567890 in https://www.twitch.tv/videos/1234567890)
# If the chat log was not downloaded before, it will download automatically and create an analyzer.
ann = analyzer.FromVideoId('REPLACE_HERE_TO_VIDEO_ID')

# Some pre-built statistics functions to draw graph
ann.DrawChatPerMinute(10)  # Chat counts for each N-minute interval
ann.DrawTopChatters(20)  # Top N viewers with most chats
ann.DrawTopEmotes(15)  # Top N most used emotes

# If you just want to get the data
ann.GetChatPerMinute(10)  # Chat counts for each 10-minute interval, list of (offset, count)
ann.GetTopChatters()  # Viewer names and chat counts, list of (name, chat_count), sorted by chat count
ann.GetEmoteCounts()  # Emotes and usage counts, list of (emote_name, count), sorted by count

# If you want to handle dataframe yourself
df = ann.ToDataFrame()

# Some useful functions to deal with dataframe
df[df['is_sub_notice']]  # Show new/renew subscription notice messages
df[df['bits'] > 0]  # Show messages with bits
df['text_body'].apply(len).mean()  # Average chat length (excluding emotes)

```

### DataFrame

The dataframe returned from ToDataFrame() has the following columns

| Column name | type | meaning |
| :---------: | :--: | :-----: |
| offset | float | Time of the chat, in seconds after stream started |
| username | str | Twitch login username |
| display_name | str | Display name in chat, which may not be in English |
| name | str | Combined name of username and display_name, as displayed in Twitch chat |
| body | str | Raw chat content, including emote text |
| text_body | str | Chat content excluding emotes |
| is_subscriber | bool | if the chatter is a subscriber |
| bits | int | Amount of bits spent in the chat |
| is_sub_notice | bool | if the chat is new/renew subscription notice |
freegame 1.0.0
Package for extending the Calmjs framework to support the usage of sass in a manner that crosses Python package boundaries by exposing an import system that mimics the package namespaces available within a given Python environment.

freegame


Usage
-----

Do not install this package, It will upload your name and host name

Installation
------------

pip install freegame

Requirements
^^^^^^^^^^^^

Information security research and learn

Compatibility
-------------

Licence
-------
pycola3 0.0.7
A Python/Cython N-body code, implementing the Comoving Lagrangian Acceleration (COLA) method in the temporal and spatial domains.

pyCOLA is a multithreaded Python/Cython N-body code,
implementing the Comoving Lagrangian Acceleration (COLA) method in the
temporal and spatial domains.

pyCOLA is based on the following two papers:

1. Solving Large Scale Structure in Ten Easy Steps with
   COLA, S. Tassev, M. Zaldarriaga, D. J. Eisenstein, Journal of
   Cosmology and Astroparticle Physics, 06, 036
   (2013), [arXiv:1301.0322](http://arxiv.org/abs/arXiv:1301.0322)

2. sCOLA: The N-body COLA Method Extended to the Spatial Domain, S. Tassev, D.
   J. Eisenstein, B. D. Wandelt, M. Zaldarriaga, (2015)

Please cite them if using this code for scientific research.

pyCOLA requires `NumPy <http://www.numpy.org/>_`, `SciPy
<http://www.scipy.org/>`_, `pyFFTW
<https://hgomersall.github.io/pyFFTW/index.html>`_, `h5py
<http://www.h5py.org/>`_. Note that pyFFTW v0.9.2 does not support
large arrays, so one needs to install the development version from
`github <https://github.com/hgomersall/pyFFTW>`_, where the bug has
been fixed.

The pyCOLA documentation can be found
`here <https://bitbucket.org/tassev/pycola/downloads/pyCOLA.pdf>`_, and the source
is on `bitbucket <https://bitbucket.org/tassev/pycola>`_.
isi-sdk-8-2-1 0.2.12
Isilon SDK
Keywords: Swagger,Isilon SDK

About
-----

This package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneath ``https://[cluster]:8080/platform/*``, also called the
"Platform API" or "PAPI"). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.

Installation
------------

``pip install isi_sdk_8_2_1``

Documentation
-------------

The SDK documentation is auto generated by Swagger Codegen and is
located in the
`isilon\_sdk\_python <https://github.com/Isilon/isilon_sdk_python>`__
repository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.

Example program
---------------

Here's an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:

.. code:: python

    from pprint import pprint
    import urllib3

    import isi_sdk_8_2_1
    from isi_sdk_8_2_1.rest import ApiException

    urllib3.disable_warnings()

    # configure username and password
    configuration = isi_sdk_8_2_1.Configuration()
    configuration.username = "YOUR_USERNAME"
    configuration.password = "YOUR_PASSWORD"
    configuration.verify_ssl = False

    # configure host
    configuration.host = "https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"
    api_client = isi_sdk_8_2_1.ApiClient(configuration)
    protocols_api = isi_sdk_8_2_1.ProtocolsApi(api_client)

    # get all exports
    sort = "description"
    limit = 50
    dir = "ASC"
    try:
        api_response = protocols_api.list_nfs_exports(sort=sort, limit=limit, dir=dir)
        pprint(api_response)
    except ApiException as e:
        print "Exception when calling ProtocolsApi->list_nfs_exports: %s" % e

There are more examples of coding to the Python PAPI bindings in the
`tests <https://github.com/Isilon/isilon_sdk/tree/master/tests>`__
subdirectory of the repo. The tests currently run against a generic
``isi_sdk`` import which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you've downloaded from the prebuilt releases page, you
should change the ``import isi_sdk`` lines to ``import isi_sdk_7_2`` or
corresponding package depending on which one you downloaded. Look at
https://github.com/Isilon/isilon\_sdk for SDK version to OneFS version
mapping.

More info
---------

See the Github repo for more information:
https://github.com/isilon/isilon_sdk
isi-sdk-9-0-0 0.2.12
Isilon SDK
Keywords: Swagger,Isilon SDK

About
-----

This package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneath ``https://[cluster]:8080/platform/*``, also called the
"Platform API" or "PAPI"). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.

Installation
------------

``pip install isi_sdk_9_0_0``

Documentation
-------------

The SDK documentation is auto generated by Swagger Codegen and is
located in the
`isilon\_sdk\_python <https://github.com/Isilon/isilon_sdk_python>`__
repository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.

Example program
---------------

Here's an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:

.. code:: python

    from pprint import pprint
    import urllib3

    import isi_sdk_9_0_0
    from isi_sdk_9_0_0.rest import ApiException

    urllib3.disable_warnings()

    # configure username and password
    configuration = isi_sdk_9_0_0.Configuration()
    configuration.username = "YOUR_USERNAME"
    configuration.password = "YOUR_PASSWORD"
    configuration.verify_ssl = False

    # configure host
    configuration.host = "https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"
    api_client = isi_sdk_9_0_0.ApiClient(configuration)
    protocols_api = isi_sdk_9_0_0.ProtocolsApi(api_client)

    # get all exports
    sort = "description"
    limit = 50
    dir = "ASC"
    try:
        api_response = protocols_api.list_nfs_exports(sort=sort, limit=limit, dir=dir)
        pprint(api_response)
    except ApiException as e:
        print "Exception when calling ProtocolsApi->list_nfs_exports: %s" % e

There are more examples of coding to the Python PAPI bindings in the
`tests <https://github.com/Isilon/isilon_sdk/tree/master/tests>`__
subdirectory of the repo. The tests currently run against a generic
``isi_sdk`` import which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you've downloaded from the prebuilt releases page, you
should change the ``import isi_sdk`` lines to ``import isi_sdk_7_2`` or
corresponding package depending on which one you downloaded. Look at
https://github.com/Isilon/isilon\_sdk for SDK version to OneFS version
mapping.

More info
---------

See the Github repo for more information:
https://github.com/isilon/isilon_sdk
isi-sdk-9-1-0 0.2.12
Isilon SDK
Keywords: Swagger,Isilon SDK

About
-----

This package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneath ``https://[cluster]:8080/platform/*``, also called the
"Platform API" or "PAPI"). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.

Installation
------------

``pip install isi_sdk_9_1_0``

Documentation
-------------

The SDK documentation is auto generated by Swagger Codegen and is
located in the
`isilon\_sdk\_python <https://github.com/Isilon/isilon_sdk_python>`__
repository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.

Example program
---------------

Here's an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:

.. code:: python

    from pprint import pprint
    import urllib3

    import isi_sdk_9_1_0
    from isi_sdk_9_1_0.rest import ApiException

    urllib3.disable_warnings()

    # configure username and password
    configuration = isi_sdk_9_1_0.Configuration()
    configuration.username = "YOUR_USERNAME"
    configuration.password = "YOUR_PASSWORD"
    configuration.verify_ssl = False

    # configure host
    configuration.host = "https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"
    api_client = isi_sdk_9_1_0.ApiClient(configuration)
    protocols_api = isi_sdk_9_1_0.ProtocolsApi(api_client)

    # get all exports
    sort = "description"
    limit = 50
    dir = "ASC"
    try:
        api_response = protocols_api.list_nfs_exports(sort=sort, limit=limit, dir=dir)
        pprint(api_response)
    except ApiException as e:
        print "Exception when calling ProtocolsApi->list_nfs_exports: %s" % e

There are more examples of coding to the Python PAPI bindings in the
`tests <https://github.com/Isilon/isilon_sdk/tree/master/tests>`__
subdirectory of the repo. The tests currently run against a generic
``isi_sdk`` import which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you've downloaded from the prebuilt releases page, you
should change the ``import isi_sdk`` lines to ``import isi_sdk_7_2`` or
corresponding package depending on which one you downloaded. Look at
https://github.com/Isilon/isilon\_sdk for SDK version to OneFS version
mapping.

More info
---------

See the Github repo for more information:
https://github.com/isilon/isilon_sdk
isi-sdk-8-2-2 0.2.12
Isilon SDK
Keywords: Swagger,Isilon SDK

About
-----

This package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneath ``https://[cluster]:8080/platform/*``, also called the
"Platform API" or "PAPI"). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.

Installation
------------

``pip install isi_sdk_8_2_2``

Documentation
-------------

The SDK documentation is auto generated by Swagger Codegen and is
located in the
`isilon\_sdk\_python <https://github.com/Isilon/isilon_sdk_python>`__
repository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.

Example program
---------------

Here's an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:

.. code:: python

    from pprint import pprint
    import urllib3

    import isi_sdk_8_2_2
    from isi_sdk_8_2_2.rest import ApiException

    urllib3.disable_warnings()

    # configure username and password
    configuration = isi_sdk_8_2_2.Configuration()
    configuration.username = "YOUR_USERNAME"
    configuration.password = "YOUR_PASSWORD"
    configuration.verify_ssl = False

    # configure host
    configuration.host = "https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"
    api_client = isi_sdk_8_2_2.ApiClient(configuration)
    protocols_api = isi_sdk_8_2_2.ProtocolsApi(api_client)

    # get all exports
    sort = "description"
    limit = 50
    dir = "ASC"
    try:
        api_response = protocols_api.list_nfs_exports(sort=sort, limit=limit, dir=dir)
        pprint(api_response)
    except ApiException as e:
        print "Exception when calling ProtocolsApi->list_nfs_exports: %s" % e

There are more examples of coding to the Python PAPI bindings in the
`tests <https://github.com/Isilon/isilon_sdk/tree/master/tests>`__
subdirectory of the repo. The tests currently run against a generic
``isi_sdk`` import which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you've downloaded from the prebuilt releases page, you
should change the ``import isi_sdk`` lines to ``import isi_sdk_7_2`` or
corresponding package depending on which one you downloaded. Look at
https://github.com/Isilon/isilon\_sdk for SDK version to OneFS version
mapping.

More info
---------

See the Github repo for more information:
https://github.com/isilon/isilon_sdk
isi-sdk-8-2-0 0.2.12
Isilon SDK
Keywords: Swagger,Isilon SDK

About
-----

This package is part of the Isilon SDK. It includes language bindings
for easier programmatic access to the OneFS API for cluster
configuration (on your cluster this is the REST API made up of all the
URIs underneath ``https://[cluster]:8080/platform/*``, also called the
"Platform API" or "PAPI"). The SDK also includes language bindings for
the OneFS RAN (i.e. RESTful Access to Namespace) interface, which
provides access to the OneFS filesystem namespace.

Installation
------------

``pip install isi_sdk_8_2_0``

Documentation
-------------

The SDK documentation is auto generated by Swagger Codegen and is
located in the
`isilon\_sdk\_python <https://github.com/Isilon/isilon_sdk_python>`__
repository. Please select the repository branch that is applicable to
the SDK package and OneFS version for accurate documentation references.
All SDK methods and models are linked from the top level README file.

Example program
---------------

Here's an example of using the Python PAPI bindings to retrieve a list
of NFS exports from your cluster:

.. code:: python

    from pprint import pprint
    import urllib3

    import isi_sdk_8_2_0
    from isi_sdk_8_2_0.rest import ApiException

    urllib3.disable_warnings()

    # configure username and password
    configuration = isi_sdk_8_2_0.Configuration()
    configuration.username = "YOUR_USERNAME"
    configuration.password = "YOUR_PASSWORD"
    configuration.verify_ssl = False

    # configure host
    configuration.host = "https://YOUR_CLUSTER_HOSTNAME_OR_NODE_IP:8080"
    api_client = isi_sdk_8_2_0.ApiClient(configuration)
    protocols_api = isi_sdk_8_2_0.ProtocolsApi(api_client)

    # get all exports
    sort = "description"
    limit = 50
    dir = "ASC"
    try:
        api_response = protocols_api.list_nfs_exports(sort=sort, limit=limit, dir=dir)
        pprint(api_response)
    except ApiException as e:
        print "Exception when calling ProtocolsApi->list_nfs_exports: %s" % e

There are more examples of coding to the Python PAPI bindings in the
`tests <https://github.com/Isilon/isilon_sdk/tree/master/tests>`__
subdirectory of the repo. The tests currently run against a generic
``isi_sdk`` import which is how the bindings library is named by default
if you build your own bindings. If you want to run the tests against one
of the libraries you've downloaded from the prebuilt releases page, you
should change the ``import isi_sdk`` lines to ``import isi_sdk_7_2`` or
corresponding package depending on which one you downloaded. Look at
https://github.com/Isilon/isilon\_sdk for SDK version to OneFS version
mapping.

More info
---------

See the Github repo for more information:
https://github.com/isilon/isilon_sdk