semvec/pypi-packages huggingface dataset:
balldontlie 0.1.6
Python SDK for the BALLDONTLIE API
License: MIT
Requires Python: >=3.8

# BALLDONTLIE API

Official Python SDK for the BALLDONTLIE API. Access NBA, NFL, and MLB statistics and data. Check out the official website [here](https://app.balldontlie.io).

## Installation

```bash
# Install the latest version
pip install balldontlie

# Install a specific version
pip install balldontlie==0.1.0
```

## Usage

```python
from balldontlie import BalldontlieAPI

api = BalldontlieAPI(api_key="your-api-key")

# NBA (see documentation for full list of methods)
api.nba.teams.list()

# MLB
api.mlb.teams.list()

# NFL
api.nfl.teams.list()

```

## API Reference

Check out the full API documentation:
[NBA](https://nba.balldontlie.io)
[NFL](https://nfl.balldontlie.io)
[MLB](https://mlb.balldontlie.io)

## Error Handling

```python
from balldontlie import BalldontlieAPI
from balldontlie.exceptions import (
    AuthenticationError,
    RateLimitError,
    ValidationError,
    NotFoundError,
    ServerError,
    BallDontLieException
)

client = BalldontlieAPI(api_key="your_key")

try:
    teams = client.nba.teams.list()
except AuthenticationError as e:
    print(f"Invalid API key. Status: {e.status_code}, Details: {e.response_data}")
except RateLimitError as e:
    print(f"Rate limit exceeded. Status: {e.status_code}, Details: {e.response_data}")
except ValidationError as e:
    print(f"Invalid request parameters. Status: {e.status_code}, Details: {e.response_data}")
except NotFoundError as e:
    print(f"Resource not found. Status: {e.status_code}, Details: {e.response_data}")
except ServerError as e:
    print(f"API server error. Status: {e.status_code}, Details: {e.response_data}")
except BallDontLieException as e:
    print(f"General API error. Status: {e.status_code}, Details: {e.response_data}")
except Exception as e:
    print(f"Unexpected error: {str(e)}")
```
tox-workdir 0.1.0
Put tox work directories in a cache directory by default
License: MIT
Requires Python: >=3.9
Keywords: tox, plugin

tox-workdir
###########

*Put tox work directories in a cache directory by default.*

----

By default, tox will create packaging and test environments in a ``.tox/`` subdirectory
in the same directory as the project's ``tox.ini`` or ``pyproject.toml`` file.

..  code-block:: text

    .tox/
    |   +-- .pkg/
    |   +-- docs/
    |   +-- mypy/
    |   +-- py39/
    |   +-- py310/
    |   +-- py311/
    |   +-- py312/
    |   \-- py313/
    |
    \-- tox.ini

As you interact with more and more projects,
those ``.tox/`` directories will proliferate throughout your filesystem.

This default behavior makes it harder to clean up all of your cached environments
and can make backups slow (and potentially expensive).

tox-workdir changes the default work directory to point to your user cache directory,
keeping your development directories trim and sleek over time.


Installation
============

If you're using pipx, inject tox-workdir into your existing tox install:

..  code-block:: text

    pipx inject tox tox-workdir

If you're using a virtual environment, install tox-workdir as a regular package:

..  code-block:: text

    pip install tox-workdir

No configuration is needed;
installing the plugin immediately changes the default ``work_dir`` value.


Work directory paths
====================

Where tox defaults to ``.tox/``, tox-workdir defaults to your user cache directory:

=================== ===============================================================
Operating system    Base path
=================== ===============================================================
Linux               ``$XDG_CACHE_DIR/tox-workdir/``
macOS               ``/Users/{user}/Library/Caches/tox-workdir/``
Windows             ``C:\Users\{user}\AppData\Local\kurtmckee\tox-workdir\Cache\``
=================== ===============================================================

Note that ``$XDG_CACHE_DIR``, above, defaults to ``$HOME/.cache`` if unset.

A hash of the path to the tox config file is used as a subdirectory for uniqueness.

You can see the ``workdir`` value that will be used by running:

..  code-block:: text

    tox workdir


Feel-good benefits
==================

To feel good about your choice to install this plugin,
simply check how much space ``.tox/`` directories are consuming.
Then, think about how much faster your backups will process
without all of those ``.tox/`` directories!

Assuming that you have a development directory with a number of project directories,
you can run one of the following commands to see how much space is consumed
by ``.tox/`` subdirectories.

On Linux and macOS:

..  code-block:: console

    $ du -csh */.tox | tail -n 1
    10G     total

On Windows, using Powershell:

..  code-block:: console

    $ (Get-ChildItem -Recurse */.tox | Measure-Object -Property Length -Sum).Sum / 1GB
    10.00000000
pyhecdss 1.5.12
For reading/writing HEC-DSS files
License: MIT
Requires Python: >=3.11
Keywords: pyhecdss, hec-dss, hydrology

========
pyhecdss
========

>  **Note:** This project only supports **DSS version 6** and now recommends users to `HEC-DSS Python`_ version 7 and higher

For reading/writing HEC-DSS files [https://www.hec.usace.army.mil/software/hec-dss/]
HEC-DSS is an ancient database used by the Army Corps of Engineers and prevalent
in water related models. This module is a bridge to read and write time series
data from this data format and read it into pandas DataFrame

* Free software: MIT license
* Documentation: https://cadwrdeltamodeling.github.io/pyhecdss/


Features
--------

* Open and close DSS files
* Read catalog of DSS files as pandas DataFrame
* Read and write time series from DSS files

Limitations
-----------

* Only support for Python 3 - 64 bit for windows and linux
* Relies on pre-compiled libraries the source distribution of which is not allowed

Credits
-------

This package wraps the `HEC-DSS Software`_ using the `Swig`_ library.

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
.. _`HEC-DSS Software`: https://www.hec.usace.army.mil/software/hec-dss/
.. _`HEC-DSS Python`: https://github.com/HydrologicEngineeringCenter/hec-dss-python
.. _Swig: http://www.swig.org/