log items that has been ignored including the history of borrowing.
- flask
- werkzeug
- pybtex
sudo apt-get install python3-pybtex
sudo apt-get install python3-flask
sudo apt-get install python3-qrcode
Run in the command line (or --debug run
):
flask --app hello.py run
Making 'example.db' based on 'DBstructure.sql'. To setup the database:
rm example.db
./init_db.py
./bib2sql.py
Biblioteka Rodziny Pęcaków (Polish)
Pęcak Family Library (English)
Ex Libris Symbol
- full sticker
- stamp & sticker
- full sticker for the first page, a small stamp for the inside of the book
- Daniel: physics symbol
- Schroedinger cat
- Dirac notation: <bra|ket>
- atom symbol
- Psi as a wavefunction
- Karo:
- bridge
- metal construction
- construction helmet
- blueprint
- crane
- tools
- animals?
- owl
- dog
- family animals:
- orcas
- lions
- orangutans
- chimpanzies
- elephants
- penguins
- something that represents Marta and Romek
teddy bearsmilerattleponytail- general values
- knowledge
- books
- environment
- sensitivity
Here the timetable is shown. Within a workflow, the things should be done in order. The workflows are not dependent on each other (at least in the beginning).
Workflow #1
database structure in SQL- ~~managing SQLite with python script ~~
fill in the database (partially)- ...
- GUI
- ...
- fill in the database (completely)
Workflow #2
Talk about the design with Karo- Download vector graphics
- Make new graphics that are needed or when the licensing is not good for me
- First draft of ex-libris
- Second draft of ex-libris
Workflow #3
- QR generator function in python
Workflow #4
- Website look
- ex libris
- brain storming
-
pencil drafts - brain storming: choosing best
- asking third party for graphics
- final choice
- BiBTeX to SQL converter
- library for conversion (pybtex)
- authors
- books: first step
- books: foreign indices
- QR generator (generate whenever a new item is added to books table)
- draft of generator
- use qrcode library in more sophisticated way
- function generateQR(url_text,path/filename)
- testing QR code sizes
- generating pdf file for printing QR codes
- function update_qrs(dir,?) that reads all the qrs from dir and changes them to the desired new format (update links or change the size of qrs). Maybe update should be done based on database content
- Database
- code the structure
- add table with tag names to the structure
- add relation table for tags and books
- managing entries (write functions):
- adding
- removing
- updating
- code test cases (use some real books on the shelf)
- code people (owners and borrowers)
- code books
- real testing: code actions
- adding books to library
- adding new people
- adding borrowing books
- updating books
- updating borrowers
- updating authors
- adding authors to book
- destroying books (lost flag=1, removing relations)
- dumping database for Git purposes (anonimizing the outuput)
- managing borrowings
- borrower borrows book
- book is returned
- GUI
- static html code basic view
- implement flask
- incorporate static listing
- implement dynamic sorting on columns
- listing: books, authors, borrowers
-
sorting books by Title, Language
- managing entries
- adding new entries to books, authors, borrowers
- removing entries from books, authors, borrowers
- updating info about books, authors, borrowers
- adding books: author and owner should be a list type
- log items that has been ignored
- add archive_tables and store there destroyed books, and returned books
- use TRIGGERS to do that
- generates a QR code with a link of type https://danielpecak.github.io/lib?id=123/ that gives some info
- print QR sticker and stick it
what should be given under the link where QR code directs
- some basic info about the book
- when the book has been borrowed
- initials of the borrower
- if the book is not borrowed write that it is free
- option of reservation for someone? this can be done by borrowing it in the system, but not physically
- core: python
- GUI: HTML-based GUI?
- database: SQLite
- website: javascript? git supports static websites
book
- id
- ISBN
- title
- author (what with many authors or encyclopedias)
- language
- destroyed/given_away/lost
- publisher
- lubimyczytac.pl link
- owner
- bookcase (name bookcases after continents Europe, America, etc.)
- shelf (name after cities or countries: Amsterdam, Wiedeń, etc.)
author
- id
- first name
- last name
tag
- id
- name
borrower
- id
- first name
- last name
- phone number
owner
- id
- first name
- last name
- phone number
? scalić borrower i owner?
borrowing (book-borrower)
- id
- id_book
- id_who
- start_date
- end_date
written (book-author)
- id
- id_book
- id_author
hastag (book-tag)
- id
- id_book
- id_tag