pypleteAn interface to autocomplete in Python | |
Download |
pyplete Ranking & Summary
Advertisement
- License:
- LGPL
- Price:
- FREE
- Publisher Name:
- Pablo Martin
- Publisher web site:
- http://grupoikusnet com
pyplete Tags
pyplete Description
pyplete is an interface to autocomplete in Python.Installation- Install Pysmell- Install pypleteeasy_install pysmell==0.7.3easy_install pyplete==0.0.1Usage (examples)Get the top level importable package and modules:In : from pyplete import PyPleteIn : pyplete = PyPlete()In : importables = []In : autocompletes = pyplete.get_importables_top_level(importables)In : autocompletesOut: TrueIn : importablesOut:Get the importable subpackages:In : importables = []In : autocompletes = pyplete.get_importables_rest_level(importables, "django", into_module=False)In : autocompletesOut: TrueIn : importablesOut:Get the importable names:In : importables = []In : autocompletes = pyplete.get_importables_rest_level(importables, "django")In : autocompletesOut: TrueIn : importablesOut:Other example to the importable names:In : importables = []In : autocompletes = pyplete.get_importables_rest_level(importables, "django", , into_module=True)Out:Get names importables from a text:In : importables = []In : text = """class A(object):....: def __init__(self, x, y, z):....: self.x = x....: self.y = y....: self.z = z....: def xxx(self, a):....: return a....: def myfunc(u, v):....: return u + v"""In : autocompletes = pyplete.get_importables_from_text(importables, text)In : importablesOut:Get names importables from a line:In : importables = []In : text = "import requests" line = "requests.models."In : pyplete.get_importables_from_line(importables, text, line)Out:Product's homepage
pyplete Related Software