Giter VIP home page Giter VIP logo

pysubstringsearch's Introduction

Splunk> Phantom

Welcome to the open-source repository for Splunk> Phantom's intsights App.

Please have a look at our Contributing Guide if you are interested in contributing, raising issues, or learning more about open-source Phantom apps.

Legal and License

This Phantom App is licensed under the Apache 2.0 license. Please see our Contributing Guide for further details.

pysubstringsearch's People

Contributors

asonn-r7 avatar gmontza-r7 avatar michael-lerner avatar simonirwin-r7 avatar ydiamant-r7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pysubstringsearch's Issues

How to install on my Mac

When I install PySubstringSearch, I get an error
12 errors generated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /Users/7j/opt/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/p0/g4wzq9ds4b5gzzl8nzlskrlr0000gn/T/pip-install-kjyts65a/PySubstringSearch/setup.py'"'"'; __file__='"'"'/private/var/folders/p0/g4wzq9ds4b5gzzl8nzlskrlr0000gn/T/pip-install-kjyts65a/PySubstringSearch/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/p0/g4wzq9ds4b5gzzl8nzlskrlr0000gn/T/pip-record-1ke39oa7/install-record.txt --single-version-externally-managed --compile --install-headers /Users/7j/opt/anaconda3/include/python3.7m/PySubstringSearch Check the logs for full command output.

Count number of occurences

Hello,

Is there a way to count the number of occurrences of the query in target strings?
For example, if I do

writer = pysubstringsearch.Writer(
    index_file_path='output.idx',
)

writer.add_entry('string_string')
writer.finalize()
reader = pysubstringsearch.Reader(
    index_file_path='output.idx',
)

and I then

reader.number_of_occurences('str')

I would want to receive 2. Can I do it?
My (indexes) text is very large (hundreds of millions of characters) and queries are rather large too (can be up to a million character).

Thanks

regex searching

In the search function, is there any support to search using regular expression ?

boundaries match

is it possible to apply boundary match in multiple search?
or anyone have recommendation library that have feature like that in fast execution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.