semvec/pypi-packages huggingface dataset:
numpyDealer 1.0.2
Playing cards in numpy decks.
License: MIT

numpyDealer version 1.0.0

This package is designed to be used to speed up operations involving decks of playing cards by utilizing the popular Numpy package. 
The meat of the package is numpyDeck. This is a managed array of playing cards, starting at the standard 52. 
Below I will go through the functions of the Card object, then the Deck object (which holds a numpy array of Cards). 

Additionally, I intend to add more examples, documentation, and features soon, so please feel free to send feedback!
Finally, the license MIT. I would love to see what the world does with my stuff, but y'all do what you want with it. 
Thanks for downloading, have fun!

Note: I use Jokers as sentry values in Deck functions.

Card
To import:
from numpyDealer.Card import Card

__init__(rank (string), suit (string), value (int))
EX: ace_of_spades = Card("A","S",14)

The == operator comapares based on rank and suit.

The > and < operators compares based on value.

The - operator returns the distance between 2 cards.
EX: King of Hearts - Ten of Clubs = 13

__str__ calls the Card as a string, and returns the Rank and Suit
EX: ace_of_spades.__str__() returns "AS"


numpyDeck
to import:
from numpyDealer.numpyDeck import Deck


__init__()
EX: new_deck = Deck()
This creates a full deck, in order
All Ranks are 1 character strings, 2,3..., 9,T,J,Q,K,A.
All Suits are 1 character strings, S,H,C,D

__iter__() returns an iterable version, lets you use for loops.

deal() returns the top Card from the deck, and removes it.

dealByRankSuit(rank, suit) deals the specified card, if it is in the deck.
else returns a red joker. (Card("Joker ", "Red", -1))

dealRand() deals a random card.

+ and - operators are overloaded, do what you'd think. 
They CAN take iterable objects of Cards, or just single Cards

Note on the print functions: These are available, but you can use a for loop to print each element. 
print() prints a list of the cards in the deck, in the order they are in.

printBySuit() prints all the cards in the deck in 4 rows, 1 for each suit. 
THIS DOES NOT SORT THE DECK, ONLY PRINTS THEM IN THE ROWS
THIS DOES NOT PRINT JOKERS, USE THE OTHER PRINTS TO FIND THOSE

shuffle() Shuffles the deck. DOES NOT return a value.
flaskvel 2.1
A small package for validating incoming HTTP requests
License: MIT
Requires Python: >=3.6
Keywords: flask,http,validator,request validator,http validator

# FlaskVel

A small package that provides a convenient method to validate incoming HTTP requests with a variety of powerful validation rules, highly customizable and heavily influenced by Laravel.

#### Jump straight to the [documentation](https://bogdan9898.github.io/flaskvel).

---

## Instalation

To install FlaskVel run:

```
pip install flaskvel
```

FlaskVel is now installed, check out the [Quickstart](#quickstart).

> This package is only compatible with Python 3+.

---

## Quickstart

Lets suppose we want an endpoint that is used to register a user. First of all, we have to instantiate Flask and to also [initialize FlaskVel](https://bogdan9898.github.io/flaskvel/#/?id=initialization) by calling the constructor with its appropriate parameters.

```python
# main.py

from flask import Flask, jsonify
from flaskvel import Flaskvel, validate, BodyFormats

app = Flask(__name__)
Flaskvel(app)
```

Now we are ready to define our endpoint.

```python
# main.py

@app.route("/register", methods=["POST"])
def register():
    # some code for registering the user
    # ...
    return jsonify({"status": "ok"}), 200
```

To add validations let's create a class that derives from `flaskvel.Validator` and contains the rules.

```python
# MyValidator.py

from flaskvel import Validator, Rules

class MyValidator(Validator):
    def __init__(self, *args, **kwargs):
    super().__init__(*args, **kwargs) # MUST always be called first
        self.rules = {
            "username": ["required", "string"],
            "password": ["required", "string", "min:8", "max:32", "confimed"],
            "email": [Rules.REQUIRED, Rules.EMAIL] # we can also use predefined constants instead of strings
        }
```

> For more info about writing rules see [Rules syntax](https://bogdan9898.github.io/flaskvel/#/?id=rules-syntax).

Now we can add our validator to the endpoint using one of [the decorators](https://bogdan9898.github.io/flaskvel/#/?id=the-decorators) provided by FlaskVel.

```python
@app.route("/register", methods=["POST"])
@validate(MyValidator, BodyFormats.ANY)
def register():
    return jsonify({"status": "ok"}), 200
```

> The decorator used, `@validate(...)` or `@validate_no_validator(...)`, must be positioned after `@app.route(...)`.


> You can find a list of all the rules [here](https://bogdan9898.github.io/flaskvel/#/rules).

---

#### Jump straight to the [documentation](https://bogdan9898.github.io/flaskvel).
deesk 0.1.0
Async storages for Python.
License: MIT
Requires Python: >=3.8.0,<4.0.0

# Deesk

Async storages for Python.

![PyPI](https://img.shields.io/pypi/v/deesk)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/alex-oleshkevich/deesk/Lint)
![GitHub](https://img.shields.io/github/license/alex-oleshkevich/deesk)
![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/pypi/deesk)
![PyPI - Downloads](https://img.shields.io/pypi/dm/deesk)
![GitHub Release Date](https://img.shields.io/github/release-date/alex-oleshkevich/deesk)
![Lines of code](https://img.shields.io/tokei/lines/github/alex-oleshkevich/deesk)

## Installation

Install `deesk` using PIP or poetry:

```bash
pip install deesk
# or
poetry add deesk
```

## Features

-   TODO

## Quick start

See example application in `examples/` directory of this repository.