Skip to main content

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.

Project details


Download files

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

Source Distribution

potato-0.0.2.tar.gz (10.2 kB view details)

Uploaded Source

File details

Details for the file potato-0.0.2.tar.gz.

File metadata

  • Download URL: potato-0.0.2.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for potato-0.0.2.tar.gz
Algorithm Hash digest
SHA256 764b17610c960a60ba261ff94077c4bd2b49c5c952134eab31b408f8c4f78780
MD5 5680cf1cd25a588fd2d93f65594aa6d1
BLAKE2b-256 2d3d9f754d81e5ae9956d774970b0ccccce5060dc618b32efdd9b4d6ee4aa1bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page