semvec/pypi-packages huggingface dataset:
pylonparser 0.5.1
A tool to parse football game stats.
License: MIT
Requires Python: <4.0,>=3.10
Keywords: parser, football, stats, nfl, pro-football-by-reference

# PylonParser

This package is used to obtain Pro Football Reference and Basketball Reference using web scraping tables, for example to perform data analysis or data science. All rights belong to the respective sites and the package should not be used to load their servers. Please read the corresponding specifications in their robots.txt files.

## Installation

```sh
pip install pylonparser
```

Usage
Provide instructions on how to use your project. Include code examples if possible.
```sh
url = "https://www.basketball-reference.com/boxscores/202405220MIN.html"

basketball_match = BasketballMatch(url)
df = pd.DataFrame(basketball_match.basic_away)
print(df.head())

❯
          id             player     mp    fg   fga  fg_pct  fg3  fg3a  fg3_pct   ft  fta  ft_pct  orb  drb  trb  ast  stl  blk  tov   pf   pts plus_minus reason
0  washipj01    P.J. Washington  40:50   4.0  10.0   0.400  2.0   8.0     0.25  3.0  3.0   1.000  0.0  7.0  7.0  0.0  0.0  2.0  3.0  4.0  13.0        +12    NaN
1  doncilu01        Luka Dončić  40:45  12.0  26.0   0.462  3.0  10.0     0.30  6.0  7.0   0.857  0.0  6.0  6.0  8.0  3.0  1.0  4.0  2.0  33.0         -9    NaN
2  irvinky01       Kyrie Irving  40:09  12.0  23.0   0.522  0.0   3.0     0.00  6.0  6.0   1.000  1.0  4.0  5.0  4.0  0.0  1.0  2.0  3.0  30.0         +5    NaN
3  jonesde02  Derrick Jones Jr.  34:55   4.0   9.0   0.444  0.0   2.0     0.00  0.0  0.0   0.000  2.0  2.0  4.0  2.0  0.0  0.0  0.0  1.0   8.0         -8    NaN
4  gaffoda01     Daniel Gafford  21:07   5.0   9.0   0.556  0.0   0.0     0.00  0.0  0.0   0.000  4.0  5.0  9.0  0.0  0.0  1.0  2.0  2.0  10.0        -15    NaN

```
Testing
This project uses pytest for testing. To run the tests, use:

Contributing
Contributions are welcome! Please read the contributing guidelines first.

License
This project is licensed under the MIT License. See the LICENSE file for details.
paseto 2.0.0
Platform-Agnostic Security Tokens for Python (PASETO)
License: MIT
Requires Python: <4.0,>=3.8
Keywords: paseto, pypaseto, jwt, token

PASETO Tokens for Python
============================================
[![PyPI](https://img.shields.io/pypi/v/paseto.svg)](https://pypi.python.org/pypi/paseto)
[![PyPI - License](https://img.shields.io/pypi/l/paseto.svg)](https://pypi.python.org/pypi/paseto)
[![CI](https://github.com/rlittlefield/pypaseto/actions/workflows/main.yml/badge.svg)](https://github.com/rlittlefield/pypaseto/actions/workflows/main.yml)

This is an unofficial implementation of
![PASETO: Platform-Agnostic Security Tokens](https://paseto.io/) for Python.

PASETO versions supported: v2, v3, and v4

Please note that the v2 token type standard is expected to be deprecated in 2022, so new development should be done ideally on versions 3 or 4.

Installation
------------

    pip install paseto


Usage
-----

To create/parse paseto tokens, use the create/parse functions. These will
automatically handle encoding/decoding the JSON payload for you, and validate
claims (currently just the 'exp' expiration registered claim).

```python
import paseto
from paseto.keys.symmetric_key import SymmetricKey
from paseto.protocols.v4 import ProtocolVersion4
my_key = SymmetricKey.generate(protocol=ProtocolVersion4)

# create a paseto token that expires in 5 minutes (300 seconds)
token = paseto.create(
    key=my_key,
    purpose='local',
    claims={'my claims': [1, 2, 3]},
    exp_seconds=300
)

parsed = paseto.parse(
    key=my_key,
    purpose='local',
    token=token,
)
print(parsed)
# {'message': {'exp': '2021-10-25T22:43:20-06:00', 'my claims': [1, 2, 3]}, 'footer': None}
```

You can also make and verify "public" tokens, which are signed but not
encrypted:

```python
import paseto
from paseto.keys.asymmetric_key import AsymmetricSecretKey
from paseto.protocols.v4 import ProtocolVersion4
my_key = AsymmetricSecretKey.generate(protocol=ProtocolVersion4)

# create a paseto token that expires in 5 minutes (300 seconds)
token = paseto.create(
    key=my_key,
    purpose='public',
    claims={'my claims': [1, 2, 3]},
    exp_seconds=300
)

parsed = paseto.parse(
    key=my_key,
    purpose='public',
    token=token,
)
print(parsed)
# {'message': {'exp': '2021-10-25T22:43:20-06:00', 'my claims': [1, 2, 3]}, 'footer': None}
```


Changelog
---------

### v2.0.0
* Dropping support for python 3.7
* Adding support for python 3.11 and 3.12
* Dependency updates for pendulum, pysodium, pycryptodomex
AboutFinalProject 0.1
AboutPL
License: MIT
Requires Python: >=3.6

The provided code defines a system for managing an inventory of parts, with functionality for adding, updating, and deleting parts. The system is divided into two main classes: `Part` and `Inventory`.

### Part Class

The `Part` class represents an individual part in the inventory. It has three attributes:
- `part_number`: a unique identifier for the part.
- `part_description`: a brief description of the part.
- `price`: the cost of the part.

The class includes getters and setters for each attribute, with the setters allowing the part description and price to be updated.

### Inventory Class

The `Inventory` class manages a collection of `Part` objects. It provides methods to:
- `add_part(part_number, part_description, price)`: Adds a new part to the inventory. It ensures that the part number is unique and within the specified character limit.
- `delete_part(part_number)`: Removes a part from the inventory based on its part number.
- `change_description(part_number, new_description)`: Updates the description of an existing part.
- `change_price(part_number, new_price)`: Updates the price of an existing part.
- `get_all_parts()`: Returns a list of all parts currently in the inventory.

### User Interface

The `main()` function provides a simple command-line interface for interacting with the inventory system. It allows the user to:
- Add a new part to the inventory.
- Change the description or price of an existing part.
- Delete a part from the inventory.
- View a list of all parts in the inventory.
- Exit the program.

The interface guides the user through each operation, ensuring that inputs are valid and providing feedback on the success or failure of each operation.

### Implementation Notes

- The `Part` class uses Python's property decorators to manage attribute access and updates, encapsulating the internal state of each part.
- The `Inventory` class manages parts in a list and uses comprehensions and simple loops to find and update parts.
- The `main()` function includes input validation to ensure part numbers and descriptions are within specified lengths and that prices are valid numbers.

This system provides a foundational structure for managing a simple inventory of parts, suitable for educational purposes or as a base for further development into a more comprehensive inventory management system.

## Authors
- Jomar C. Geron
- Pyarwin Jake E. Janoras
- 3CS-A