semvec/pypi-packages huggingface dataset:
hcprint 0.0.4
Html styled color printer for python
Requires Python: >=3.4

text = """
Example Text:

<red>This somewhat depends on what platform you are on.</red>
The most <yellow>common</yellow> way to do this is <blue>by printing ANSI escape sequences.</blue> 
For a simple example, see this color map:

<black>black</black>
<red>red</red>
<green>green</green>
<yellow>yellow</yellow>
<blue>blue</blue>
<magenta>magenta</magenta>
<cyan>cyan</cyan>
<lightgray>lightgray</lightgray>
<darkgray>darkgray</darkgray>
<lightred>lightred</lightred>
<lightgreen>lightgreen</lightgreen>
<lightyellow>lightyellow</lightyellow>
<lightblue>lightblue</lightblue>
<lightmagenta>lightmagenta</lightmagenta>
<lightcyan>lightcyan</lightcyan>
<white>white</white>
"""

# text = "<green>TASIN IS REALLY COOL</green> Also: <blue>Ethan is cool i guess</blue>"
jhdfs4py 1.4.1
Convenient HDFS access using the Java HDFS client
Requires Python: >=3.6

# JHDFS4PY
Convenient HDFS access using the Java HDFS client in python.

## Installation
```sh
pip install jhdfs4py
```

## Usage
Please also see the provided demo notebook at `./docs/demo.ipynb`.

Create a file `file.txt` with the text content "Hello World".
```python
from pyspark.sql import SparkSession
from jhdfs4py import HdfsFs

spark = SparkSession.builder.appName("my-app").getOrCreate()
hdfs = HdfsFs.from_spark_session(spark)

hdfs.write_string(
    path="/my/path/file.txt",
    data="Hello World",
)
```

Create a file `other_file.blop` with the byte content "some data".
```python
from pyspark.sql import SparkSession
from jhdfs4py import HdfsFs

spark = SparkSession.builder.appName("my-app").getOrCreate()
hdfs = HdfsFs.from_spark_session(spark)

hdfs.write_bytes(
    path="/my/path/other_file.blop",
    data=b"some data",
)
```

