semvec/pypi-packages huggingface dataset:
pyrepositories 2.1.1
A simple way to interact with a database using the SOLID principles' Repository pattern.
Requires Python: >=3.8

# Python SOLID Repository pattern implementations

This repository contains a simple implementation of the Repository pattern in Python. The implementation is based on the SOLID principles.

It supports:
- PostgreSQL
- JSON

## Usage

Check the ./scripts/main.py for a full example.

```py

# main.py

# ...

# Define the fields for the table and entities

datasource = DataSource()

table = JsonTable('users', os.path.join(path_root, 'scripts', 'data'), fields)
datasource.add_table(table)

datasource.clear('users')

dummy_users = [
    User('John Doe', 'test@asd.com', 'johndoe'),
    User('Jane Doe', 'test3@asd.com', 'janedoe'),
    User('Mary Poppins', 'poppinst@industry.com', 'marypoppins'),
]

for user in dummy_users:
    datasource.insert('users', user)

filters = [
    Filter([
        FilterCondition('name', 'Doe', FilterTypes.CONTAINS),
        FilterCondition('email', 'test@asd.com', FilterTypes.EQUAL)
    ]),
    Filter([
        FilterCondition('name', 'Mary', FilterTypes.CONTAINS),
    ])
]

for user in datasource.get_by_filters('users', filters):
    print(user)

print("Unique") 
mary = datasource.get_unique('users', 'username', 'marypoppins')
print(mary)

```
artiruno 0.4.3
Verbal decision analysis
Requires Python: >=3.8

.. image:: https://i.imgur.com/GlZ6CEM.png
  :alt: Art by Ken Sugimori
  :align: center

.. role:: html(raw)
   :format: html

Artiruno is a program to help you make decisions with verbal decision analysis. It's also a Python library with a class for `preordered sets`_ that should be just as useful outside the context of decision-making.

- `Try Artiruno in your web browser <http://arfer.net/projects/artiruno/webi>`_
- `Documentation <http://arfer.net/projects/artiruno/doc>`_

.. _`preordered sets`: https://en.wikipedia.org/wiki/Preorder

Publication
============================================================

Arfer, K. B. (2024). Artiruno: A free-software tool for multi-criteria decision-making with verbal decision analysis. *Journal of Multi-Criteria Decision Analysis, 31*. ``doi:10.1002/mcda.1827``. Retrieved from http://arfer.net/projects/artiruno/paper

License
============================================================

This program is copyright 2024 Kodi B. Arfer.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the `GNU General Public License`_ for more details.

.. _`GNU General Public License`: http://www.gnu.org/licenses/
clementine 2024.4.6
🍊 A sweet little Python package
Requires Python: >=3.9

# clementine

[![License][license_badge]][license_link]
[![PyPI][pypi_badge]][pypi_link]
[![Repo Size][repo_size_badge]][repo_size_link]
[![Docs][docs_badge]][docs_link]
[![Release][release_badge]][release_link]

Clementine is a sweet little Python package. It's just for fun and shouldn't
be used for anything serious.

## Installation

Installing with pip:

```sh
pip install clementine
```

## License

Copyright &copy; 2023 [Suzen Fylke](https://suzenfylke.com). Distributed under the MIT License.


[docs_badge]: https://img.shields.io/github/actions/workflow/status/codesue/clementine/publish-docs.yml?label=docs&colorA=363a4f&colorB=b7bdf8&style=flat
[docs_link]: https://github.com/codesue/clementine/actions/workflows/publish-docs.yml

[license_badge]: https://img.shields.io/github/license/codesue/clementine?colorA=363a4f&colorB=b7bdf8&style=flat
[license_link]: https://github.com/codesue/clementine/tree/main/LICENSE

[pypi_badge]: https://img.shields.io/pypi/v/clementine?colorA=363a4f&colorB=b7bdf8&style=flat
[pypi_link]: https://pypi.org/project/clementine

[release_badge]: https://img.shields.io/github/actions/workflow/status/codesue/clementine/publish-pypi.yml?label=release&colorA=363a4f&colorB=b7bdf8&style=flat
[release_link]: https://github.com/codesue/clementine/actions/workflows/publish-pypi.yml

[repo_size_badge]: https://img.shields.io/github/repo-size/codesue/clementine?colorA=363a4f&colorB=b7bdf8&style=flat
[repo_size_link]: https://github.com/codesue/clementine