semvec/pypi-packages huggingface dataset:
django-moj-irat 0.12
Tools to support adding a Django-based service to Ministry of Justice’s Incidence Response and Tuning
License: MIT
Requires Python: >=3.6
Keywords: django, irat, moj, monitoring

IRaT support for Django
=======================

A set of tools to make it easier to add a Django-based service to Ministry of Justice's Incidence Response and Tuning:

* ping.json view
* healthcheck.json view with extensible healthchecks

Usage
-----

Install using ``pip install django-moj-irat``.

Django settings:

.. code-block:: python

    HEALTHCHECKS = [
        'moj_irat.healthchecks.database_healthcheck',
        # override default list of healthcheck callables
    ]
    AUTODISCOVER_HEALTHCHECKS = True  # whether to autodiscover and load healthcheck.py from all installed apps

Development
-----------

.. image:: https://github.com/ministryofjustice/django-moj-irat/actions/workflows/test.yml/badge.svg?branch=main
    :target: https://github.com/ministryofjustice/django-moj-irat/actions/workflows/test.yml

Please report bugs and open pull requests on `GitHub`_.

To work on changes to this library, it’s recommended to install it in editable mode into a virtual environment,
i.e. ``pip install --editable .``

Use ``python -m tests`` to run all tests locally.
Alternatively, you can use ``tox`` if you have multiple python versions.

[Only for GitHub team members] Distribute a new version to `PyPI`_ by:

