Skip to main content

Semantic Codebase Inspection helps developers familiarize themselves with a python project that has decent naming conventions. Dependencies not included.

Project description

Semantic Codebase Inspection

SCI helps developers familiarize themselves with a python project that has decent naming conventions.

It requires the libraries:

tensorflow-text tensorflow-hub inspect

It downloads an NLP model of about 300MB.

https://tfhub.dev/google/universal-sentence-encoder-multilingual-large/3

It uses a Natural Language Processing model to turn the names of functions, classes, and variables (variables that outside of functions) into vectors. Queries can be submitted against those names which don't need to be exact matches. Currently, the language model being used accommodates 16 languages, which means it accommodates synonyms too. This is accomplished with technology related to word2vec, doc2vec, and embeddings. If this seems somehow magic to you, I encourage you to read more about it so that you can be a magician too because it's not that complicated.

>> import semantic_codebase_inspection
>> semantic_codebase_inspection.run_semantic_search_through_program()
(printed) Importing modules and semantic model.

(printed) What module would you like to explore?
(input) requests

(printed) What function in the library are you interesting in exploring?
(input) get

(printed) How many objects would you like in your result? (integer answers only)
(input) 5

*waiting for search to execute*

Similar semantic candidates include:
get : get function
put : put function
__build__ :   build   int 
__url__ :   url   str 
post : post function

Exit with ctrl+C.

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

semantic-codebase-inspection-0.1.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

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