Skip to main content

Extremely fast full-text-search algorithm and caching system

Project description

Hermes Stars Watchers

banner

CLI

Usage

hermes serve -p 6000

Install

MacOS:
  $ curl "https://github.com/realTristan/Hermes/raw/master/cli/hermes" -o /usr/local/bin/hermes
  
Windows:
  $ curl "https://github.com/realTristan/Hermes/raw/master/cli/hermes.exe" -o C:\hermes.exe
  $ set PATH=%PATH%;C:\hermes.exe

Functions

# Wrapper for the Hermes cache
class Hermes:
    # Set a value in the cache
    def set(self, key: str, value: dict, full_text: bool) -> any:
    
    # Get a value from the cache
    def get(self, key: str) -> any:
    
    # Delete a value from the cache
    def delete(self, key: str) -> any:
    
    # Get all keys in the cache
    def keys(self) -> any:
    
    # Get all values in the cache
    def values(self) -> any:
    
    # Get the cache length
    def length(self) -> any:
    
    # Clear the cache
    def clean(self) -> any:
    
    # Get the cache info
    def info(self) -> any:
    
    # Check if value exists in the cache
    def exists(self, key: str) -> any:
    
    # Intialize the full text cache
    def ft_init(self) -> any:
    
    # Clean the full text cache
    def ft_clean(self) -> any:
    
    # Search the full text cache
    def ft_search(self, query: str, strict: bool, limit: int, schema: dict) -> any:
    
    # Search one word in the full text cache
    def ft_search_one(self, query: str, strict: bool, limit: int) -> any:
    
    # Search value in the full text cache
    def ft_search_value(self, query: str, limit: int, schema: dict) -> any:
    
    # Search values with a key in the full text cache
    def ft_search_key(self, query: str, key: str, limit: int) -> any:
    
    # Set the max bytes of the full text cache
    def ft_set_max_bytes(self, max_bytes: int) -> any:
    
    # Set the max words of the full text cache
    def ft_set_max_words(self, max_words: int) -> any:
    
    # Get the full text cache
    def ft_cache(self) -> any:
    
    # Get the full text cache size
    def ft_size(self) -> any:
    
    # Get whether the full text cache is initialized
    def ft_initialized(self) -> any:
    
    # Add to the full text cache
    def ft_add(self, key: str) -> any:

License

MIT License

Copyright (c) 2023 Tristan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

hermescloud-0.0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

hermescloud-0.0.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page