Interact with zotero using papis
Project description
ZOTERO COMPATIBILITY FOR PAPIS
Importing using bibtex files
After installation check always the help options
Now the zotero script is accessible from papis:
papis zotero -h
If you have a bibtex somewhere in your computer, you can use the script:
papis zotero import --from-bibtex library.bib
Importing using zotero sql files
There is also a script that decodes the zotero.sqlite sqlite file that zotero uses to manage documents and creates papis Documents out of it.
This script will retrieve the documents from zotero (be it pdf documents or something else) and important information like tags.
Now you have to go to the directory where zotero saves all the information, it would look something like this on linux systems:
cd ~/.mozilla/firefox/zqb7ju1q.default/zotero
Maybe the path is slightly different. It may vary from version to version from zotero. In the zotero data directory there should be a file called zotero.sqlite and there might be a storage directory with document data inside. These will be used by zotero-sql to retrieve information and files from.
Now you can use the script through
papis zotero import --from-sql-folder YOUR-SQL-FOLDER
where YOUR-SQL-FOLDER is the folder containing the zotero.sqlite folder.
This script by default will create a directory named Documents (in your current directory) where papis documents are stored. You can add these document by simply moving them to your library folder
mv Documents/* /path/to/your/papis/library
or also by adding them through papis using the folder flag
papis add --from-folder Documents/ZOTERO_ID
or write a bash for-loop to do it with all the converted documents
for folder in Documents/* ; do papis add --from-folder $folder ; done
Use zotero conectors
Just install the zotero connector browser plugin here and type
papis zotero serve
to start listening to your browser for incoming data. Whenever you click the zotero button to add a paper, papis will add this paper to the library.
Installation from pypi
Just run
sudo pip3 install papis-zotero
Installation
The general command that you have to hit is by using the setup.py script:
python3 setup.py install
Again, if you want to install it locally because you don’t have administrative rights in your computer you can just simply type
python3 setup.py install --user
If you want to develop on the code, you can also alternatively hit
python3 setup.py develop --user
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
Hashes for papis-zotero-0.1.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac057cd66f27cb9fc4a41b12b06f672f7401d20bf0fb18a7744bc0841a1f1288 |
|
MD5 | 61a23cd119b2214a0d5222662340c6f1 |
|
BLAKE2b-256 | c7ab10982ca2855fd3c4af301b3b56a44e97ae9aaa4a5847d39749bb45dc9259 |