Skip to main content

Quick access to code favorites

Project description

ot

Quick access to code favorites.

We all have our go-to utils and awesome tools. Some of us are annoyed at having to type long dotpaths to the object we want to import. Some of us probably forget where that particular object is in the first place.

This is to mitigate that.

Instead do this:

from ot.my_medley import that_object

Also have several my_medley sets of favorites, since what you'll need depends on the context.

Word of advice: This tool is meant for the quick-and-dirty development context

Don't use this for production or any long-term code. It's meant for pulling things together quickly. Once the code matures, you should import "normally".

Usage

See what modules are available to import

>>> from ot import source_module_names
>>> source_module_names
['tw', 'ca']

See what that module is about (if the author cared to say)

>>> from ot import tw
>>> print(tw.__doc__)

A medley of my most frequently used tools.

Import it (as a module object)

from ot import tw
# or from ot import tw as my_own_name

Inject the module's contents in your current namespace (if you're that type)

from ot.tw import *

Inject everything there is in your namespace (but expect unpredictable name collisions)

from ot import *

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for oq, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size oq-0.0.1-py3-none-any.whl (2.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page