semvec/pypi-packages huggingface dataset:
pyyarl 1.0.0
Yet Another Rate Limiter (for Python)

# pyyarl

`pyyarl` (Yet Another Rate Limiter for Python) is a Python package for rate
limiting function calls.

A lot of Python rate limiting packages seem to exist, but many of them do not
have the desired behavior in many use cases. For example, many clear tasks only
when the period has elapsed, rather than using a sliding window, or they may
mark a task as done prior to running the function rather than after.

`pyyarl` uses a sliding window of completion times to enforce the rate limit, and
is simple to use. `pyyarl` currently supports single and multithreaded execution.

## Table of Contents

- [Quickstart](#quickstart)
- [Having multiple functions limited
  together](#having-multiple-functions-limited-together)

## Quickstart

For example, the default Google Docs read request quota might be 300 requests
per minute:

```python3
from pyyarl import rated_limited

@rate_limited(max_calls=300, period_s=60)
def make_read_request(file_id):
    ...  # some request to the Google Docs API


for file_id in file_ids:
    res = make_read_request(file_id)
```

## Having multiple functions limited together

Sometimes, you want to limit multiple functions together such that their calls
count towards the same rate.

```python3
from pyyarl import RateLimiter

rate_limiter = RateLimiter(max_calls=300, period_s=60)

@rate_limiter
def make_read_request_one(file_id) -> bool:
    ...  # some request to the Google Docs API


@rate_limiter
def make_read_request_two(file_id):
    ...  # some other request to the Google Docs API


for file_id in file_ids:
    if make_read_request_one(file_id):
        make_read_request_two(file_id)
```
qhub-jupyterhub-theme 0.3.6
QHub jupyterhub theme
Requires Python: !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4
Keywords: jupyterhub theme

**Please submit issues to https://github.com/quansight/qhub/issues**

# Custom JupyterHub Template for QHub

This repo contains html jinja2 templates for customising the
appearance of JupyterHub. Each HTML file here will override the files
in https://github.com/jupyterhub/jupyterhub/tree/master/share/jupyter/hub/templates.

## Usage

Install `qhub_jupyterhub_theme` in your environment

```shell
pip install qhub_jupyterhub_theme
```

Add the following to the jupyterhub configuration to pickup the new
jinja2 templates directory and static files.

```python
from qhub_jupyterhub_theme import theme_extra_handlers, theme_template_paths

c.JupyterHub.extra_handlers = theme_extra_handlers

c.JupyterHub.template_paths = theme_template_paths
```

Finally customize the templates via the `template_vars`. Current
options are:
 - `hub_title`
 - `hub_subtitle`
 - `welcome`
 - `logo`
 - `primary_color`
 - `secondary_color`
 - `accent_color'
 - `text_color`
 - `h1_color`
 - `h2_color`
 - `navbar_text_color`
 - `navbar_hover_color`

 Internal options:
 - `cdsdashboards_enabled`
 - `cdsdashboards_restricted`
 - `qhub_theme_extra_js_urls`

Inspiration is in the test jupyterhub configuration
`test_jupyterhub_config.py`.

```python
c.JupyterHub.template_vars = {
    'hub_title': 'This is QHub',
    'hub_subtitle': 'your scalable open source data science laboratory.',
    'welcome': 'have fun.',
}
```

## Testing

Install the development environment

```shell
conda env install -f environment.yaml
```

You do not need to restart jupyterhub to see changes in `custom` and
`templates`. Run jupyterhub via the test script

```shell
jupyterhub --config test_jupyterhub_config.py
```

To run in VSCode, here is a launch.json config:
```
{
    "name": "JupyterHub test",
    "type": "python",
    "request": "launch",
    "module": "jupyterhub",
    "args": ["-f", "./test_jupyterhub_config.py"],
    "cwd": "${workspaceFolder}"
}
```
You would need to make sure the Python virtualenv you've set up for this is active in the project.

## Changelog
Version 0.3.6
- Extend navbar links #16

Version 0.3.5
- Updates to the version display style #15

Version 0.3.4
- Updades to Readme
- Expose navbar color options #12
- Add option to display Qhub version #13

Version 0.3.3
- Simplify the JupyterHub config (backwards-compatible)
- Added testing docs for VScode

Version 0.3.2
- Added Dashboards menu page and header
- Added custom js tag functionality #11

Version 0.3.1
- Add text color and defaults to template options #9

Version 0.3.0
- Adds colors! :tada:
vsparsedvd 0.1.0
Vapoursynth Wrapper for DVDs stuff
Requires Python: >=3.10

# vs-parsedvd

### DVDs were an error.
<br>

A wrapper for DVD file structure and ISO files.

You can find me in the [IEW Discord server](https://discord.gg/qxTxVJGtst), @Setsugennoao#6969.
<br><br>
## How to install

Install `vsparsedvd` with the following command:

```sh
$ pip install vsparsedvd
```

Or if you want the latest git version, install it with this command:

```sh
$ pip install git+https://github.com/Irrational-Encoding-Wizardry/vs-parsedvd.git
```
<br>

## Usage

After installation, functions can be loaded and used as follows:

```py
from vsparsedvd import IsoFile, DGIndexNV

# Indexing with D2VWitch
haruhi = IsoFile(r".\Suzumiya_2009_DVD\KABA_6001.ISO")
...
# Indexing with DGIndexNV
haruhi = IsoFile(r".\Suzumiya_2009_DVD\KABA_6001.ISO", DGIndexNV())

ep1, ep2, dvd_menu = haruhi.get_title(None, [(0, 7), (8, 15), -1])
...
```