semvec/pypi-packages huggingface dataset:
couchdb-client 1.2.6
Very simple CouchDB client
Requires Python: >=3.8

# CouchDB Client
A very simple [CouchDB](https://couchdb.apache.org) Python client.

## Installation
`pip install couchdb-client`

## Usage
See [example.py](https://github.com/EnzoPB/couchdb-client/blob/master/src/example.py)

## Notes
This is a library I made because the [IBM Cloudant SDK](https://github.com/IBM/cloudant-python-sdk) was to complex for what I needed.
This library does not have a lot of features, but I tried to keep its code very basic, so anyone can add a feature.

## License
[MIT License](https://github.com/EnzoPB/couchdb-client/blob/master/LICENSE)
pydantic-graph-persistence 0.1.1
Nice persistence abstractions for pydantic-graph
Requires Python: >=3.10
Keywords: database, graph, persistence, pydantic, pydantic-graph

# pydantic-graph-persistence

Persistence for the [`pydantic-graph`](https://pypi.org/project/pydantic-graph/) library.

Implement the persistence however you want by defining just 2 methods.
init-provider-sqlalchemy 0.1.1
SQLAlchemy provider for init-provider
Requires Python: >=3.10
Keywords: database, postgres, provider, service, singleton

<h1><code>init-provider-sqlalchemy</code></h1>

Database provider implemented using [`init-provider`](https://github.com/vduseev/init-provider).

![PyPI - Version](https://img.shields.io/pypi/v/init-provider-sqlalchemy)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/init-provider-sqlalchemy)
![PyPI - Status](https://img.shields.io/pypi/status/init-provider-sqlalchemy)
![PyPI - License](https://img.shields.io/pypi/l/init-provider-sqlalchemy)

Table of Contents

- [Quick start](#quick-start)
- [Installation](#installation)
- [License](#license)

## Quick start

Below is a full runnable example that uses everything in this library.

```python
import asyncio
import os
from init_provider import setup, dispose
from init_provider_sqlalchemy import Database
from sqlalchemy import text


@setup
def configure() -> None:
    os.environ["DATABASE_ENGINE_URL"] = "sqlite:///example.db"
    os.environ["DATABASE_ENGINE_ASYNC_URL"] = "sqlite+aiosqlite:///example.db"
    os.environ["DATABASE_ENGINE_ECHO"] = "False"
    os.environ["DATABASE_SESSION_EXPIRE_ON_COMMIT"] = "False"


@dispose
def cleanup() -> None:
    os.unlink("example.db")


def sync_test() -> None:
    with Database.session() as session:
        result = session.execute(text("SELECT 1"))
        print(result.scalar())


async def async_test() -> None:
    async with Database.async_session() as session:
        result = await session.execute(text("SELECT 1"))
        print(result.scalar())


async def main() -> None:
    sync_test()
    await async_test()


if __name__ == "__main__":
    asyncio.run(main())
```

## Installation

Using `pip`:

```shell
pip install init-provider-sqlalchemy
```

Using `uv`:

```shell
uv add init-provider-sqlalchemy
```

## License

Licensed under the [Apache-2.0 License](./LICENSE).
docstring-to-text 1.0.4a5
A simple pip package converting docstrings into clean text (proper paragraphs and indents)
Requires Python: >=3.7

<div align="center">
  
# docstring-to-text

[![PyPI][pypi-shield]][pypi-url]
[![GitHub Release][github-release-shield]][github-release-url]
[![Test status][github-tests-shield]][github-tests-url]

[pypi-shield]: https://img.shields.io/pypi/v/docstring-to-text?logo=pypi
[pypi-url]: https://pypi.org/p/docstring-to-text
[github-tests-shield]: https://github.com/Lex-DRL/Py-docstring-to-text/actions/workflows/test.yml/badge.svg?branch=main
[github-tests-url]: https://github.com/Lex-DRL/Py-docstring-to-text/actions/workflows/test.yml?query=branch%3Amain
[github-release-shield]: https://img.shields.io/github/v/release/Lex-DRL/Py-docstring-to-text?logo=github
[github-release-url]: https://github.com/Lex-DRL/Py-docstring-to-text/releases/latest

**A simple pip package converting docstrings into clean text.**<br />(proper paragraphs and indents)
</div>

For example, here's a class docstring:
```python
class MyClass:
  """
  This is a class docstring.
  
  
  It has sphinx-like paragraphs, which can
  span multiple lines. Any modern IDE would
  display them as a single line, that wraps
  the given width.
  
  You can't just remove all the new lines
  in the entire string, because you want
  to preserve paragraphs themselves.
  
  Also, when it comes to lists:
    - You probably want to separate items
    with new lines.
    - However, you don't want to preserve
    lines inside each item.
  
  And...
  * ... you might need various bullet
  characters.
  • Including unicode ones.
  
  And don't forget that the list still needs
  to be separated from the following text.
  """
  ...
```

With this package, you could do:
```python
from docstring_to_text import *

clean_text = format_docstring(cleandoc(MyClass.__doc__))
clean_text = format_object_docstring(MyClass)
```

Then, the resulting string would be:
```text
This is a class docstring.

It has sphinx-like paragraphs, which can span multiple lines. Any modern IDE would display them as a single line, that wraps the given width.
You can't just remove all the new lines in the entire string, because you want to preserve paragraphs themselves.
Also, when it comes to lists:
- You probably want to separate items with new lines.
- However, you don't want to preserve lines inside each item.
And...
* ... you might need various bullet characters.
• Including unicode ones.
And don't forget that the list still needs to be separated from the following text.
```

## Contributing

> [!NOTE]
> The package uses _slightly_ PEP-non-compliant [code style](CODESTYLE.md).