semvec/pypi-packages huggingface dataset:
gameinventory 0.1.1
A simple game inventory manager
Requires Python: >=3.9

# Description

This package is used if you want a simple inventory for a text based game or just in general. This package is in development and in a testing stage.

# Basic Usage


```python
from gameinventory import Inventory
inventory = Inventory()
inventory.add_item("YOUR ITEM")
print(inventory.get_inventory()) # Output: [Item(name: "Your item", amount: 1)]
```

# Functions

These are the current functions


| Functions                                            | Description                                                  |
| ---------------------------------------------------- | ------------------------------------------------------------ |
| add_item(item: str, amount: int = 1) -> None         | Adds a item to the inventory                                 |
| remove_item(item_name: str, amount: int = 1) -> None | Removes a item in the inventory                              |
| get_item_at_index(index: int) -> str                 | Returns the item in the inventory at index                   |
| get_item_amount(item_name: str) -> int               | Returns the item amount at a index                           |
| get_inventory() -> list                              | returns list inventory                                       |
| where(item_name: str) -> int                         | returns the index of an item                                 |
| list_inventory() -> None                             | Prints all the items with a number besides them indicating them |
| display_inventory() -> None                          | Prints all the items in the inventory                        |
dynamic-rest-bse 2.5.3
Dynamic API support to Django REST Framework. Forked...

Dynamic REST
===================

.. image:: https://coveralls.io/repos/github/BillSchumacher/dynamic-rest/badge.svg?branch=main
 :target: https://coveralls.io/github/BillSchumacher/dynamic-rest?branch=main

**Dynamic API extensions for Django REST Framework**

See http://dynamic-rest.readthedocs.org for full documentation.

Overview
========

Dynamic REST (or DREST) extends the popular `Django REST
Framework <https://django-rest-framework.org>`__ (or DRF) with API
features that empower simple RESTful APIs with the flexibility of a
graph query language.

DREST classes can be used as a drop-in replacement for DRF classes,
which offer the following features on top of the standard DRF kit:

-  Linked relationships
-  Side-loaded relationships
-  Embedded relationships
-  Field inclusions
-  Field exclusions
-  Field-based filtering
-  Field-based sorting
-  Directory panel for your Browsable API
-  Optimizations

DREST was initially written to complement `Ember
Data <https://github.com/emberjs/data>`__, but it can be used to provide
fast and flexible CRUD operations to any consumer that supports JSON
over HTTP.

Maintainers
-----------

-  `Anthony Leontiev <mailto:aleontiev@tohigherground.com>`__
-  `Savinay Nangalia <mailto:snangalia@tohigherground.com>`__
-  `Christina D'Astolfo <mailto:cdastolfo@tohigherground.com>`__

Requirements
============

-  Python (3.9, 3.10, 3.11, 3.12)
-  Django (3.1, 3.2, 4.0, 4.1, 4.2, 5.0, 5.1)
-  Django REST Framework (3.11, 3.12, 3.13, 3.14, 3.15, 3.16)
film-sdk-daouda 0.0.2
SDK Python pour accéder à l’API MovieLens (Data Analysts/Data Scientists friendly)
Requires Python: >=3.11.7

# MovieLens SDK - `film_sdk_daouda`

Un SDK Python simple pour interagir avec l’API REST MovieLens. Il est conçu pour les **Data Analysts** et **Data Scientists**, avec une prise en charge native de **Pydantic**, **dictionnaires** et **DataFrames Pandas**.

[![PyPI version](https://badge.fury.io/py/film-sdk-daouda.svg)](https://badge.fury.io/py/film-sdk-daouda)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)

---

## Installation

```bash
pip install film-sdk-daouda
```

---

## Configuration

```python
from film-sdk-daouda import MovieClient, MovieConfig

# Configuration avec l’URL de votre API (Render ou locale)
config = MovieConfig(movie_base_url="https://movielens-api-project.onrender.com")
client = MovieClient(config=config)
```

---

## Tester le SDK

### 1. Health check

```python
client.health_check()
# Retourne : {"status": "ok"}
```

### 2. Récupérer un film

```python
movie = client.get_movie(1)
print(movie.title)
```

### 3. Liste de films au format DataFrame

```python
df = client.list_movies(limit=5, output_format="pandas")
print(df.head())
```

---

## Modes de sortie disponibles

Toutes les méthodes de liste (`list_movies`, `list_ratings`, etc.) peuvent retourner :

- des objets **Pydantic** (défaut)
- des **dictionnaires**
- des **DataFrames Pandas**

Exemple :

```python
client.list_movies(limit=10, output_format="dict")
client.list_ratings(limit=10, output_format="pandas")
```

---

## Tester en local

Vous pouvez aussi utiliser une API locale :

```python
config = MovieConfig(movie_base_url="http://localhost:8000")
client = MovieClient(config=config)
```

---

## Public cible

- Data Analysts
- Data Scientists
- Étudiants et curieux en Data
- Développeurs Python

---

## Licence

MIT License

---

## Liens utiles

- API Render : [https://movielens-api-project.onrender.com](https://movielens-api-project.onrender.com)
- PyPI : [https://pypi.org/project/film-sdk-daouda](https://pypi.org/project/film-sdk-daouda)