Metadata-Version: 2.4
Name: pypara
Version: 0.2.0
Summary: Currencies, Monetary Value Arithmetic/Conversion and Some Type Convenience
Author-email: Vehbi Sinan Tunalioglu <vst@vsthost.com>
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://github.com/vst/pypara
Project-URL: Documentation, https://github.com/vst/pypara#readme
Project-URL: Repository, https://github.com/vst/pypara.git
Project-URL: Changelog, https://github.com/vst/pypara/blob/main/CHANGELOG.md
Keywords: finance
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: python-dateutil<3.0
Dynamic: license-file

# Python Library for Currencies and Monetary Values

[![PyPI](https://img.shields.io/pypi/v/pypara?style=flat-square)](https://pypi.org/project/pypara/)
[![Python Versions](https://img.shields.io/pypi/pyversions/pypara?style=flat-square)](https://pypi.org/project/pypara/)
[![License](https://img.shields.io/github/license/vst/pypara?style=flat-square)](https://github.com/vst/pypara/blob/main/LICENSE)
[![Builds](https://img.shields.io/github/actions/workflow/status/vst/pypara/check.yaml?style=flat-square)](https://github.com/vst/pypara/actions/workflows/check.yaml)
[![Issues](https://img.shields.io/github/issues/vst/pypara?style=flat-square)](https://github.com/vst/pypara/issues)
[![Last Commit](https://img.shields.io/github/last-commit/vst/pypara?style=flat-square)](https://github.com/vst/pypara/commits)

> **TODO**: Provide a complete README.

## Development Notes

The development environment is provided by a [Nix] flake. Enter the development
shell:

```sh
nix develop
```

The default shell comes with Python 3.13. There is another shell with Python
3.14:

```sh
nix develop .#py314
```

> **Note:** The shell installs the package in editable mode into the `tmp/`
> directory. This is required, because the package reads its version from the
> installed distribution metadata.

Tasks are run with [just]. List available recipes:

```sh
just
```

Run all checks, namely format checks, linters, the type checker and the test
suite:

```sh
just check
```

Format the codebase:

```sh
just format
```

Run the test suite only, which consists of unit tests and doctests:

```sh
just test
```

Build the package and run its test suite for all supported Python versions in
the Nix sandbox:

```sh
nix flake check
```

## Publishing

Changes are committed as per [Conventional Commits]. [Release Please] maintains
a release pull request as releasable changes land on the `main` branch. Merging
the release pull request creates the GitHub release, upon which the package is
built and uploaded to PyPI by the release workflow using [trusted publishing].

However, in the event of emergency, you can still manually build a package and
upload it to PyPI:

```sh
rm -Rf dist/
python -m build --no-isolation
twine check --strict dist/*
twine upload dist/*
```

[Conventional Commits]: https://www.conventionalcommits.org
[Nix]: https://nixos.org
[Release Please]: https://github.com/googleapis/release-please
[just]: https://just.systems
[trusted publishing]: https://docs.pypi.org/trusted-publishers/
