Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

a dynamic class loader

Project Description

General

This project exposes a way to load classes dynamically and to make sure that each class that is loaded has and adheres to one or more verifiable interfaces.

Project Name

The project name started as simply “class registry”, but that seemed really dull and boring. Totally not entertaining. So, my wife and I brainstormed and we came up with the idea of a plant, which is both something that grows and somthing that simply produces items according to technical specification (AKA factory). Then, I started to consider the types of plants that we grow which create hearty staples, and potatos came to mind. And yes, I could have used “potato plant”, but that was too long, so now its just “potato”. My wife wanted to call it “pytatoe”, but I said that that was too cheesy.

Motivation

I wanted a system for a plug-in architecture. I got the idea for this project from the following stackoverflow.com question:

http://stackoverflow.com/questions/5145378/dynamic-module-import- of-class-list-from-module-given-its-full-path

As I developed it, it became apparent that a construct and/or pattern must have been used in the making of such evil software as Microsoft Windows.

Usage

See example/ for a usage example.

Release history Release notifications

This version
History Node

0.0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
potato-0.0.2.tar.gz (10.2 kB) Copy SHA256 hash SHA256 Source None Apr 24, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page