fast-autocomplete | Fast Autocomplete : When Elastcsearch suggestions | Autocomplete library

 by   seperman Python Version: 0.9.0 License: MIT

kandi X-RAY | fast-autocomplete Summary

kandi X-RAY | fast-autocomplete Summary

fast-autocomplete is a Python library typically used in User Interface, Autocomplete applications. fast-autocomplete has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install fast-autocomplete' or download it from GitHub, PyPI.

Fast autocomplete using Directed Word Graph (DWG) and Levenshtein Edit Distance. The results are cached via LFU (Least Frequently Used).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              fast-autocomplete has a low active ecosystem.
              It has 233 star(s) with 36 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 12 open issues and 18 have been closed. On average issues are closed in 22 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of fast-autocomplete is 0.9.0

            kandi-Quality Quality

              fast-autocomplete has 0 bugs and 18 code smells.

            kandi-Security Security

              fast-autocomplete has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              fast-autocomplete code analysis shows 0 unresolved vulnerabilities.
              There are 2 security hotspots that need review.

            kandi-License License

              fast-autocomplete is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              fast-autocomplete releases are available to install and integrate.
              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.
              fast-autocomplete saves you 600 person hours of effort in developing the same functionality from scratch.
              It has 1470 lines of code, 97 functions and 16 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed fast-autocomplete and discovered the below as its top functions. This is intended to give you an instant insight into fast-autocomplete implemented functionality, and help decide if they suit your requirements.
            • Generate a demo demo for the given modules
            • Performs fuzzy search
            • Find and sort the words in the given word
            • Search for a given word
            • Factory function for autocomplete factory
            • Get data from a file
            • Get all content from a file
            • Simple compress function
            • Populates the DawgNode
            • Insert a word into the tree
            • Insert a new node
            • Insert a word callback
            • Populate a redis client
            Get all kandi verified functions for this library.

            fast-autocomplete Key Features

            No Key Features are available at this moment for fast-autocomplete.

            fast-autocomplete Examples and Code Snippets

            No Code Snippets are available at this moment for fast-autocomplete.

            Community Discussions

            QUESTION

            Handle load time of big JSON for autocomplete on the server side
            Asked 2020-Sep-28 at 00:14

            Hello I have an app that have autocomplete suggestions for the user based on input in the search bar.

            I use a package named fast_autocomplete which works great but I have a problem that each time I want to use the prediction I have to load 50MB of JSON data that I mad for the autocomplete (500K records). While running it on a server side loading, parsing and sending back the data is quite slow for what you would except for autocomplete functionality. It less than a second and right now (testing locally) its takes few seconds.

            Checking the issue it seems that it takes a lot of time to load the 50MB JSON for each request. Loading the data and building the autocomplete object each time a new request comes in is a waste of time.

            For that I wondered if there is a way to keep the object loaded alive all the time and when a new HTTP request comes in the JSON is already loaded. How big sites like Amazon, Ebay, Google makes there autocomplete so fast?

            ...

            ANSWER

            Answered 2020-Sep-28 at 00:14

            If I understand correctly you're loading your data for every request despite that data staying the same for each user. Why not cache that data? or store it outside of your request handler's scope?

            Source https://stackoverflow.com/questions/64094399

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install fast-autocomplete

            Are you still on Python 2? TIME TO UPGRADE.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install fast-autocomplete

          • CLONE
          • HTTPS

            https://github.com/seperman/fast-autocomplete.git

          • CLI

            gh repo clone seperman/fast-autocomplete

          • sshUrl

            git@github.com:seperman/fast-autocomplete.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Autocomplete Libraries

            Try Top Libraries by seperman

            deepdiff

            by sepermanPython

            redisworks

            by sepermanPython

            s3utils

            by sepermanPython

            dotobject

            by sepermanPython

            bad-ideas

            by sepermanPython