semvec/pypi-packages huggingface dataset:
beancount-capitalone 0.1.1
Import CapitalOne banking transactions into beancount format
License: MIT
Requires Python: >=3.9
Keywords: capitalone beancount bookkeeping finance

# beancount-capitalone

[![PyPI](https://img.shields.io/pypi/v/beancount-capitalone)](https://pypi.org/project/beancount-capitalone/)
[![CircleCI](https://circleci.com/gh/mtlynch/beancount-capitalone.svg?style=svg)](https://circleci.com/gh/mtlynch/beancount-capitalone)
[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](LICENSE)

beancount-capitalone provides an Importer for converting CSV exports Capital One bank transactions into [Beancount](https://github.com/beancount/beancount) v2 format.

## Installation

```bash
pip install beancount-capitalone
```

## Usage

### Credit Cards

Add the Capital One Credit card importer to your account as follows:

```python
import beancount_capitalone

CONFIG = [
    beancount_capitalone.CreditImporter(
        'Liabilities:Credit-Cards:CapitalOne',
        currency='USD',
        lastfour='1234', # Replace with last four digits of your account
        account_patterns=[
          # These are example patterns. You can add your own.
          ('GITHUB', 'Expenses:Cloud-Services:Source-Hosting:Github'),
          ('Fedex',  'Expenses:Postage:FedEx'),
        ]
    ),
]
```
Once this configuration is in place, you can use `bean-extract` to convert a CapitalOne CSV export of transactions to beancount format:

```bash
bean-extract config.py 2023-03-10_transaction_download.csv
```

## API

### `account_patterns`

The `account_patterns` parameter is a list of (regex, account) pairs. For each line in your CSV, the CapitalOne importer will attempt to create a matching posting on the transaction by matching the payee, narration, or the concatenated pair to the regexes.

The regexes are in priority order, with earlier patterns taking priority over later patterns.

## Resources

See [awesome-beancount](https://awesome-beancount.com/) for other publicly available Beancount importers.
chainsail-helpers 0.1.5.1
Probability distribution interfaces, examples, and utilities for the Chainsail sampling service
License: MIT
Requires Python: >=3.8
Keywords: probabilistic programming,sampling,MCMC

# Chainsail PDF interfaces and utilities

This small package complements the [Chainsail](https://chainsail.io) sampling service. It
- defines the general interface for objects representing Chainsail-consumable probability distributions,
- provides implementations thereof for popular probabilistic programming languages,
- and contains a few helper scripts for post-processing.

## Installation
```bash
$ pip install chainsail-helpers
```
If you'd like implement a probability density using [Stan](https://mc-stan.org) or [PyMC3](https://docs.pymc.io), install the corresponding extra dependencies like so: `poetry install --extras pymc3` and similarly for `stan`. 
When using Chainsail, this package will be automatically installed, so no need to add it to the list of dependencies in the job submission form.
If you like to develop this package, best use [Poetry](https://python-poetry.org):
```bash
$ poetry install
$ poetry shell
```
and you will be dropped into a virtual environment with all dependencies installed.

## Contributing
Contributions, for example PDF implementations for other probabilistic programming languages, are highly welcome!
Just open a pull request and we'll be happy to work with you to make Chainsail even more useful.

## License
&copy; 2021 [Tweag](https://tweag.io). `chainsail_helpers` is open-source software and licensed under the [MIT license](https://opensource.org/licenses/MIT).