semvec/pypi-packages huggingface dataset:
linkedpy 0.1.0
Python implementation of a default List using linked list

# linkedpy

`linkedpy` is a simple linked list implementation in Python, providing a custom `List` class with various methods for managing linked list operations.

## Features

- **Basic Operations:**
  - `append(value)`: Add a value to the end of the list.
  - `insert(index, value)`: Insert a value before the specified index.
  - `remove(value)`: Remove the first occurrence of a value.
  - `pop(index=None)`: Remove and return an item at a specified index (default is the last item).
  - `clear()`: Remove all items from the list.

- **Access and Indexing:**
  - `__getitem__(index)`: Get the item at a specific index.
  - `__setitem__(index, value)`: Set the item at a specific index.
  - `__delitem__(index)`: Delete the item at a specific index.

- **Information and Iteration:**
  - `count()`: Return the number of items in the list.
  - `__len__()`: Return the number of items in the list.
  - `to_list()`: Return the list as a normal Python list.
  - `__repr__()`: Return a string representation of the list.
  - `__iter__()`: Iterate over values in the list.

- **Concatenation:**
  - `__add__(other)`: Concatenate two lists using the `+` operator.
  - `__iadd__(other)`: In-place concatenation using the `+=` operator.

- **Statistical Operations:**
  - `min()`: Return the minimum value in the list.
  - `max()`: Return the maximum value in the list.

- **Sorting:**
  - `sort()`: Sort The list
  - `sorted()`: Return Sorted copy List

## Usage

```python
from linkedpy import List

# Create a new list
my_list = List(1, 2, 3)

# Append values
my_list.append(4)
my_list.append(5)

# Access elements
print(my_list[2])  # Output: 3

# Remove element
my_list.remove(2)

# Iterate over the list
for item in my_list:
    print(item)

# Concatenate lists
new_list = my_list + List(6, 7, 8)

# In-place concatenation
my_list += List(9, 10)

# Sorting

my_list.sort()

# Optional reverse argument
my_list.sorted(reverse=True)
fastapi-storages 0.3.0
FastAPI Storages
Requires Python: >=3.8
Keywords: django,fastapi,orm,sqlalchemy

<p align="center">
<a href="https://github.com/aminalaee/fastapi-storages">
    <img width="500px" src="https://raw.githubusercontent.com/aminalaee/fastapi-storages/main/docs/assets/images/banner.png" alt"FastAPI_Storages">
</a>
</p>

<p align="center">
<a href="https://github.com/aminalaee/fastapi-storages/actions">
    <img src="https://github.com/aminalaee/fastapi-storages/workflows/Tests/badge.svg" alt="Build Status">
</a>
<a href="https://github.com/aminalaee/fastapi-storages/actions">
    <img src="https://github.com/aminalaee/fastapi-storages/workflows/Publish/badge.svg" alt="Publish Status">
</a>
<a href="https://codecov.io/gh/aminalaee/fastapi-storages">
    <img src="https://codecov.io/gh/aminalaee/fastapi-storages/branch/main/graph/badge.svg" alt="Coverage">
</a>
<a href="https://pypi.org/project/fastapi-storages/">
    <img src="https://badge.fury.io/py/fastapi-storages.svg" alt="Package version">
</a>
<a href="https://pypi.org/project/fastapi-storages" target="_blank">
    <img src="https://img.shields.io/pypi/pyversions/fastapi-storages.svg?color=%2334D058" alt="Supported Python versions">
</a>
</p>

---

# FastAPI Storages

A collection of backend storages and ORM extensions to simplify file management in FastAPI and Starlette projects.

Similar to `django-storages` project, but aiming to work with a wider range of database ORMs and backends.

---

**Documentation**: [https://aminalaee.dev/fastapi-storages](https://aminalaee.dev/fastapi-storages)

**Source Code**: [https://github.com/aminalaee/fastapi-storages](https://github.com/aminalaee/fastapi-storages)

---

## Installation

```console
pip install fastapi-storages
pip install 'fastapi-storages[full]'
```

## Supported integrations

- `SQLAlchemy`
- `SQLModel`
- `SQLAdmin`

## Supported storage backends

- `FileSystemStorage`
- `S3Storage`

## Example

```python
from fastapi import FastAPI, UploadFile
from sqlalchemy import Column, Integer, create_engine
from sqlalchemy.orm import Session, declarative_base
from fastapi_storages import FileSystemStorage
from fastapi_storages.integrations.sqlalchemy import FileType

app = FastAPI()
Base = declarative_base()
engine = create_engine("sqlite:///test.db")


class Example(Base):
    __tablename__ = "example"

    id = Column(Integer, primary_key=True)
    file = Column(FileType(storage=FileSystemStorage(path="/tmp")))


# Create database and table
Base.metadata.create_all(engine)


@app.post("/upload/")
def create_upload_file(file: UploadFile):
    example = Example(file=file)
    with Session(engine) as session:
        session.add(example)
        session.commit()
        return {"filename": example.file.name}
```