Metadata-Version: 2.1
Name: okmodule
Version: 1.0.0
Summary: okmodule
Home-page: https://github.com/lawley0316/okmodule
Author: Lawley
Author-email: lawley0316@gmail.com
License: MIT
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown


# okmodule: a very simple modular implementation

## Installation

```shell
pip install okmodule
```

## Usage

```python
from okmodule import Module, Command


class MyModule(Module):
    def __init__(self, x, y):
        self.x = x
        self.y = y
        
    def main(self):
        return self.x + self.y


class Blastn(Command):
    def __init__(self, query, db, out):
        self.query = query
        self.db = db
        self.out = out

    def args(self):
        return [
            '-query', self.query,
            '-db', self.db,
            '-out', self.out
        ]


my_module = MyModule(1, 2)
print(my_module())

blastn = Blastn('foo', 'bar', 'baz')
blastn()
```
