Bookwyrm β€” development thread - Programming On Unix

Users browsing this thread: 1 Guest(s)
Tmplt
Long time nixers
So I've implemented python interfacing via a not yet merged branch of pybind11. Presently, a python script will construct the exact and nonexact PODs with dicts and then pass a tuple back to the program, from which the final item will be created.

I choose Python mainly for requests (edit: and BeautifulSoup), which makes source parsing so much easier, but if this thing catches on and people request bindings for other languages, I'll take a look at those too.

Next up is implementing the actual sources and writing the menu. Library Genesis was already implemented in the python/master branch, but will need some revisiting to work with bookwyrm (and will probably need some cleanup; I don't recall it being good code).

When it comes to the menu, I've seen it being mentioned multiple times that ncurses isn't very fun to work with, so I'll look for alternatives. Are there any that you recommend?

Aside from this, I'm not entirely sure how to handle paths to find sources. Right now, a relative path is hard-coded for debug-mode, but that wont fly in a release. I want user-defined source to exist in $XDG_CONFIG_HOME/bookwyrm/sources, but I'm not sure how portable that is. Can I safely assume $HOME/.config when $XDG_CONFIG_HOME isn't set? And for system-wide sources, will /etc/bookwyrm/sources work for *nix systems, or do some store these elsewhere?


Messages In This Thread
Bookwyrm β€” development thread - by Tmplt - 13-04-2017, 03:22 PM
RE: Bookwyrm -- traverse and download ebooks/academic from various sources - by Tmplt - 10-05-2017, 05:09 PM
RE: Bookwyrm β€” development thread - by Tmplt - 27-05-2017, 02:45 PM
RE: Bookwyrm β€” development thread - by venam - 28-05-2017, 07:02 AM
RE: Bookwyrm β€” development thread - by Tmplt - 28-05-2017, 09:26 AM
RE: Bookwyrm β€” development thread - by Tmplt - 09-06-2017, 09:28 PM
RE: Bookwyrm β€” development thread - by Tmplt - 19-06-2017, 05:45 PM
RE: Bookwyrm β€” development thread - by Tmplt - 07-08-2017, 07:44 PM
RE: Bookwyrm β€” development thread - by Tmplt - 12-01-2018, 08:16 AM
RE: Bookwyrm β€” development thread - by Tmplt - 12-01-2018, 07:40 PM
RE: Bookwyrm β€” development thread - by Tmplt - 24-02-2018, 08:48 AM
RE: Bookwyrm β€” development thread - by Tmplt - 05-05-2018, 08:50 AM
RE: Bookwyrm β€” development thread - by Tmplt - 11-05-2018, 07:59 PM
RE: Bookwyrm β€” development thread - by Tmplt - 27-05-2018, 06:17 PM
RE: Bookwyrm β€” development thread - by Tmplt - 26-12-2018, 10:18 PM