Skip to main content

Python package to search multiple strings within Python snippets.

Project description

snipsearch

Python package to search multiple strings within Python snippets.

Install

pip install snipsearch

Usage

snipsearch [-h] [-n N] searchdir searchterm1 searchterm2 ...

Find code snippets which are most related to search keywords.

positional arguments:\

  • searchdir\
    • Directory containing Python (.py) files to search through\
  • searchterms\
    • List as many strings as you would like to search for (all equally weighted)

optional arguments:\

  • -h, --help\
    • show this help message and exit\
  • -n N, -number N\
    • Number of code snippet results to print

Read The Docs

Download "docs" folder or check preview.

Contributing

Message me on Github.

License

GNU GPLv3

Copyright:

(c) 2023, Jason Krist

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

snipsearch-0.0.2.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

snipsearch-0.0.2-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file snipsearch-0.0.2.tar.gz.

File metadata

  • Download URL: snipsearch-0.0.2.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for snipsearch-0.0.2.tar.gz
Algorithm Hash digest
SHA256 75d459abdd58be3f59aad2e691001a82cc11166b40dccfb950f90f39cf74de18
MD5 89cc968acd380b8d6db6a6245bd1c173
BLAKE2b-256 7024688aeb4a6751ddc71ec7888f9877bc60962766a00d5ddcd6b30c216de7e9

See more details on using hashes here.

File details

Details for the file snipsearch-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: snipsearch-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for snipsearch-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b70e96c432ef7f64da0271a7f3fce861c2a2d625d27801f5e66269542c9c76fa
MD5 5f7a8bbe28871bdd505907f9012bbe70
BLAKE2b-256 c8fbf5eaecac88272774b02444d9ea111d34670ab1705d5ed44ef689c3a72d08

See more details on using hashes here.

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