Python library and optional CLI for Future Healthcare
Project description
future-healthcare-cli
Python library and optional CLI for Future Healthcare.
The CLI helps with common refund flows:
loginstores your API token locallychecklists refund status/historysubmitsubmits 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
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.
Receipt data extraction happens before calling the CLI; inspect the receipt first and pass the extracted fields explicitly.
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.txtfor the login tokenconfig.tomlfor CLI defaultslogs/for submission logs and copied input files
Development
See CONTRIBUTING.md.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file future_healthcare-0.0.4.tar.gz.
File metadata
- Download URL: future_healthcare-0.0.4.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fb06e950e0347d59f147db97bbca4bae400dbbfbdd7578b9eb1a6776d83991b
|
|
| MD5 |
08772eb0bce154fe11b742a1fef9c01c
|
|
| BLAKE2b-256 |
978f2458ff6d36bcbbdab2af3eaf7df6524b03f140243617df76ba6406cd7d1f
|
File details
Details for the file future_healthcare-0.0.4-py3-none-any.whl.
File metadata
- Download URL: future_healthcare-0.0.4-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99be8feb65a9d2352a90afbd826e9afb6edec5dba6f07dc0b5d506e8184c6494
|
|
| MD5 |
2ffebcd56d074a78e0ee4929a0c007e0
|
|
| BLAKE2b-256 |
020e487ffa64cd9001f5e805e2cdb66977e432b03eb06f4359a507b60494ca4d
|