{"id":22496801,"url":"https://github.com/keosariel/sqlite-index","last_synced_at":"2026-04-17T11:33:37.024Z","repository":{"id":129179608,"uuid":"369923575","full_name":"keosariel/sqlite-index","owner":"keosariel","description":"Indexes and searches data in a simple sqlite database","archived":false,"fork":false,"pushed_at":"2021-05-22T23:53:01.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T21:29:54.167Z","etag":null,"topics":["index","indexer","indexing","json","python","python3","search","search-engine","searching","sqlite"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/sqlite-index/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keosariel.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-05-22T23:21:32.000Z","updated_at":"2024-04-21T14:50:02.000Z","dependencies_parsed_at":"2023-03-25T02:04:44.357Z","dependency_job_id":null,"html_url":"https://github.com/keosariel/sqlite-index","commit_stats":null,"previous_names":["saskayy/sqlite-index","keosariel/sqlite-index"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keosariel/sqlite-index","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keosariel%2Fsqlite-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keosariel%2Fsqlite-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keosariel%2Fsqlite-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keosariel%2Fsqlite-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keosariel","download_url":"https://codeload.github.com/keosariel/sqlite-index/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keosariel%2Fsqlite-index/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31927963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["index","indexer","indexing","json","python","python3","search","search-engine","searching","sqlite"],"created_at":"2024-12-06T20:14:23.693Z","updated_at":"2026-04-17T11:33:37.005Z","avatar_url":"https://github.com/keosariel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sqlite Index\r\n============\r\n\r\nInstalling\r\n----------\r\nInstall and update using `pip` :\r\n\r\n.. code-block:: text\r\n  \r\n  $ pip install sqlite-index\r\n \r\n..\r\n\r\nExample\r\n-------\r\nHere is a quick example to using `sqlite-index`\r\n\r\n.. code-block:: python\r\n\r\n  from sqlite_index import Index\r\n  import os\r\n  \r\n  basedir = os.path.dirname(os.path.abspath(__file__))\r\n  \r\n  # Where the data is stored\r\n  products_filename = os.path.join(basedir, \"products\")\r\n  \r\n  # Index instance\r\n  PRODUCTS_INDEX = Index(products_filename, _fields=[\"title\", \"description\"])\r\n\r\n  data = [\r\n\r\n      {\r\n          \"title\" : \"Roku Streaming Stick+ | HD/4K/HDR Streaming Device with Long-range Wireless and Voice Remote with TV Controls\",\r\n          \"description\" : \"\"\"Wireless that goes the distance: Basement rec room? Backyard movie night? Bring ‘em on. \r\n                              The long-range wireless receiver gives you extended range and a stronger signal for \r\n                              smooth streaming even in rooms farther from your router\r\n                              Brilliant picture quality: Experience your favorite shows with stunning detail and \r\n                              clarity—whether you’re streaming in HD, 4K, or HDR, you’ll enjoy picture quality \r\n                              that’s optimized for your TV with sharp resolution and vivid color\"\"\"\r\n      },\r\n\r\n      {\r\n          \"title\" : \"Dell SE2419Hx 24\\\" IPS Full HD (1920x1080) Monitor, Black\",\r\n          \"description\" : \"\"\"Thin bezel\r\n                              1920 x 1080 at 60 hertz full HD maximum resolution\r\n                              16:9 aspect ratio\r\n                              Compact base to maximize desk space\r\n                              1000:1 contrast ratio. Brightness: 250 Candela per square meter (TYP)\r\n                              60 hertz\"\"\"\r\n      },\r\n\r\n      {\r\n          \"title\" : \"Acer R240HY bidx 23.8-Inch IPS HDMI DVI VGA (1920 x 1080) Widescreen Monitor, Black\",\r\n          \"description\" : \"\"\"23.8\" Full HD IPS widescreen with 1920 x 1080 resolution\r\n                              Response time: 4ms, refresh rate: 60 hertz, pixel pitch: 0.2745 millimeter. \r\n                              178 degree wide viewing angle, display colors: 16.7 million\r\n                              The zero frame design provides maximum visibility of the screen from edge to edge\r\n                              Signal inputs: 1 x HDMI, 1 x DVI (withHDCP) \u0026 1 x VGA. Does not support HDCP 2.2, \r\n                              the version this monitor supports is HDCP 1.4\r\n                              No picture visible using the OSD menu, adjust brightness and contrast to maximum or \r\n                              reset to their default settings. Brightness is 250 nit. Operating power consumption: 25 watts\"\"\"\r\n      },\r\n\r\n      {\r\n          \"title\" : \"SAMSUNG 970 EVO Plus SSD 2TB - M.2 NVMe Interface Internal Solid State Drive with V-NAND Technology (MZ-V7S2T0B/AM)\",\r\n          \"description\" : \"\"\"NNOVATIVE V-NAND TECHNOLOGY: Powered by Samsung V-NAND Technology, the 970 EVO Plus SSD’s NVMe \r\n                              interface (PCIe Gen 3.0 x4 NVMe 1.3) offers enhanced bandwidth, low latency, and power efficiency ideal for tech enthusiasts, \r\n                              high end gamers, and 4K \u0026 3D content designers\r\n                              BREAKTHROUGH READ WRITE SPEEDS: Sequential read and write performance levels of up to 3,500MB/s and 3,300MB/s, \r\n                              respectively; Random Read (4KB, QD32): Up to 600,000 IOPS Random Read\r\n                              PERFORMANCE OPTIMIZATION AND DATA SECURITY: Seamless cloning and file transfers with Samsung Magician Software, \r\n                              the ideal SSD management solution for performance optimization and data security with automatic firmware updates\"\"\"\r\n      }\r\n  ]\r\n\r\n  for idx, item  in enumerate(data):\r\n      title, description = item[\"title\"], item[\"description\"]\r\n\r\n      # Adding data to Index\r\n      PRODUCTS_INDEX.add(\r\n          title,\r\n          idx,\r\n          [\"title\"] # Section of the database it'll be added to\r\n      )\r\n\r\n      PRODUCTS_INDEX.add(\r\n          description,\r\n          idx,\r\n          [\"description\"]\r\n      )\r\n\r\n  # Search Index\r\n\r\n  print( PRODUCTS_INDEX.search(\"with\", [\"description\"]))\r\n  \r\n  # outputs:\r\n  # search function took 0.000 ms\r\n  # [0, 2, 3]\r\n  \r\n  # To seach the title\r\n  # print( PRODUCTS_INDEX.search(\"with\", [\"title\"]))\r\n  # However you can put all fields to search the whole index\r\n  # i.e PRODUCTS_INDEX.search(\"with\", [\"title\", \"description\"])\r\n..\r\n\r\nTo remove data from Index\r\n-------------------------\r\n\r\n.. code-block:: python\r\n\r\n  # To remove data from index\r\n  PRODUCTS_INDEX.remove(\r\n          description,\r\n          idx,\r\n          [\"description\"]\r\n  )\r\n\r\n..\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeosariel%2Fsqlite-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeosariel%2Fsqlite-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeosariel%2Fsqlite-index/lists"}