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 details)

Uploaded Source

Built Distribution

File details

Details for the file semantic-codebase-inspection-0.1.2.tar.gz.

File metadata

File hashes

Hashes for semantic-codebase-inspection-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2d8585c110daf9e4e15f2b43245b95b81209983e864941cf79f1792d1e84dd07
MD5 5d7f205e8f1b3ef29fa30d5423641a48
BLAKE2b-256 23ccda941eb01498a86762882dd28d9a82144840aa2e14d5677d5f7a1ae06cc0

See more details on using hashes here.

File details

Details for the file semantic_codebase_inspection-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for semantic_codebase_inspection-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2923d605fad55263a7b6e99f5e257eeeea70d4af4cb5c26f8de0b5d67a3b9bf9
MD5 8dd6b8d0a8ffbf803161139eb0bc8675
BLAKE2b-256 b1f34238916eed5476841285e78c0d51fbc4473dd7c8cb712446c73ca61dd510

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