Skip to main content

facct - Figue's accountancy tool

Project description

- Initialize system for a new entity (company, personnal accounts...):
$python facct/init_year.py -o company_name_or_alias -c
#Note that the accountancy will initialize for the current year.

- Initialize the accounts for a new year:
python facct/init_year.py -o company_name_or_alias -y 2014

- Generate a bill for February 2013:
python facct/bill/gen_tex.py 022013.csv -o titu
#If the file does not exists, it will generate 022013.csv in
${bills}/022013.csv with all the work days filled in to 1.
If you want to change values replace 1 by 0 to indicate off days or to
change by something other than an integer 0.75, you will to relaunch the
command to generate the PDF bill.

- Configuration file:
The facct configuration file is located in ~/.facct.rc, it's a simple
INI file, feel free to change some locations if you want.
You should also change values for the following files located in $data:
- contracts.csv : some basic info about contracts
- bank_accounts.csv: bank account details
- clients.csv : client details
- company.csv : company (or personal) details, the minimum needed.

- To regenerate accountancy after some modifications (new bill, new expenses):
python facct/generate_all.py -o titu $accounts/<year>

- To modify some entries, you can change the input file:
$accounts/<year>/journal.ori.csv
# You can use some templates such as those you can find for example in the
file <path_to_application>/facct/bench/accounts/<one_year>/journal.ori.csv.

- Developer feature:
You can launch some benchmarks with:
$ ./facct/bench.sh


Example:

>>> import bench
>>> bench.main('corp_ref', False)
[OK] corp_ref 2014 init_year.
[OK] corp_ref 2014 already exists.
[OK] corp_ref 2016 init_year.
[OK] corp_ref 2016 already exists.
[OK] corp_ref 2010 account: no differences with benchmark
[OK] corp_ref 2011 account: no differences with benchmark
[OK] corp_ref 2012 account: no differences with benchmark
[OK] corp_ref 2013 account: no differences with benchmark
[OK] corp_ref 022013 bill.
[OK] corp_ref db.

You can also launch doctest with:
python facct/__init__.py -v

And distribution packaging with:
python setup.py sdist

More information on the ditributable:
python setup.py --help
python setup.py --author
python setup.py --long-description
... and so forth

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

facct-0.1.1.tar.gz (300.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page