posty.importers module

Functions to import from various other static site generators

class posty.importers.Importer(site: Site, src_path: str)[source]

Bases: ABC

Base class for all importers

Parameters:
  • site – Site object for the destination

  • src_path – Path to the thing to import

ensure_directories() None[source]
abstractmethod run() None[source]
class posty.importers.Posty1Importer(site: Site, src_path: str)[source]

Bases: Importer

Importer to pull from a Posty 1.x site

import_media() None[source]
import_pages() None[source]
import_posts() None[source]
import_templates() None[source]
run() None[source]