5 Before you begin you need some preparations.
16 m_Librarian is written in Python and requires Python 2.7. So install
17 Python 2.7 first. Install required modules: SQLObject and m_lib.
23 The program works with local library archives so download some. In
24 addition to the very libraries you need to get INPX indices for them —
25 m_Librarian cannot index libraries yet.
31 The program needs a database. It can work with any database supported by
32 SQLObject. Preferred ones are: MySQL, PostgreSQL or SQLite. If you plan
33 to use an SQL server you must create a database yourself. For SQLite,
34 the database file will be created by the program, so it's the simplest
35 way of using m_Librarian.
40 For m_Librarian to use an SQL server create a configuration file and put
41 it in $HOME/.config/ (if your OS is POSIX-compatible). Name the
42 configuration file ``m_librarian.conf``. It must be in ``ini``-file
43 format and must have the only section ``[database]`` with the only key
44 ``URI``. The value for the key must be a Database URI in format accepted
45 by SQLObject. Some examples::
48 URI = mysql://user:password@host/database
51 URI = postgres://user@host/database
54 URI = sqlite:///full/path/to/database
56 See some more examples in sample/m_librarian.conf. See detailed
57 description for DB URIs in `SQLObject documentation
58 <http://sqlobject.org/SQLObject.html#declaring-a-connection>`_.