Git Product home page Git Product logo

ultan's Introduction

Python version Build Status

ultan

"You know old Ultan, I take it? No, course not. If you did, you'd know the way to the library." โ€” The Shadow of the Torturer, Gene Wolfe

ultan is a Python identifier and documentation provider. It has two main services:

  1. It can list all identifiers available in your current Python environment.
  2. It can provide docstrings for names.

This may not sound very spectactular, and it's not. The main trick ultan aims for is being able to provide a comprehensive list of identifiers, even for modules which are not imported. It uses various strategies to scan your installed packages for identifiers, doing things, for example, like parsing source files into ASTs and looking for assignments.

Why?

ultan is supposed to scratch a specific itch: being able to do completion on identifiers which aren't actually available in the current namespace. For example, if I'm coding along and want to add uuid.uuid1(), standard completers won't give me that completion unless I've already imported uuid. ultan will know about uuid.uuid1() even if you haven't imported uuid, so you can get the completion.

This may be a terrible idea! But I want to give it a try.

Tests

ultan uses tox to run its tests. Here's that works:

$ pip install -e .[test]
$ tox

There are more details to it, of course, but you can learn about those by reading the tox documentation.

ultan's People

Contributors

abingham avatar

Stargazers

Ellen Agarwal avatar Matan Gover avatar

Watchers

 avatar James Cloos avatar

ultan's Issues

Idea: cache names on disk to improve startup

The first name fetch takes quite a while. It might be good to cache the names to disk once they're discovered. These names could be quickly loaded at startup.

We could also be clever about loading the cache and then immediately calculating the new names in a separate thread, updating the hot cache when it's available.

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.