Skip to main content

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.

Release files for semantic-codebase-inspection 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for semantic-codebase-inspection 0.1.2
File Size Uploaded
semantic-codebase-inspection-0.1.2.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for semantic-codebase-inspection 0.1.2
File Interpreter ABI Platform
semantic_codebase_inspection-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / semantic-codebase-inspection-0.1.2.tar.gz

Download URL semantic-codebase-inspection-0.1.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2d8585c110daf9e4e15f2b43245b95b81209983e864941cf79f1792d1e84dd07
BLAKE2b-256 checksum
How to use checksums
23ccda941eb01498a86762882dd28d9a82144840aa2e14d5677d5f7a1ae06cc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.4 Linux/5.15.0-41-generic

Release files / semantic_codebase_inspection-0.1.2-py3-none-any.whl

Download URL semantic_codebase_inspection-0.1.2-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2923d605fad55263a7b6e99f5e257eeeea70d4af4cb5c26f8de0b5d67a3b9bf9
BLAKE2b-256 checksum
How to use checksums
b1f34238916eed5476841285e78c0d51fbc4473dd7c8cb712446c73ca61dd510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.4 Linux/5.15.0-41-generic

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page