kerko | web application component that provides a faceted search | Search Engine library
kandi X-RAY | kerko Summary
kandi X-RAY | kerko Summary
kerko is a Python library typically used in Database, Search Engine applications. kerko has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has low support. You can install using 'pip install kerko' or download it from GitHub, PyPI.
Kerko is a web application component implemented in Python for the Flask framework that provides a user-friendly search and browsing interface for sharing a bibliography managed with the Zotero reference manager. The combination of Kerko and Zotero gives you the best of both worlds: a rich but easy to use web interface for end-users of the bibliography, and a well-established and powerful bibliographic reference management tool for individuals or teams working on the bibliography's content.
Kerko is a web application component implemented in Python for the Flask framework that provides a user-friendly search and browsing interface for sharing a bibliography managed with the Zotero reference manager. The combination of Kerko and Zotero gives you the best of both worlds: a rich but easy to use web interface for end-users of the bibliography, and a well-established and powerful bibliographic reference management tool for individuals or teams working on the bibliography's content.
Support
Quality
Security
License
Reuse
Support
kerko has a low active ecosystem.
It has 227 star(s) with 30 fork(s). There are 8 watchers for this library.
It had no major release in the last 12 months.
There are 1 open issues and 8 have been closed. On average issues are closed in 99 days. There are 2 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of kerko is 1.0.0a2
Quality
kerko has 0 bugs and 0 code smells.
Security
kerko has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
kerko code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
kerko is licensed under the GPL-3.0 License. This license is Strong Copyleft.
Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.
Reuse
kerko releases are not available. You will need to build from source code and install.
Deployable package is available in PyPI.
Build file is available. You can build the component from source.
Installation instructions, examples and code snippets are available.
It has 5344 lines of code, 324 functions and 40 files.
It has medium code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi has reviewed kerko and discovered the below as its top functions. This is intended to give you an instant insight into kerko implemented functionality, and help decide if they suit your requirements.
- Download a child attachment
- Build filter terms
- Run a unique query
- Similar to run_query but uses default fallback
- Build a tree
- Build the URL for add filter
- Build URL for removing filter
- Decode encoded value
- Remove filter from active filters
- Find occurrences of a regular expression
- Compute a set of facet values
- Build a list of items
- Extract a record from an item
- Return a schema for caching
- Extract the sort argument
- Check if the item is in the collection
- Find occurrences of a given regular expression
- Download an attachment
- Download a citation
- Print the number of documents in the target
- Extracts a single citation
- Returns a sitemap
- View an item
- Extract pager
- Add a filter to the list
- Sync the contents of the given target
- Extracts metadata from an item
Get all kandi verified functions for this library.
kerko Key Features
No Key Features are available at this moment for kerko.
kerko Examples and Code Snippets
No Code Snippets are available at this moment for kerko.
Community Discussions
Trending Discussions on kerko
QUESTION
Multiple word search in MySQL with PHP
Asked 2017-Feb-21 at 15:22
I'm facing a issue trying to search with multiple words from my text-box but I cant fix it. The code below is not working, but it works with search LIKE '%$keywords%'
.
Please see and if you can help me with any solution!
...ANSWER
Answered 2017-Feb-20 at 20:59You're trying to convert an array into a string. explode
returns an array. Try instead
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kerko
This section only applies if you intend to integrate Kerko into your own application. If you are more interested into the standalone KerkoApp application, please refer to its installation instructions. We'll assume that you have some familiarity with Flask and suggest steps for building a minimal app, let's call it hello_kerko.py, to get you started. You have just built a really minimal application for Kerko. This code example is available at KerkoStart. See also KerkoApp for a slightly more complete example.
The first step is to install Kerko. As with any Python library, it is highly recommended to install Kerko within a virtual environment. Once the virtual environment is set and active, use the following command: pip install kerko
In hello_kerko.py, configure variables required by Kerko and create your app object, as in the example below: import pathlib from flask import Flask from kerko.composer import Composer app = Flask(__name__) app.config['SECRET_KEY'] = '_5#y2L"F4Q8z\n\xec]/' # Replace this value. app.config['KERKO_ZOTERO_API_KEY'] = 'xxxxxxxxxxxxxxxxxxxxxxxx' # Replace this value. app.config['KERKO_ZOTERO_LIBRARY_ID'] = '9999999' # Replace this value. app.config['KERKO_ZOTERO_LIBRARY_TYPE'] = 'group' # Replace this value if necessary. app.config['KERKO_DATA_DIR'] = str(pathlib.Path(__file__).parent / 'data' / 'kerko') app.config['KERKO_COMPOSER'] = Composer() SECRET_KEY: This variable is required for generating secure tokens in web forms. It should have a secure, random value and it really has to be secret. It is usually set in an environment variable rather than in Python code, to make sure it never ends up in a code repository. But here we're taking the minimal route and thus are cutting some corners! KERKO_ZOTERO_API_KEY, KERKO_ZOTERO_LIBRARY_ID and KERKO_ZOTERO_LIBRARY_TYPE: These variables are required for Kerko to be able to access your Zotero library. See Configuration variables for details on how to properly set these variables. KERKO_DATA_DIR: This variable specifies the directory where to store the search index and the file attachments. If the specified directory does not already exists, Kerko will try to create it. KERKO_COMPOSER: This variable specifies key elements needed by Kerko, e.g., fields for display and search, facets for filtering. These are defined by instantiating the Composer class. Your application may manipulate the resulting object at configuration time to add, remove or alter fields, facets, sort options, search scopes, citation download formats, or badges. See Kerko Recipes for some examples.
Also configure the Flask-Babel and Bootstrap-Flask extensions: from flask_babel import Babel from flask_bootstrap import Bootstrap babel = Babel(app) bootstrap = Bootstrap(app) See the respective docs of Flask-Babel and Bootstrap-Flask for more details.
Instantiate the Kerko blueprint and register it in your app: from kerko import blueprint as kerko_blueprint app.register_blueprint(kerko_blueprint, url_prefix='/bibliography') The url_prefix argument defines the base path for every URL provided by Kerko.
In the same directory as hello_kerko.py with your virtual environment active, run the following shell commands: export FLASK_APP=hello_kerko.py flask kerko sync Kerko will retrieve your bibliographic data from zotero.org. If you have a large bibliography or large attachments, this may take a while (and there is no progress indicator). In production use, that command is usually added to the crontab file for regular execution (with enough time between executions for each to complete before the next one starts). To list all commands provided by Kerko: flask kerko --help
Run your application: flask run
Open http://127.0.0.1:5000/bibliography/ in your browser and explore the bibliography.
The first step is to install Kerko. As with any Python library, it is highly recommended to install Kerko within a virtual environment. Once the virtual environment is set and active, use the following command: pip install kerko
In hello_kerko.py, configure variables required by Kerko and create your app object, as in the example below: import pathlib from flask import Flask from kerko.composer import Composer app = Flask(__name__) app.config['SECRET_KEY'] = '_5#y2L"F4Q8z\n\xec]/' # Replace this value. app.config['KERKO_ZOTERO_API_KEY'] = 'xxxxxxxxxxxxxxxxxxxxxxxx' # Replace this value. app.config['KERKO_ZOTERO_LIBRARY_ID'] = '9999999' # Replace this value. app.config['KERKO_ZOTERO_LIBRARY_TYPE'] = 'group' # Replace this value if necessary. app.config['KERKO_DATA_DIR'] = str(pathlib.Path(__file__).parent / 'data' / 'kerko') app.config['KERKO_COMPOSER'] = Composer() SECRET_KEY: This variable is required for generating secure tokens in web forms. It should have a secure, random value and it really has to be secret. It is usually set in an environment variable rather than in Python code, to make sure it never ends up in a code repository. But here we're taking the minimal route and thus are cutting some corners! KERKO_ZOTERO_API_KEY, KERKO_ZOTERO_LIBRARY_ID and KERKO_ZOTERO_LIBRARY_TYPE: These variables are required for Kerko to be able to access your Zotero library. See Configuration variables for details on how to properly set these variables. KERKO_DATA_DIR: This variable specifies the directory where to store the search index and the file attachments. If the specified directory does not already exists, Kerko will try to create it. KERKO_COMPOSER: This variable specifies key elements needed by Kerko, e.g., fields for display and search, facets for filtering. These are defined by instantiating the Composer class. Your application may manipulate the resulting object at configuration time to add, remove or alter fields, facets, sort options, search scopes, citation download formats, or badges. See Kerko Recipes for some examples.
Also configure the Flask-Babel and Bootstrap-Flask extensions: from flask_babel import Babel from flask_bootstrap import Bootstrap babel = Babel(app) bootstrap = Bootstrap(app) See the respective docs of Flask-Babel and Bootstrap-Flask for more details.
Instantiate the Kerko blueprint and register it in your app: from kerko import blueprint as kerko_blueprint app.register_blueprint(kerko_blueprint, url_prefix='/bibliography') The url_prefix argument defines the base path for every URL provided by Kerko.
In the same directory as hello_kerko.py with your virtual environment active, run the following shell commands: export FLASK_APP=hello_kerko.py flask kerko sync Kerko will retrieve your bibliographic data from zotero.org. If you have a large bibliography or large attachments, this may take a while (and there is no progress indicator). In production use, that command is usually added to the crontab file for regular execution (with enough time between executions for each to complete before the next one starts). To list all commands provided by Kerko: flask kerko --help
Run your application: flask run
Open http://127.0.0.1:5000/bibliography/ in your browser and explore the bibliography.
Support
Issues may be submitted on Kerko's issue tracker. Please consider the following guidelines:.
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page