Coder Social home page Coder Social logo

pyfunc's Introduction

PyFunc Signature Parser

Walks Python AST and parses doctrings to provide hints to MyPy for checking inconsistencies between docstrings and code.

Modules

lib.fileSelector

Adjust the parameters in the main call to traverse a specified folder and retrieve all the file names where variable and/or return types are specified in the docstring as well as those docstrings. Additionally, the parameters allow you to either print the output to the console or write them to a file.

lib.plantMyPy

Plants MyPy directives into a copy of the Python code by using the data types from the varExtractor module.

lib.fileReader

Reads a file and extracts all docstrings that contain variable descriptions or return descriptions.

lib.fileRetriever

Retrieves all python files inside the folder, which are then processed by fileReader to retrieve files containing docstrings specifying variable types

lib.randomSample

With help of lib.fileRetriever, finds all the Python files in a specified folder, reads each of them and returns methods after random sampling.

lib.varExtractor

Extracts variable type information from docstrings in a hybrid manner using both Python AST parsing and RegEx

Contributing:

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change. Ensure any install or build dependencies are removed before the end of the layer when doing a build. Update the README.md with details of changes to the interface, this includes new environment variables, exposed ports, useful file locations and container parameters.

License:

This project is licensed under the MIT License - see the LICENSE.md file for details

pyfunc's People

Contributors

achyudh avatar azqanadeem avatar mr-spd avatar nkny avatar

Stargazers

 avatar Nikhil Kalige avatar Abdelrahman Ghanem avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.