Command line tools for BeanHub
Project description
beanhub-cli 
Command line tools for BeanHub.
Features
- Local BeanHub Form web app - You can run a BeanHub Form web app locally to try out your forms
- Formatter - Advanced Beancount file formatter based on top of beancount-black
- Basic Beancount file manipulations - Effortless Beancount account name renaming and other basic manipulations (coming soon)
- Doesn't require a BeanHub account - While some features in the future will require a BeanHub repository to operate, but we make most of them usable even without a BeanHub account
Screenshots
Sponsor
A modern accounting book service based on the most popular open source version control system Git and text-based double entry accounting book software Beancount.
Install
pip install beanhub-cli
Usage
BeanHub Forms web app
To make it much easier for BeanHub users to test their BeanHub Forms locally, we added a simple local web app for that in beanhub-cli. You can run it by
bh form server
It should open the BeanHub Forms web page locally at http://localhost:8080 by default.
It reads the .beanhub/forms.yaml file from the current directory and will modify beancount files in the directory, so make sure you cd to your beancount directory before running the command.
To learn more about BeanHub Forms, please read our blog post Automating Beancount data input with custom forms makes your life 10 times easier!.
List BeanHub Forms
To list BeanHub Forms, simply run
bh form list
Validate BeanHub Forms doc
To validate BeanHub Forms doc, simply run
bh form validate
Format beancount files
You can run beancount-black formatter against given files by the following command
bh format main.bean
Currently, the formatter works mostly the same as beancount-black, except it doesn't create a backup file by default. We are working on adding new features, such as making it possible to follow Beancount include statements to format all Beancount files.
More features to come
We are working on basic beancount file manipulation features, such as renaming account names. We will also add new features only for BeanHub users as well. But in general, if possible, we would like to make the features added to beancount-cli work locally without a BeanHub account as much as possible so that the beancount community can benefit from it.
Project details
Release history Release notifications | RSS feed
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 beanhub_cli-0.1.1.tar.gz.
File metadata
- Download URL: beanhub_cli-0.1.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/5.15.0-1039-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bbe6299aa5be37f8716ebea625419d35b7b97ba460744d7c9201610c58b4f90
|
|
| MD5 |
3ec5741518f2ade78e6f67748875b955
|
|
| BLAKE2b-256 |
0caeb120e5aea7e0e09c2026a08bc2ccd3fe63574a220c0c84ee7a76e292b987
|
File details
Details for the file beanhub_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: beanhub_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/5.15.0-1039-aws
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f48f4eb3b16015042eb4ae7f71a8db645efaf22ec5a6ee8c44c343babd1e7828
|
|
| MD5 |
eb77d45bcc2298326ce5a3b4cd0b502a
|
|
| BLAKE2b-256 |
f3038c5e7fa302fdb9c98cf4750ec27db84e5f93de59d4709a825b6031414322
|