semvec/pypi-packages huggingface dataset:
dfsjson 1.1.2
A robust JSON encoder that fixes errors by utilizing DFS algorithm.
Requires Python: >=3.8,<4.0
Keywords: JSON,JSON Serialize,DFS,Error correcting JSON

# DFS JSON
A Depth First Search powered JSON decoding library. For the remaining operations (dump, dumps), it uses standard python JSON library.

# Installation
```
pip install dfsjson
```

# Usage

```
# Create a complex JSON object
example_json = """{
    "key1": "value1'
    "key2": [1 2, 3]
    "key3":  {
        "subkey1": "subvalue1"
        "subkey2": "subvalue2"
    ,
}"""

dj = DFSJson(max_depth = 100, max_diff = 10)
dj.loads(example_json)

```

# Discussion
### Hey I know this. Why not have you used Breadth First Search?
Technically you are correct but keep in mind that Breadth First Search keeps the previous states in its list which 
scales with number of iterations you are making and it can be a huge strain on the memory.

However, Depth First search requires only O(log(n)) memory complexity in which we can search a lot more possibilities.

# Contribution
Please don't hesitate to create issues and pull requests since this is developed overnight.
gptrim 0.1.6
Reduce the size of GPT inputs by 40-60% without losing most of the information.

gptrim
======

gptrim is a Python library designed to help you trim text inputs, making
it easier to fit more content within GPT’s context window. By
tokenizing, stemming, and removing spaces, this library prepares your
text inputs for efficient processing with GPT models.

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

.. code:: commandline

   pip install gptrim

Usage
-----

.. code:: python

   from gptrim import trim

   text = "This is an example sentence to demonstrate gptrim usage."
   trimmed_text = trim(text)
   print(trimmed_text)
iphub 1.0.2
IPhub.info API wrapper.
Requires Python: >=3.6

<h1 align="center">iphub - IPhub.info API wrapper.</h1>

<br>

<h1 align="center"> -How to use?- </h1>

```python
from iphub import IPHub

iphub = IPHub('rzpsbbdiwg7@1secmail.com', 'rzpsbbdiwg7@1secmail.com')
result = iphub.check_ip('127.0.0.1')
print(result)
```