semvec/pypi-packages huggingface dataset:
python-inflow 1.0.1
A variance-optimal paragraph formatter
Requires Python: >=3.9

# inflow

A variance-optimal paragraph formatter. It has only three rules:

1. Minimize the variance of the lengths of each line...
2. ...subject to the constraint that the number of lines is smallest.
3. Ignore the last line, while making sure it's shorter than average.

The program `inflow` reads its input from stdin and writes to stdout.
It takes a single positional argument, the maximum number of characters
per line, e.g. `inflow 72`. The default width if unspecified is 79.

A previous version of this program was called `far`.

See [far: a (f)ast re-write of the Unix utility
p(ar)](https://cgdct.moe/blog/far/) for more information.

## Installation

Inflow is packaged in
[nixpkgs](https://github.com/NixOS/nixpkgs) as `pkgs.inflow`.

## Editor integration

- (neo)vim: set `formatprg` to `inflow` or `inflow 72`
- emacs: [far.el](https://github.com/eshrh/far.el)
api-nichotined 0.1.13
Simple lib for testing rest API

# API-NICHOTINED

A package that will help on creating session upon making rest API request.

Installation:

```commandline
pip install api-nichotined
```

Sample usage:

```commandline
import logging

from api_nichotined import Api, BigQuery


class TestApi(Api):
    def __init__(self):
        super().__init__("https://restcountries.com")

    def get_upload(self):
        return self.get(path="/v3.1/name/indonesia")

    @classmethod
    def init_bigquery(cls):
        bq = BigQuery()

        bq.authenticate_client_with_json_cred_path("cred.json")
        res = bq.get_rows_from(query="""SELECT * FROM `dummy` LIMIT 1000""")
        assert type(res[0].column_a) == str


if __name__ == '__main__':
    logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")

    response = TestApi().get_upload()
    TestApi.init_bigquery()

```
asyncr 0.1.0
A python utility for running async functions.
Requires Python: >=3.7

# asyncr

![PyPI](https://img.shields.io/pypi/v/asyncr?label=pypi%20package)
![PyPI - Downloads](https://img.shields.io/pypi/dm/asyncr)

`asyncr` is a Python library for helping you handle those pesky async functions with ease! With `asyncr` you can easily
run your async functions in a synchronous way or run your synchronous functions in an async way.

> [!IMPORTANT]
> This library simply runs the functions is the event loop without changing the function code or optimizing it.
> If your code is not async safe, it may not work as expected.


## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install asyncr.

```bash
pip install asyncr
```

## Usage

```python
from asyncio import get_event_loop

from asyncr import as_sync, as_async


# Create a new async function and wrap it with as_sync, now it will be a sync function.
@as_sync
async def async_function():
    return "Hello, Sync World!"


print(async_function())


# Create a new sync function and wrap it with as_async, now it will be an async function.
@as_async
def sync_function():
    return "Hello, Async World!"


print(get_event_loop().run_until_complete(sync_function()))
```

You can also pass a the loop for running the functions as the parameter for the decorator. If no loop is provided, the
default loop will be used.

```python
from asyncio import get_event_loop, new_event_loop

from asyncr import as_sync, as_async


# Create a new async function and wrap it with as_sync, now it will be a sync function.
@as_sync(new_event_loop())
async def async_function():
    return "Hello, Sync World!"

print(async_function())
```

## Contributing

Please open an issue first to discuss what you would like to change.
I welcome any and all criticism, feedback, and suggestions even if I may not agree.
pyxu-gradient-descent 1.0.1
An accelerated gradient descent optimizer for Pyxu
Requires Python: <3.13,>=3.10

pyxu-gradient-descent
=====================

.. image:: https://img.shields.io/pypi/l/pyxu-gradient-descent.svg?color=green
   :target: https://github.com/joanrue/pyxu-gradient-descent/raw/main/LICENSE
   :alt: License MIT
.. image:: https://img.shields.io/pypi/v/pyxu-gradient-descent.svg?color=green
   :target: https://pypi.org/project/pyxu-gradient-descent
   :alt: PyPI
.. image:: https://github.com/joanrue/pyxu-gradient-descent/workflows/tests/badge.svg
   :target: https://github.com/joanrue/pyxu-gradient-descent/actions
   :alt: tests
.. image:: https://codecov.io/gh/joanrue/pyxu-gradient-descent/branch/main/graph/badge.svg
   :target: https://codecov.io/gh/joanrue/pyxu-gradient-descent
   :alt: codecov
.. image:: https://img.shields.io/endpoint?url=https://pyxu-org.github.io/fair/shields/pyxu-gradient-descent
   :alt: Pyxu score
   :target: https://pyxu-org.github.io/fair/score.html

An accelerated gradient descent optimizer for Pyxu
--------------------------------------------------

This `Pyxu`_ plugin was generated with `Cookiecutter`_ using the `cookiecutter-pyxu`_ template.

.. Don't miss the `contributing-guide`_ to set up your new package and to review the Pyxu `developer notes`_.

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

You can install ``pyxu-gradient-descent`` via `pip`_:

.. code-block:: bash

   pip install pyxu-gradient-descent


To install latest development version :

.. code-block:: bash

   pip install git+https://github.com/joanrue/pyxu-gradient-descent.git


Contributing
------------

Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.

License
-------

Distributed under the terms of the `MIT`_ license,
``pyxu-gradient-descent`` is free and open source software

Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.

.. _Pyxu: https://github.com/pyxu-org/pyxu
.. _contributing-guide: https://pyxu-org.github.io/fair/contribute.html
.. _developer notes: https://pyxu-org.github.io/fair/dev_notes.html
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _MIT: http://opensource.org/licenses/MIT
.. _BSD-3: http://opensource.org/licenses/BSD-3-Clause
.. _GNU GPL v3.0: http://www.gnu.org/licenses/gpl-3.0.txt
.. _GNU LGPL v3.0: http://www.gnu.org/licenses/lgpl-3.0.txt
.. _Apache Software License 2.0: http://www.apache.org/licenses/LICENSE-2.0
.. _Mozilla Public License 2.0: https://www.mozilla.org/media/MPL/2.0/index.txt
.. _cookiecutter-pyxu: https://github.com/pyxu-org/cookiecutter-pyxu

.. _file an issue: https://github.com/joanrue/pyxu-gradient-descent/issues

.. _tox: https://tox.readthedocs.io/en/latest/
.. _pip: https://pypi.org/project/pip/
r-config 0.4.2
A customized way to use config
Requires Python: >3.9.0

RConfig
=======

A customized way to use config

`Documentation <https://r-config.readthedocs.io/en/latest/>`_

`PyPi <https://pypi.org/project/r-config/>`_

Usage
-----

From string
^^^^^^^^^^^

.. code-block:: python

    from r_config import RConfig

    rc = RConfig()

    str_yaml = """
        example1:
          id: 2
          name: 'Ramin'
        # comment to test
        example2:
          sub1:
            p1: 2.2
          sub2: 'test_1'
     """

    rc.update_from_str(str_yaml)



From file
^^^^^^^^^

.. code-block:: python

    from r_config import RConfig
    from pathlib import Path

    rc = RConfig()

    path = Path('/path/to/config.yaml')

    rc.update_from_file(path)


From dict
^^^^^^^^^

.. code-block:: python

    from r_config import RConfig

    r_dict = {'a': 10, 'b': 'salam', 'f': {'p': 2, 'q': 3}}

    rc = RConfig(r_dict)
pyxu-eigh 1.0.0
Pyxu plugin to compute the eigenvectors and eigenvalues of a real symmetric matrix
Requires Python: <3.13,>=3.10

pyxu-eigh
=========

.. image:: https://img.shields.io/pypi/l/pyxu-eigh.svg?color=green
   :target: https://github.com/joanrue/pyxu-eigh/raw/main/LICENSE
   :alt: License MIT
.. image:: https://img.shields.io/pypi/v/pyxu-eigh.svg?color=green
   :target: https://pypi.org/project/pyxu-eigh
   :alt: PyPI
.. image:: https://github.com/joanrue/pyxu-eigh/workflows/tests/badge.svg
   :target: https://github.com/joanrue/pyxu-eigh/actions
   :alt: tests
.. image:: https://codecov.io/gh/joanrue/pyxu-eigh/branch/main/graph/badge.svg
   :target: https://codecov.io/gh/joanrue/pyxu-eigh
   :alt: codecov
.. image:: https://img.shields.io/endpoint?url=https://pyxu-org.github.io/fair/shields/pyxu-eigh
   :alt: Pyxu score
   :target: https://pyxu-org.github.io/fair/score.html

Pyxu plugin to compute the eigenvectors and eigenvalues of a real symmetric matrix
----------------------------------------------------------------------------------

This `Pyxu`_ plugin was generated with `Cookiecutter`_ using the `cookiecutter-pyxu`_ template.

.. Don't miss the `contributing-guide`_ to set up your new package and to review the Pyxu `developer notes`_.

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

You can install ``pyxu-eigh`` via `pip`_:

.. code-block:: bash

   pip install pyxu-eigh


To install latest development version :

.. code-block:: bash

   pip install git+https://github.com/joanrue/pyxu-eigh.git


Contributing
------------

Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.

License
-------

Distributed under the terms of the `MIT`_ license,
``pyxu-eigh`` is free and open source software

Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.

.. _Pyxu: https://github.com/pyxu-org/pyxu
.. _contributing-guide: https://pyxu-org.github.io/fair/contribute.html
.. _developer notes: https://pyxu-org.github.io/fair/dev_notes.html
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _MIT: http://opensource.org/licenses/MIT
.. _BSD-3: http://opensource.org/licenses/BSD-3-Clause
.. _GNU GPL v3.0: http://www.gnu.org/licenses/gpl-3.0.txt
.. _GNU LGPL v3.0: http://www.gnu.org/licenses/lgpl-3.0.txt
.. _Apache Software License 2.0: http://www.apache.org/licenses/LICENSE-2.0
.. _Mozilla Public License 2.0: https://www.mozilla.org/media/MPL/2.0/index.txt
.. _cookiecutter-pyxu: https://github.com/pyxu-org/cookiecutter-pyxu

.. _file an issue: https://github.com/joanrue/pyxu-eigh/issues

.. _tox: https://tox.readthedocs.io/en/latest/
.. _pip: https://pypi.org/project/pip/
todomanager 0.0.2
Manage your daily tasks in the terminal with the super readable command-line interface design
Requires Python: >=3.9

# ToDoManager
Human readble command line task manager

### Example commands
```
todo add "read a book"
todo list
todo check 1
todo delete 0
```

**ToDoManager** automatically create and stores all your tasks in YAML files.
You can find all your daylogs in the `$HOME/Documents/todo`

```
/home/alex/Documents/todo
├── 2024-06-04.yaml
└── 2024-06-05.yaml
```

Each **YAML** file represents a new **daylog**, containing all your tasks for a specific day