## Contribute
Report [issues](https://gitlab.com/stiftung-zentrale-stelle-verpackungsregister/jhdfs4py/-/issues), submit [Pull Requests](https://gitlab.com/stiftung-zentrale-stelle-verpackungsregister/jhdfs4py/-/merge_requests), or contact us via mail (opensource@verpackungsregister.org).

## Test Suite
### Hadoop Windows Setup
On Windows, a few extra steps are required, before running the tests:
1. Clone https://github.com/steveloughran/winutils into a directory of your choice
2. Define the environment variable `HADOOP_HOME` and set it to `X:\path\to\winutils\hadoop-3.0.0`
3. Append `%HADOOP_HOME%\bin` to the `PATH` environment variable

### General Setup
The library comes with an extensive [pytest](https://docs.pytest.org/en/stable/) test suite, that depends on a [PY4J](https://www.py4j.org/) gateway
running locally providing the actual HDFS implementation. The testing gateway is located in the `tests/py4j-test-server` folder and implemented by
the `org.zsvr.py4j.test.TestGatewayServer` class. The test suite will try to start the gateway automatically on posix systems unless the `USE_EXTERNAL_GATEWAY_SERVER`
environment variable is set. Use the `SBT_SCRIPT` environment variable, to tell the test suite where your [SBT](https://www.scala-sbt.org/) startup
script is located.

To start the gateway manually (don't forget to set `USE_EXTERNAL_GATEWAY_SERVER=1` in this case), you can either use your favourite IDE, after
importing `py4j-test-server` as [SBT](https://www.scala-sbt.org/) project, or you can use [SBT](https://www.scala-sbt.org/) directly from the command
line by entering `sbt run` after having changed to the `tests/py4j-test-server` directory.

To finally run the tests, change into the `jhdf4py` base directory (the one containing  this README). Make sure all dependencies are met by typing
`pip install -r requirements.txt`, and finally launch the test suite by entering `pytest` into the console. All tests are expected to pass.
newiotclient 1.0.2
python client for iot.lonelyassistant.com
Requires Python: >=3.6

# newiotclient

## Description
MQTT client for iot.lonelyassistant.com, authentication using JWT 

### Usage

#### Config

    [broker]
    host = 0.0.0.0
    port = 1883
    tls  = False
    ;client_id: xxx-xxxx
    
    [device]
    product_key = LASS-xxxxxxxx
    device_sn = xxxxxx
    register_username = register-xxxxx
    register_password = register-xxxxx
    refresh_jwt_username = jwt-refresh-xxxxx
    refresh_jwt_password = jwt-refresh-xxxxx
    
#### Subscribe Topic
    
    import time
    from newiotclient.core import MqttJwtToken, JwtMqttClientSub
    
    topic = 'xxxxxx/device/dt/001/LASS-xxxxxx/xxxxxx'
    
    
    def on_message(m_client, userdata, msg):
        print('++++++ get message ++++++')
        print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))} {msg.payload.decode()}')
        print('++++++ do something here +++++++')
    
    
    def run():
    
        def token_success(token):
            print('============================= get token =================================')
            sub = JwtMqttClientSub(topic=topic, on_message=on_message)
            sub.start()
            sub.join()
    
        mqtt_jwt_token = MqttJwtToken(config_ini='./dev.ini')
        mqtt_jwt_token.on_success = token_success
        mqtt_jwt_token.retrieving()
    
    
    if __name__ == '__main__':
        run()

#### Publish Topic

    import time
    from newiotclient.core import MqttJwtToken, JwtMqttClientPub
    
    topic = 'xxxxxx/device/dt/001/LASS-xxxxxx/xxxxxx'
    
    
    def token_success(token):
        print('============================= get token =================================')
        while True:
            payload = 'hello'
            sub = JwtMqttClientPub(topic=topic, payload=payload)
            sub.start()
            sub.end()
            sub.join()
    
            time.sleep(5)
    
    
    def run():
        mqtt_jwt_token = MqttJwtToken(config_ini='./dev.ini')
        mqtt_jwt_token.on_success = token_success
        mqtt_jwt_token.retrieving()
    
    
    if __name__ == '__main__':
        run()

### Issues
https://github.com/laonan/newiot-pyclient/issues
df-generics 0.1.0
[There](https://github.com/deepmipt/dialog_flow_generics) is an addon for the [Dialog Flow Engine](https://github.com/deepmipt/dialog_flow_engine), a minimalistic open-source engine for conversational services.
Requires Python: >=3.6, <4
Keywords: chatbots,df-generics


# Dialog Flow Generics

[There](https://github.com/deepmipt/dialog_flow_generics) is an addon for the [Dialog Flow Engine](https://github.com/deepmipt/dialog_flow_engine), a minimalistic open-source engine for conversational services.

[Dialog Flow Generics](https://github.com/deepmipt/dialog_flow_generics) introduces a GenericResponse class as well as generic classes for various media types. Using this API, you can create identical responses in DF adapters for Telegram, Yandex's Alice, or other services instead of learning service-specific classes.

<!-- uncomment one of these to add badges to your project description -->
<!-- [![Documentation Status](https://DF-generic-response.readthedocs.io/en/stable/?badge=stable)](https://readthedocs.org/projects/DF-generic-response/badge/?version=stable) -->
<!-- [![Coverage Status](https://coveralls.io/repos/github/deepmipt/dialog_flow_generics/badge.svg?branch=main)](https://coveralls.io/github/deepmipt/dialog_flow_generics?branch=main) -->
<!-- [![Codestyle](https://github.com/deepmipt/dialog_flow_generics/workflows/codestyle/badge.svg)](https://github.com/deepmipt/dialog_flow_generics)
[![Tests](https://github.com/deepmipt/dialog_flow_generics/workflows/test_coverage/badge.svg)](https://github.com/deepmipt/dialog_flow_generics) -->
[![License Apache 2.0](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/deepmipt/dialog_flow_generics/blob/main/LICENSE)
![Python 3.6, 3.7, 3.8, 3.9](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9-green.svg)
<!-- [![PyPI](https://img.shields.io/pypi/v/DF-generic-response)](https://pypi.org/project/DF-generic-response/)
[![Downloads](https://pepy.tech/badge/DF-generic-response)](https://pepy.tech/project/DF-generic-response) -->

# Quick Start
## Installation
```bash
pip install DF-generic-response
```

To get more advanced examples, take a look at [examples](https://github.com/deepmipt/dialog_flow_generics/tree/main/examples) on GitHub.

# Contributing to the Dialog Flow Engine

Please refer to [CONTRIBUTING.md](https://github.com/deepmipt/dialog_flow_engine/blob/dev/CONTRIBUTING.md).
dame-sexo 0.0.4
Determines sex gender based on first name
Requires Python: >=3.7

This package allows to determine the gender of a person depending on the fisrt name. It does so abut using a list of 95000 names already classied.
If the name given appears in the list, it will provid the gender weather it is male or female. If not it will use the Bayesian NLKT model which provides 80.06% accuracy.

Version 0.0.1 works very well with names in Europe and America. It could be wrong with names such as Andrea which are male in Italy but male in the rest of the countries.