Skip to main content

Knowledge-Base from GitHub files

Project description

PyPI version contributions welcome GitHub license

If you have Python-related documention in GitHub, Helppy helps you to search for them without the need to leave your Python notebook.

Installation

pip install helppy

Initializing

from helppy import Helppy

hh = Helppy()

Usage

Search the knowledge-base by providing a keyword that appears in the header of the sections in you documentation files, or search by providing a keyword that appears in your documentation files.
In either case you can optionally provide a keyword for the files name to limit the search to those files.

# Among all files that contain 'pandas' in their names, 
# print sections that their headers contain 'sql'
hh.find('sql', 'pandas')

# Among all files that contain 'pandas' in their names, 
# print the link of those files that contain 'sql' in their body.
hh.find(text_in_page='sql', subject='pandas')

There is a pre-built knowledge-base included in this package which uses my own documentations. To use your own repositories as the knowledge-base, you can

  1. Use the refresh_kb(my_repo_url, extensions=['.md']) function to load your repositories (lasts for the session).
  2. After adding your repositories, save the knowledge-base to a file using save_kb() function, forke this repository, and replace the kb.py file with your file, and build a new package.

Any GitHub path can be used for building the knowledge-base, doesn't have to be a repository path.

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

helppy-0.1.5.tar.gz (63.0 kB view details)

Uploaded Source

Built Distribution

helppy-0.1.5-py3-none-any.whl (63.6 kB view details)

Uploaded Python 3

File details

Details for the file helppy-0.1.5.tar.gz.

File metadata

  • Download URL: helppy-0.1.5.tar.gz
  • Upload date:
  • Size: 63.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for helppy-0.1.5.tar.gz
Algorithm Hash digest
SHA256 dc8f54beba19738894020ada1fa75fe75af272e827ccec1e44549a88290d1a39
MD5 d29b011c74916c937b49321c1a73b0c6
BLAKE2b-256 6bc653ba16c19b9c8f7c35823fe97daa088f321b8779dd35ccd51c744086b367

See more details on using hashes here.

File details

Details for the file helppy-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: helppy-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 63.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for helppy-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c386fe780db3bd93b14012f9d849aebbb72415d1913572fc978c81f7db9e59b6
MD5 0fa608d495973dddea353ed1fe6e6597
BLAKE2b-256 f69006ff28a77b7778f9da5d9f12eba325bb17596c5511778972adeca185c899

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