Skip to main content

future-healthcare-cli

ci test codecov PyPI pyversions Current version on PyPI Very popular Code style: black

Python library and optional CLI for Future Healthcare.

The CLI helps with common refund flows:

  • login stores your API token locally
  • check lists refund status/history
  • nifs looks up known refund addresses for a business NIF
  • submit submits a new expense with receipt metadata

Install

Install the CLI with uv:

uv tool install 'future-healthcare[cli]'

This makes the future-healthcare command available on your system.

Run Without Installing

You can also run it directly with uvx:

uvx --from 'future-healthcare[cli]' future-healthcare --help

Usage

Log in first:

future-healthcare login -u YOUR_USERNAME -p YOUR_PASSWORD

Check existing refunds:

future-healthcare check

Look up the available addresses for a business NIF:

future-healthcare nifs 509876543

This prints one building per line as Building Name (address).

Submit a receipt by passing the required fields explicitly:

future-healthcare submit ~/Downloads/example-receipt.pdf \
  --business-nif 509876543 \
  --invoice-number 'INV 2026/0001' \
  --total-amount 40 \
  --date '2026-03-14'

The submit command may prompt you to choose the insured person, service, or building when multiple matches are available. Use --building to select a building/address up front for non-interactive runs. Pass only the building name from future-healthcare nifs, not the address in parentheses. Receipt data extraction happens before calling the CLI. Agent users can use the bundled Codex skill in .agents/skills/future-healthcare-cli/SKILL.md to inspect the receipt, extract the required fields, and then run future-healthcare submit with explicit flags.

Configuration

The CLI reads defaults from ClassyClick's default config.toml location. You can inspect the active configuration and its file path with:

future-healthcare config

To edit it in $VISUAL or $EDITOR:

future-healthcare config --edit

Configuration mirrors the CLI command options:

[submit]
service = "Dentist"

[login]
username = "YOUR_USERNAME"

You can also keep multiple environments in the same file and select one with --env:

default_env = "personal"

[submit]
service = "Dentist"

[env.personal.submit]
person = "Alice"

[env.work.submit]
person = "Bob"

Then run:

future-healthcare --env work submit ~/Downloads/example-receipt.pdf \
  --business-nif 509876543 \
  --invoice-number 'INV 2026/0001' \
  --total-amount 40 \
  --date '2026-03-14'

Use group-level path flags when you want local state somewhere else:

future-healthcare --token-path ~/.future-healthcare/token.txt --log-dir ~/.future-healthcare/logs login \
  -u YOUR_USERNAME \
  -p YOUR_PASSWORD

Local Data

By default, the CLI stores local state next to the selected configuration file, including:

  • token.txt for the login token
  • config.toml for CLI defaults
  • logs/ for submission logs and copied input files

Development

See CONTRIBUTING.md.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

future_healthcare-0.0.7.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

future_healthcare-0.0.7-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file future_healthcare-0.0.7.tar.gz.

File metadata

  • Download URL: future_healthcare-0.0.7.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for future_healthcare-0.0.7.tar.gz
Algorithm Hash digest
SHA256 451a4a5031e1681fb54b16897bc197743f0af3096ed191035812455c2154b65b
MD5 d5284d65b44575d868447d256c62312d
BLAKE2b-256 ca84b8c254a3a2e5a011be721a5a99720d17879d96ca393ee1dfa2abeaf6c05c

See more details on using hashes here.

File details

Details for the file future_healthcare-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for future_healthcare-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7a1e4f816feb5e86532410085ae48e2789cd301c4378aed5ec7b7f3a7dce9ef3
MD5 bb842c2537107f0e58c17f4ba1407698
BLAKE2b-256 54711cc37486ce4f1d1c242c7f83e81d0c7f1caf3c241625b43452d42aafe5be

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page