semvec/pypi-packages huggingface dataset:
sqlpage 0.1.0
Python package to add pagination to a model and return bas64 encoded pagination token
Requires Python: >=3.8

# SQLPage

Python library to easily add pagination on top of DB queries. Supports SQLAlchemy and SQLModel ORMs. This returns a 
base64 encoded string that can be used to paginate through the results.

## Usage

Install the latest version from PyPi

```bash
pip install sqlpage
```

Now configure your ORM and then simply call the `paginate` function to get the paginated results.

```python
result: PageData = paginate(session, query, page_size=page_size)
```

## Configuring with ORMs

Before using the `paginate` function, you need to configure the ORM. As SQLAlchemy and SQLModel uses different
ORMs, you need to configure them separately. This is a one-time setup and you would have already taken this while 
configuring the ORM when creating the DB models.

### SQLAlchemy

Create your table model

```python
Base = declarative_base()

class User(Base):
    __tablename__ = 'user'

    id = Column(Integer, primary_key=True)
    username = Column(String)
    email = Column(String)
```

Then create a DB session and call

```python
engine = create_engine(f"sqlite:///{DATABASE_NAME}", echo=False)
Base.metadata.create_all(engine)

SessionSqlAlchemy = sessionmaker(bind=engine)
session = SessionSqlAlchemy()

query = session.query(TestTable)

result: PageData = paginate(session, query, page_size=100)
```

### SQLModel

Create your table model

```python
class User(SQLModel, table=True):
    __tablename__ = 'user'

    id: int = Field(primary_key=True)
    username: str = Field(default=None)
    email: str = Field(default=None)

```

Then create a DB session and call

```python
engine = create_engine(f"sqlite:///{DATABASE_NAME}", echo=False)
Base.metadata.create_all(engine)

with Session(engine) as session:

    query = session.query(TestTable)

    result: PageData = paginate(session, query, page_size=100)
```

## Contributing 

Feel free to open an issues under the `Issues` tab. Contributions are welcome and appreciated.
geometricalgebra 0.1.3
A package for conformal geometric algebra
Requires Python: <4.0,>=3.9

# geometricalgebra

![badge](https://github.com/wandelbotsgmbh/geometricalgebra/actions/workflows/python-app.yml/badge.svg)

Library implementing conformal geometric algebra.

The key features are:
- Fast numerical implementation of multivector and its exterior algebra
- The library supports various backends (numpy, tensorflow, jax)
- Full support of autograd works when using jax and tensorflow
- All operation work for single multivector or tensors of multivector. Broadcasting is also supported.


# Installation

    pip install geometricalgebra

# Example

    from geometricalgebra import cga3d
    a = cga3d.e_0
    b = cga3d.e_1.up()
    c = cga3d.e_2.up()
    circle = a ^ b ^ c
    # The radius of a circle going through [0, 0, 0], [1, 0, 0], and [0, 1, 0]
    radius = circle.circle_to_center_normal_radius()[2].to_scalar()