semvec/pypi-packages huggingface dataset:
version-control 0.0.8
Django Version Control
License: MIT

.. image:: https://img.shields.io/pypi/l/version_control.svg
   :target: https://raw.githubusercontent.com/kuter/django-version-control/master/LICENSE

.. image:: https://img.shields.io/pypi/v/version_control.svg
    :target: https://pypi.python.org/pypi/version_control/
    :alt: Latest PyPI version

.. image:: https://travis-ci.org/kuter/django-version-control.svg?branch=master
    :target: https://travis-ci.org/kuter/django-version-control

.. image:: https://coveralls.io/repos/github/kuter/django-version-control/badge.svg?branch=master
    :target: https://coveralls.io/github/kuter/django-version-control?branch=master

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/python/black


======================
Django Version Control
======================
Third-party app created with https://github.com/kuter/django-plugin-template-cookiecutter

Quick start
-----------

1. Install version_control:

.. code:: python

   $ pip install version_control

2. Add "version_control" to your INSTALLED_APPS setting like this:

.. code:: python

    INSTALLED_APPS = [
        ...
        "version_control",
    ]

3. Enable "version_control" in your settings module as follows:

.. code:: python

    MIDDLEWARE = [
        "version_control.middleware.VersionControlMiddleware"
    ]

4. Install third-party modules

For projects running under git source control::

    $ pip install GitPython

For mercurial projects::

    $ pip install hglib  # python 3.x
    $ pip install python-hglib  # python 2.7.x
pytask-queue 1.0.3
A simple queue for Python tasks
License: MIT
Requires Python: >=3.10

![Logo Picture](https://github.com/jaypyles/pytask/blob/main/docs/worker.png)

# pytask

A simple sqlite3-based job queue with a worker. Main purpose is to run jobs in a queue. Jobs are not popped from the queue, which means the queue can act as a history.

## Installation

`pip install pytask-queue`

## Usage

The worker will run the function `func` for each job. The function will be passed a `Job` object. Which means that you can alter the job object in the function, and the newly updated job will be saved to the queue. 

```python
# python process 1
from pytask import Queue, Job, SQLDataType, SQLColumnConditions

queue = Queue(schema=[
    ("foo", SQLDataType.INTEGER, [SQLColumnConditions.NOT_NULL]), 
    ("bar", SQLDataType.TEXT, [SQLColumnConditions.NOT_NULL]), 
    ("baz", SQLDataType.JSON, [SQLColumnConditions.NOT_NULL])
])
queue.insert(Job(data={"foo": 1, "bar": "test", "baz": {"foo": "bar"}}))
```

```python
# python process 2
from <relative_file> import queue
from pytask import Job

def func(job: Job):
    # Do something with job
    job.data["foo"] += 1

worker = Worker(queue, func)
worker.run()
```

Creating multiple queues or multiple workers is possible. Creating a new queue object won't actually create a new queue, it just creates a new connection to the queue. Which means you can have multiple queue objects pointing to the same queue, or you can use the same queue object for multiple workers.

Be careful to avoid race conditions when using the same queue object for multiple workers.

## Flags

Flags are used to configure the behavior of the queue and worker.

Current flags:

- `auto_convert_json_keys`: If True, the queue will automatically convert JSON keys to strings. Useful for retrieving and manipulating JSON data.
- `pop_after_processing`: If True, the job will be popped from the queue after processing.

```python
from pytask import Queue, Worker, Job, SQLDataType, SQLColumnConditions, Flags

flags = Flags(auto_convert_json_keys=True, pop_after_processing=True)
queue = Queue(schema=[("foo", SQLDataType.INTEGER, [SQLColumnConditions.NOT_NULL])], flags=flags)

worker = Worker(queue, func, logger=logger)
worker.run()
```

## Concurrent Worker

The concurrent worker is a worker that runs jobs in parallel. It uses a thread pool to run the jobs.

```python
from pytask import Queue, ConcurrentWorker, Job, SQLDataType, SQLColumnConditions

worker = ConcurrentWorker(queue, func, logger=logger, interval=1, max_workers=16)
worker.run()
```
font-rename-fm 0.1.1
Renames fonts to their internal name and unpacks .ttc/.otc files.
License: MIT
Requires Python: <4.0,>=3.12
Keywords: font, rename, typeface, unpack, ttf, otf, ttc, otc

# font-rename-fm

Renames fonts to their internal name and unpacks .ttc/.otc files.Updated to use [faust-cchardet](https://pypi.org/project/faust-cchardet/) instead of the obsolete [cchardet](https://pypi.org/project/cchardet/).

```bash
pip install font-rename-fm
font-rename insert/directory/file/path/here
```

## Changelog

### v0.1.0

- Initial Release