semvec/pypi-packages huggingface dataset:
distinctid 1.0.4
A unique number generator
Requires Python: >=3.10

# DISTINCTID
With `distinctid`, you can generate distinct/unique IDs. Just think of it as something that can replace your UUID. It has the advantage of being a long integer and can be sorted in ASC or DESC order.

# Philosophy
This code is pure Python and relies on [this article](https://instagram-engineering.com/sharding-ids-at-instagram-1cf5a71e5a5c) which led to [this](https://gist.github.com/ichux/1b5d15129370341811fb12eb7e333917), [this](https://github.com/ichux/postgresql-id-shard) and this present project you are reading now.

# 100% Unittest Coverage
See the unittest to know how to use it

```bash
pip install coverage

# unittest
python -m unittest discover

# OR

# coverage with unittest
coverage run -m unittest discover \
    && coverage html && coverage report

# browse: htmlcov/index.html 
```

# How to Compile
```bash
pip install build twine
python3 -m build

# add the below line to pyproject.toml to upload, but it has to be removed for the build to work
[pypi]
username = __token__

# upload
python3 -m twine upload --repository distinctid dist/*
```
kirpi 1.0.0
Lightweight and simple ORM for Python (with psycopg)

# Kirpi ORM
## Lightweight and simple ORM library for Python(with psycopg)

### Installation
```bash
pip install kirpi
```
### Initialization
```bash
kirpi init
```
### Write models
```python
# models/user.py
from kirpi import types


class User(types.Model):
    id = types.Serial(primary_key=True, null=False)
    username = types.VarChar(max_len=20, unique=True)
    first_name = types.VarChar(max_len=20)
    last_name = types.VarChar(max_len=20)

User().create()
```

### Write schemas
```python
# schemas/user.py
from dataclasses import dataclass
from kirpi import Model
from models.user import User as user


@dataclass
class User(user, Model):
    id: int
    username: str
    first_name: str
    last_name: str
```

### Usage models and schemas
```python
# test.py
from schemas.user import User as UserSchema
from models.user import User

all_users = User.all(schema=UserSchema)
print(all_users)
```

### get all objects ```Model.all()```
```python
# returns list of all users on page 1
users = User.all()

# returns list of all users on page 2
users_page_2 = User.all(page=2)
```

### get objects with filter ```Model.filter()```
```python
# returns a list of all users whose first_name starts with Ali
User.filter(first_name_starts_with="Ali")
```

### get one object ```Model.get()```
```python
# returns a user whose id is equal to 1 
User.get(id=1)
```
fastapi-jwt-auth-compat 1.0.1
A fork of the original fastapi-jwt-auth compatible with Pydantic 2.* versions

<h1 align="left" style="margin-bottom: 20px; font-weight: 500; font-size: 50px; color: black;">
  FastAPI JWT Auth
</h1>

![Tests](https://github.com/IndominusByte/fastapi-jwt-auth/workflows/Tests/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/IndominusByte/fastapi-jwt-auth/badge.svg?branch=master)](https://coveralls.io/github/IndominusByte/fastapi-jwt-auth?branch=master)
[![PyPI version](https://badge.fury.io/py/fastapi-jwt-auth.svg)](https://badge.fury.io/py/fastapi-jwt-auth)
[![Downloads](https://static.pepy.tech/personalized-badge/fastapi-jwt-auth?period=total&units=international_system&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/fastapi-jwt-auth)

---

**Documentation**: <a href="https://indominusbyte.github.io/fastapi-jwt-auth" target="_blank">https://indominusbyte.github.io/fastapi-jwt-auth</a>

**Source Code**: <a href="https://github.com/jean-ek/fastapi-jwt-authV2" target="_blank">https://github.com/jean-ek/fastapi-jwt-authV2</a>

**Original Legacy Library**: <a href="https://github.com/IndominusByte/fastapi-jwt-auth" target="_blank">https://github.com/IndominusByte/fastapi-jwt-auth</a>

---

## Notes:
<b> This is a modified version of the original fastapi-jwt-auth library to add compatibility with pydantic versions 2.* </b>

## Features
FastAPI extension that provides JWT Auth support (secure, easy to use and lightweight), if you were familiar with flask-jwt-extended this extension suitable for you, cause this extension inspired by flask-jwt-extended 😀

- Compatible with pydantic 2.* versions
- Access tokens and refresh tokens
- Freshness Tokens
- Revoking Tokens
- Support for WebSocket authorization
- Support for adding custom claims to JSON Web Tokens
- Storing tokens in cookies and CSRF protection

## Installation
The easiest way to start working with this extension with pip

```bash
pip install fastapi-jwt-auth-compat
```

## License
This project is licensed under the terms of the MIT license.