Debian Codegraph @

README

raw
1 Contacts:
2 Developer: Galtsev Denis <[email protected]>
3 Project site: http://code.google.com/p/clipf/
4
5 Installation:
6
7 Not required. It is simple python script. Put it to any directory in Your PATH
8
9 Configuration:
10
11 Not required. Program would create config directory and empty database
12 at start, if config directory doesn't exists (default to "~/.clipf/").
13
14 Usage description:
15
16 clipf [<config_path>]
17 - start clipf with coniguration in <config_path> (default to
18 ~/.clipf). If config_path doesn't exists, it would be created
19 with appropriate defaults.
20
21 All commands described in embedded help. Type "help" in command line
22 to see list of available commands, and "help <command>" for help
23 about particular command.
24
25 Before further use, You need to enter some income/expense categories:
26
27 >prod add [-d] <prod_code> <prod_name>
28
29 -d options mark this category as debt (income). Category is credit (expense) by default.
30
31 Examples:
32 # enter category codes with trailing period
33 >prod add meal. Meals
34 # p shortcuts to prod
35 >p add meal.drink. Drinks
36 # Enter category names with spaces in quotes
37 >p add meal.drink.beer "My preferred beer"
38 >p add meal.juice Juice
39 >p add meal.cookie Cookie
40 >p add meal.nuts "Roasted nuts"
41 # You need identify category as income during creation
42 >p add -d salary Salary
43
44 Now You can see Your category list:
45 >prod ls [<prod_group>]
46
47 - show _one_ level of category tree (default to root).
48
49 Example:
50
51 >prod ls
52 >prod ls meal.
53
54 Remove products with:
55
56 >prod rm <prod_code>
57
58
59 Now You can enter some operations:
60
61 >op add [-a <account>] [-d <date>] <prod_code> <amount> [<note>]
62
63 * -a <account> - override default account for this operation.
64 * -d <date> - override default date for this operation. Enter date in "YYYY-MM-DD" format.
65
66 Examples
67
68 # Entering starting remain as salary
69 >op add salary 450.0 "Starting remain"
70 # now some expenses:
71 >op add meal.drink.beer 5.5
72 >op add meal.nuts 3.45 "Nuts to beer"
73 >op add meal.cookie 2.80
74
75 Use tab completion to enter long prod codes (press <tab> once or twice during prod_code entering).
76
77 List entered operations with:
78
79 >op ls [<prod_code_pattern>]
80
81 - show list of operations in selected period (see {{{set}}})
82 * <prod_code_pattern> - show operations with prod_code starting with prod_code_pattern
83
84 Delete operation: impossible. You need to enter the same operation with negative amount to revoke already entered operation.
85
86 Now let's list and change some defaults:
87
88 # see list of options
89 >show
90 #set option value
91 >set <option_name> <option_value>
92
93 options description:
94 * *date* - default date for new operations
95 * *acc* - default account for new operations
96 * *date_from, date_to* - period for all listings ({{{op ls}}} and reports
97 * *max_lines* - if show operation output in pager (less) if output length is more, than <max_lines> lines.
98
99 Reports
100
101 >rep prod [<prod_group>]
102 >rep acc
103
104
105 Example:
106
107 # set period for reports
108 >set date_from 2008-03-01
109 >set date_to 2008_03-31
110 # show totals by top level groups
111 >rep prod
112 # show details for meal. group
113 >rep prod meal.
114 # turnover by accounts
115 >rep acc
116
117
118 Other useful features:
119
120 Program understand input stream redirection:
121
122 $echo -e "set date_from 2008-04-01\nop ls" | clipf
123
124 - this can be used to save reports.
125
126 You can setup aliases (shortcuts) for frequently used operations in config file (default to ~/.clipf/clipf.conf).
127 See configuration file for examples.
128
129