File: seeder.py

package info (click to toggle)
python-flask-seeder 1.2.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292 kB
  • sloc: python: 1,062; makefile: 2
file content (18 lines) | stat: -rwxr-xr-x 392 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
""" Base seeder """

# pylint: disable=too-few-public-methods
class Seeder:
    """ Base seeder class """

    def __init__(self, db=None):
        self.db = db
        self.name = None
        self.mod_path = None
        self.file_path = None

    def run(self):
        """ Run the seeder script.

        Must be implemented by the client.
        """
        raise NotImplementedError()