semvec/pypi-packages huggingface dataset:
pythonji-2 0.1.2
🐍 - Write Python with Emojis
License: MIT
Requires Python: >=3.8

# 🐍 - Write Python with Emojis

> [!NOTE]
> This is a fork of [gahjelle/pythonji](https://github.com/gahjelle/pythonji) because it's not maintained anymore.

Write Python code using emojis 🐍

![Example of running 🐍](pythonji.gif)

## Inspiration

[Marc Garcia](http://datapythonista.github.io/) gave a wonderful [lightning talk](https://www.youtube.com/watch?v=Wtm7Iy-wEUI&t=52m43s) at [EuroSciPy 2018 in Trento](https://www.euroscipy.org/2018/), where he pointed out some obvious [deficiencies](https://github.com/python/cpython/pull/1686) in Python's handling of unicode. For instance, code like the following is not supported:

```python
import pandas as 🐼
```

## Installation

🐍 is available on [PyPI](https://pypi.org/project/pythonji). Install it with `pip`:

```bash
python -m pip install pythonji
```

## Using 🐍

🐍 installs as `pythonji`. 🐍 code files have the suffix `.🐍`. You can run a 🐍 code file as follows:

```bash
pythonji file.🐍
```

## Example

Save the following code to the file `🐼.🐍`:

```python
import pandas as 🐼
from numpy import random as 🔀

# Define a dataframe and print it to the console
📋 = 🐼.DataFrame(
    {
        "😀": ["🐼", "🐍", "🦁"],
        "🏷️": ["Panda", "Python", "Lion"],
        "💯": 🔀.randint(2, 5, size=3),
    },
).set_index("😀")
print(📋)

# Do some arithmetic with the dataframe
🔤 = f" Pythonji {' '.join(📋.index)}"
🔢 = 📋.loc["🐍", "💯"] + 📋.loc["🐼", "💯"]
print(🔤 * 🔢)
```

You can run the code as follows:

```bash
$ pythonji 🐼.🐍 
        🏷  💯
😀           
🐼   Panda  2
🐍  Python  2
🦁    Lion  4
 Pythonji 🐼 🐍 🦁 Pythonji 🐼 🐍 🦁 Pythonji 🐼 🐍 🦁 Pythonji 🐼 🐍 🦁
```

## Limitations

- 🐍 currently only handles single script files. It can import any regular Python module, but unfortunately not 🐍 modules.
- Sadly, `pip` does not currently handle unicode command names. Ideally, we want the executable to be named `🐍` instead of `pythonji`.
- [Black](https://black.readthedocs.io) unfortunately can not handle 🐍 code. Does anybody want to contribute to ⬛, a formatter for 🐍?
lavender-logging 1.0.0
An opinionated logger and configuration system.
License: MIT
Requires Python: >=3.8.1,<4.0.0

# Lavender Logging

Lavender Logging is a logger configuration system designed to simplify the process of configuring your logger to only log the messages you want to see.

## Usage

To use Lavender simply call `lavender.setup()` instead of `logging.basicConfig()`. This will enable all of Lavender's features and ensure it works as intended.

Lavender uses its own filter system, configured using patterns which match package names. For example `discord.*` matches all submodules of the `discord` package. Filters can be added using the `filter_config` parameter of `lavender.setup` or using environment variables.

Lavender looks for evironment variables with `LOG_DEBUG`, `LOG_INFO`, `LOG_WARNING` etc to extract patterns from. Multiple patterns can be specified for the same log level by separating them with `os.pathsep`. For example, the following will set the log level of `amethyst.client` and all submodules of `discord` and to `ERROR` on windows.

```
LOG_ERROR="amethyst.client;discord.*"
```

Filters that infer more of a package's path with wildcards have less priority over more specific patterns. For example with the patterns `discord.*` and `discord.gateway.*`, `discord.gateway.*` will have priority.