okmodule
Project description
okmodule: a very simple modular implementation
Installation
pip install okmodule
Usage
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
okmodule-1.0.0.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file okmodule-1.0.0.tar.gz.
File metadata
- Download URL: okmodule-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6e1b13d1a87988be3db27fbcb808b2fe259a967ca7a9481a69a9c141dc039fc
|
|
| MD5 |
7fd20d20bbd05ffd63809605a3b360fd
|
|
| BLAKE2b-256 |
3ef6f8a34600e13b116ba88d45d5d11f23cb9b7dba547192bff43871c28a7f20
|
File details
Details for the file okmodule-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: okmodule-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee2429203a93990453e4b742e999bca0250f1acffb8fb056b00422c22212a5c9
|
|
| MD5 |
a21a3f262be23c0cf7701b97a636b4d6
|
|
| BLAKE2b-256 |
f0cb017207d133d6efc6feec5d47847d73dbbce2d65e2ef9d3f6bee933c4eb20
|