- updating the ``VERSION`` tuple in ``moj_irat/__init__.py``
- adding a note to the `History`_
- publishing a release on GitHub which triggers an upload to PyPI;
  alternatively, run ``python -m build; twine upload dist/*`` locally

History
-------

0.12
    Testing on python 3.10 to 3.14.
    Improve linting and modernise code style.
    Migrated to trusted publishing.

0.11
    Add experimental support for Django 5.2/Python 3.13.

0.10
    Add experimental support for Django versions 5.0 & 5.1.

0.9
    Migrated test, build and release processes away from deprecated setuptools commands.
    No significant library changes.

0.8
    Drop support for python 3.6 and 3.7.
    Add support for python 3.11.
    Add experimental support for Django versions 4.0 & 4.1.
    Improve testing and linting.

0.7
    Add support for python 3.9 and 3.10.
    Improve testing and linting.

0.6
    Drop support for python 3.5.
    Improve linting.

0.5
    Drop python 2 support (now compatible with 3.5 - 3.8).
    Support Django 2.2 - 3.2 (both LTS).

0.4
    Include CORS header.

0.3
    Add python 2 compatibility.

0.2
    Allow including JSON response for healthchecks.

0.1
    Original release.

Copyright
---------

Copyright (C) 2025 HM Government (Ministry of Justice Digital & Technology).
See LICENSE.txt for further details.

.. _GitHub: https://github.com/ministryofjustice/django-moj-irat
.. _PyPI: https://pypi.org/project/django-moj-irat/
mt940-writer 0.8
Writer for MT-940 bank statements
License: MIT
Requires Python: >=3.6
Keywords: mt940

mt940-writer
============

Python library to create bank statements in the MT940 format.

Only tested on Python 3.10+, but should work on 3.7+.

.. code-block:: shell

    pip install mt940-writer

Development
-----------

.. image:: https://github.com/ministryofjustice/mt940-writer/actions/workflows/test.yml/badge.svg?branch=main
    :target: https://github.com/ministryofjustice/mt940-writer/actions/workflows/test.yml

Please report bugs and open pull requests on `GitHub`_.

To work on changes to this library, it’s recommended to install it in editable mode into a virtual environment,
i.e. ``pip install --editable .``

Use ``python -m tests`` to run all tests locally.
Alternatively, you can use ``tox`` if you have multiple python versions.

[Only for GitHub team members] Distribute a new version to `PyPI`_ by:

- updating the ``VERSION`` tuple in ``mt940_writer.py``
- adding a note to the `History`_
- publishing a release on GitHub which triggers an upload to PyPI;
  alternatively, run ``python -m build; twine upload dist/*`` locally

History
-------

0.8
    Testing on python 3.10 to 3.14.
    Reverted to flake8 for code style to be consistent with other MoJ libs.
    Improve linting and modernise code style.
    Migrated to trusted publishing.

0.7
    Added additional transaction information with tag 86.
    Switched to `ruff <https://github.com/astral-sh/ruff>`_ for code linting and formatting.
    Migrated test, build and release processes away from deprecated setuptools commands.

0.6
    Maintenance release, no library changes.

0.2 - 0.5
    No significant library changes, other than support for newer versions of python.

0.1
    Original release.

Copyright
---------

Copyright (C) 2025 HM Government (Ministry of Justice Digital & Technology).
See LICENSE.txt for further details.

.. _GitHub: https://github.com/ministryofjustice/mt940-writer
.. _PyPI: https://pypi.org/project/mt940-writer/
bankline-direct-parser 0.9
Parser for Bankline Direct banking information services
License: MIT
Requires Python: >=3.6
Keywords: bankline

Bankline Direct Parser
======================

Python module for parsing Natwest/RBS Bankline Direct Data Services files.

Requirements
------------

Only tested on Python 3.10+, but should work on 3.7+.

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

.. code-block:: shell

    pip install bankline-direct-parser

Usage
-----

.. code-block:: python

    from bankline_parser.data_services import parse

    # from file
    with open(filename) as f:
        parsed = parse(f)
        if parsed.is_valid():
            print(parsed.accounts[0].records[0].transaction_code)
        else:
            print(parsed.errors)

    # from list of rows
    parsed = parse(lines)

Model Layout
------------

.. code-block::

    DataServicesFile
        VolumeHeaderLabel
        [Account]
            FileHeaderLabel
            UserHeaderLabel
            [DataRecord|BalanceRecord]
            UserTrailerLabel

Development
-----------

.. image:: https://github.com/ministryofjustice/bankline-direct-parser/actions/workflows/test.yml/badge.svg?branch=main
    :target: https://github.com/ministryofjustice/bankline-direct-parser/actions/workflows/test.yml

Please report bugs and open pull requests on `GitHub`_.

To work on changes to this library, it’s recommended to install it in editable mode into a virtual environment,
i.e. ``pip install --editable .``

Use ``python -m tests`` to run all tests locally.
Alternatively, you can use ``tox`` if you have multiple python versions.

[Only for GitHub team members] Distribute a new version to `PyPI`_ by:

- updating the ``VERSION`` tuple in ``bankline_parser/__init__.py``
- adding a note to the `History`_
- publishing a release on GitHub which triggers an upload to PyPI;
  alternatively, run ``python -m build; twine upload dist/*`` locally

History
-------

0.9
    Testing on python 3.10 to 3.14.
    Improve linting and modernise code style.
    Migrated to trusted publishing.

0.8
    Migrated test, build and release processes away from deprecated setuptools commands.
    No significant library changes.

0.7
    Maintenance release, no library changes.

0.2 - 0.6
    No significant library changes, other than support for newer versions of python.

0.1
    Original release.

Copyright
---------

Copyright (C) 2025 HM Government (Ministry of Justice Digital & Technology).
See LICENSE.txt for further details.

.. _GitHub: https://github.com/ministryofjustice/bankline-direct-parser
.. _PyPI: https://pypi.org/project/bankline-direct-parser/
fkptjax 0.2.1
Perturbation theory calculations for LCDM and Modified Gravity theories using fk-Kernels implemented in Python with JAX
License: MIT
Requires Python: >=3.10
Keywords: cosmology, perturbation-theory, modified-gravity, jax

# fkptjax

[![PyPI version](https://badge.fury.io/py/fkptjax.svg)](https://badge.fury.io/py/fkptjax)
[![Python](https://img.shields.io/pypi/pyversions/fkptjax.svg)](https://pypi.org/project/fkptjax/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Tests](https://github.com/cosmodesi/fkptjax/actions/workflows/tests.yml/badge.svg)](https://github.com/cosmodesi/fkptjax/actions/workflows/tests.yml)

Perturbation theory calculations for LCDM and Modified Gravity theories using "fk"-Kernels implemented in Python with JAX.

Based on the C code at https://github.com/alejandroaviles/fkpt, which is based on the paper Rodriguez-Meza, M. A. et al, "fkPT: Constraining scale-dependent modified gravity with the full-shape galaxy power spectrum", [JCAP03(2024)049](https://doi.org/10.1088/1475-7516/2024/03/049).

See [KFUNCTIONS.md](KFUNCTIONS.md) for details on what quantities this code calculates. See the [included notebook](examples/kfunctions.ipynb) for examples of how to perform the calculations. See [BENCHMARKS.md](BENCHMARKS.md) for timing benchmarks on different platforms.

## Installation

Install from pip:

```bash
pip install fkptjax
```

## Requirements

- Python 3.10+
- JAX 0.4.0+
- NumPy 1.24.0+
- SciPy 1.10.0+

## Development

For development, install with dev dependencies:

```bash
git clone https://github.com/cosmodesi/fkptjax.git
cd fkptjax
pip install -e ".[dev]"
```

Run tests:

```bash
pytest
```

Run benchmarks (default: all calculators, 100 runs):

```bash
python tests/test.py
```

Run benchmarks with options:

```bash
# Run only NumPy calculator
python tests/test.py -c numpy

# Run with custom data file and 50 runs
python tests/test.py -d mydata.npz -n 50

# Run both NumPy and JAX CPU calculators
python tests/test.py -c numpy jax-cpu

# Show all options
python tests/test.py --help
```

Run tests with coverage:

```bash
pytest --cov=fkptjax
```

Type checking:

```bash
mypy src/fkptjax
```

## License

MIT License - see LICENSE file for details.

## Authors

- David Kirkby <dkirkby@uci.edu>
- Matthew Dowicz <mdowicz@uci.edu>